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.Object
Builder 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 FabricHostNode
build()
FabricHostNode.Builder
setComputeCollectionId(java.lang.String computeCollectionId)
Id of the compute collection to which discovered node belongs.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.FabricHostNode.Builder
setDiscoveredNodeId(java.lang.String discoveredNodeId)
Id of discovered node which was converted to create this node.FabricHostNode.Builder
setDpu(java.util.List<DpuInfo> dpu)
Specifies details of data processing units (DPU) present on ESXi Host.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.FabricHostNode.Builder
setHostCredential(HostNodeLoginCredential hostCredential)
FabricHostNode.Builder
setIpAddresses(java.util.List<java.lang.String> ipAddresses)
IP Addresses of the Node, version 4 or 6.FabricHostNode.Builder
setMaintenanceModeState(java.lang.String maintenanceModeState)
Possible values are:FabricHostNode.MAINTENANCE_MODE_STATE_OFF
FabricHostNode.MAINTENANCE_MODE_STATE_ENTERING
FabricHostNode.MAINTENANCE_MODE_STATE_ON
Indicates host node's maintenance mode state.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.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
Hypervisor type, for example ESXi or RHEL KVMFabricHostNode.Builder
setOsVersion(java.lang.String osVersion)
Version of the hypervisor operating systemFabricHostNode.Builder
setWindowsInstallLocation(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()
-
-