Package com.vmware.nsx_policy.model
Class NodeResources.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.NodeResources.Builder
-
- Enclosing class:
- NodeResources
public static final class NodeResources.Builder extends java.lang.Object
Builder class forNodeResources
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofNodeResources
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeResources
build()
NodeResources.Builder
setCpu(java.lang.Long cpu)
Number of CPU cores required to deploy a form factor.NodeResources.Builder
setDisk(java.lang.Long disk)
Disk required to deploy a form factor.NodeResources.Builder
setEphemeralStorage(java.lang.Long ephemeralStorage)
Transient storage required to deploy a form factor.NodeResources.Builder
setNumberOfMasterNodes(java.lang.Long numberOfMasterNodes)
Required number of primary nodes.NodeResources.Builder
setNumberOfWorkerNodes(java.lang.Long numberOfWorkerNodes)
Required number of worker nodes.NodeResources.Builder
setRam(java.lang.Long ram)
Memore required to deploy a form factor.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofNodeResources
.
-
-
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.
-
build
public NodeResources build()
-
-