Package com.vmware.nsx_policy.model
Class FabricHostNode.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.FabricHostNode.Builder
-
- Enclosing class:
- FabricHostNode
public static final class FabricHostNode.Builder extends java.lang.ObjectBuilder class forFabricHostNode.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofFabricHostNode.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FabricHostNodebuild()FabricHostNode.BuildersetComputeCollectionId(java.lang.String computeCollectionId)Id of the compute collection to which discovered node belongs.FabricHostNode.BuildersetDiscoveredIpAddresses(java.util.List<java.lang.String> discoveredIpAddresses)Discovered IP Addresses of the transport node, version 4 or 6 format: ip This property may be present in responses from the server, but if it is present in a request to server it will be ignored.FabricHostNode.BuildersetDiscoveredNodeId(java.lang.String discoveredNodeId)Id of discovered node which was converted to create this node.FabricHostNode.BuildersetDpu(java.util.List<DpuInfo> dpu)Specifies details of data processing units (DPU) present on ESXi Host.FabricHostNode.BuildersetFqdn(java.lang.String fqdn)Fully qualified domain name of the transport node This property may be present in responses from the server, but if it is present in a request to server it will be ignored.FabricHostNode.BuildersetHostCredential(HostNodeLoginCredential hostCredential)FabricHostNode.BuildersetIpAddresses(java.util.List<java.lang.String> ipAddresses)IP Addresses of the Node, version 4 or 6.FabricHostNode.BuildersetMaintenanceModeState(java.lang.String maintenanceModeState)Possible values are:FabricHostNode.MAINTENANCE_MODE_STATE_OFFFabricHostNode.MAINTENANCE_MODE_STATE_ENTERINGFabricHostNode.MAINTENANCE_MODE_STATE_ONIndicates host node's maintenance mode state.FabricHostNode.BuildersetManagedByServer(java.lang.String managedByServer)The id of the vCenter server managing the ESXi type HostNode This property may be present in responses from the server, but if it is present in a request to server it will be ignored.FabricHostNode.BuildersetOsType(java.lang.String osType)Possible values are:FabricHostNode.OS_TYPE_ESXIFabricHostNode.OS_TYPE_RHELKVMFabricHostNode.OS_TYPE_RHELSERVERFabricHostNode.OS_TYPE_WINDOWSSERVERFabricHostNode.OS_TYPE_RHELCONTAINERFabricHostNode.OS_TYPE_UBUNTUKVMFabricHostNode.OS_TYPE_UBUNTUSERVERFabricHostNode.OS_TYPE_HYPERVFabricHostNode.OS_TYPE_CENTOSKVMFabricHostNode.OS_TYPE_CENTOSSERVERFabricHostNode.OS_TYPE_CENTOSCONTAINERFabricHostNode.OS_TYPE_SLESKVMFabricHostNode.OS_TYPE_SLESSERVERFabricHostNode.OS_TYPE_OELSERVERHypervisor type, for example ESXi or RHEL KVMFabricHostNode.BuildersetOsVersion(java.lang.String osVersion)Version of the hypervisor operating systemFabricHostNode.BuildersetWindowsInstallLocation(java.lang.String windowsInstallLocation)Specify an installation folder to install the NSX kernel modules for Windows Server.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofFabricHostNode.
-
-
Method Detail
-
setComputeCollectionId
public FabricHostNode.Builder setComputeCollectionId(java.lang.String computeCollectionId)
Id of the compute collection to which discovered node belongs. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
computeCollectionId- New value for the property.
-
setDiscoveredIpAddresses
public FabricHostNode.Builder setDiscoveredIpAddresses(java.util.List<java.lang.String> discoveredIpAddresses)
Discovered IP Addresses of the transport node, version 4 or 6 format: ip This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
discoveredIpAddresses- New value for the property.
-
setDiscoveredNodeId
public FabricHostNode.Builder setDiscoveredNodeId(java.lang.String discoveredNodeId)
Id of discovered node which was converted to create this node. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
discoveredNodeId- New value for the property.
-
setDpu
public FabricHostNode.Builder setDpu(java.util.List<DpuInfo> dpu)
Specifies details of data processing units (DPU) present on ESXi Host. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
dpu- New value for the property.
-
setFqdn
public FabricHostNode.Builder setFqdn(java.lang.String fqdn)
Fully qualified domain name of the transport node This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
fqdn- New value for the property.
-
setHostCredential
public FabricHostNode.Builder setHostCredential(HostNodeLoginCredential hostCredential)
- Parameters:
hostCredential- New value for the property.
-
setIpAddresses
public FabricHostNode.Builder setIpAddresses(java.util.List<java.lang.String> ipAddresses)
IP Addresses of the Node, version 4 or 6. format: ip- Parameters:
ipAddresses- New value for the property.
-
setMaintenanceModeState
public FabricHostNode.Builder setMaintenanceModeState(java.lang.String maintenanceModeState)
Possible values are: Indicates host node's maintenance mode state. The state is ENTERING when a task to put the host in maintenance-mode is in progress. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
maintenanceModeState- New value for the property.
-
setManagedByServer
public FabricHostNode.Builder setManagedByServer(java.lang.String managedByServer)
The id of the vCenter server managing the ESXi type HostNode This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
managedByServer- New value for the property.
-
setOsType
public FabricHostNode.Builder setOsType(java.lang.String osType)
Possible values are:-
FabricHostNode.OS_TYPE_ESXI -
FabricHostNode.OS_TYPE_RHELKVM -
FabricHostNode.OS_TYPE_RHELSERVER -
FabricHostNode.OS_TYPE_WINDOWSSERVER -
FabricHostNode.OS_TYPE_RHELCONTAINER -
FabricHostNode.OS_TYPE_UBUNTUKVM -
FabricHostNode.OS_TYPE_UBUNTUSERVER -
FabricHostNode.OS_TYPE_HYPERV -
FabricHostNode.OS_TYPE_CENTOSKVM -
FabricHostNode.OS_TYPE_CENTOSSERVER -
FabricHostNode.OS_TYPE_CENTOSCONTAINER -
FabricHostNode.OS_TYPE_SLESKVM -
FabricHostNode.OS_TYPE_SLESSERVER -
FabricHostNode.OS_TYPE_OELSERVER
- Parameters:
osType- New value for the property.
-
-
setOsVersion
public FabricHostNode.Builder setOsVersion(java.lang.String osVersion)
Version of the hypervisor operating system- Parameters:
osVersion- New value for the property.
-
setWindowsInstallLocation
public FabricHostNode.Builder setWindowsInstallLocation(java.lang.String windowsInstallLocation)
Specify an installation folder to install the NSX kernel modules for Windows Server. By default, it is C:\\Program Files\\VMware\\NSX\\.- Parameters:
windowsInstallLocation- New value for the property.
-
build
public FabricHostNode build()
-
-