Class NodeResources.Builder

  • Enclosing class:
    NodeResources

    public static final class NodeResources.Builder
    extends java.lang.Object
    Builder class for NodeResources.
    • Constructor Detail

      • Builder

        public Builder()
        Constructor with parameters for the required properties of NodeResources.
    • Method Detail

      • setCpu

        public NodeResources.Builder setCpu​(java.lang.Long cpu)
        Number of CPU cores required to deploy a form factor. format: int64
        Parameters:
        cpu - New value for the property.
      • setDisk

        public NodeResources.Builder setDisk​(java.lang.Long disk)
        Disk required to deploy a form factor. format: int64
        Parameters:
        disk - New value for the property.
      • setEphemeralStorage

        public NodeResources.Builder setEphemeralStorage​(java.lang.Long ephemeralStorage)
        Transient storage required to deploy a form factor. format: int64
        Parameters:
        ephemeralStorage - New value for the property.
      • setNumberOfMasterNodes

        public NodeResources.Builder setNumberOfMasterNodes​(java.lang.Long numberOfMasterNodes)
        Required number of primary nodes. format: int64
        Parameters:
        numberOfMasterNodes - New value for the property.
      • setNumberOfWorkerNodes

        public NodeResources.Builder setNumberOfWorkerNodes​(java.lang.Long numberOfWorkerNodes)
        Required number of worker nodes. format: int64
        Parameters:
        numberOfWorkerNodes - New value for the property.
      • setRam

        public NodeResources.Builder setRam​(java.lang.Long ram)
        Memore required to deploy a form factor. format: int64
        Parameters:
        ram - New value for the property.