public static final class PlacementInfo.Builder
extends java.lang.Object
PlacementInfo
.Constructor and Description |
---|
Builder(java.lang.String managementVcenterName,
java.lang.String vmName,
java.lang.String datacenter,
java.lang.String datacenterName,
java.lang.String host,
java.lang.String hostName,
java.lang.String managementNetwork,
java.lang.String managementNetworkName,
NetworkType managementNetworkType,
DiskInfo storage)
Constructor with parameters for the required properties of
PlacementInfo . |
Modifier and Type | Method and Description |
---|---|
PlacementInfo |
build() |
PlacementInfo.Builder |
setBiosUuid(java.lang.String biosUuid)
BIOS UUID for the node.
|
PlacementInfo.Builder |
setCluster(java.lang.String cluster)
The identifier of the cluster of which
getHost() is member. |
PlacementInfo.Builder |
setClusterName(java.lang.String clusterName)
The name of the cluster of which
getHost() is member. |
PlacementInfo.Builder |
setHaNetwork(java.lang.String haNetwork)
The identifier of the Network object used for the HA network.
|
PlacementInfo.Builder |
setHaNetworkName(java.lang.String haNetworkName)
The name of the Network object used for the HA network.
|
PlacementInfo.Builder |
setHaNetworkType(NetworkType haNetworkType)
The type of the Network object used for the HA network.
|
PlacementInfo.Builder |
setManagementVcenterServerGuid(java.lang.String managementVcenterServerGuid)
The unique identifier of the vCenter server that is managing the VCHA node.
|
public Builder(java.lang.String managementVcenterName, java.lang.String vmName, java.lang.String datacenter, java.lang.String datacenterName, java.lang.String host, java.lang.String hostName, java.lang.String managementNetwork, java.lang.String managementNetworkName, NetworkType managementNetworkType, DiskInfo storage)
PlacementInfo
.public PlacementInfo.Builder setManagementVcenterServerGuid(java.lang.String managementVcenterServerGuid)
managementVcenterServerGuid
- New value for the property.public PlacementInfo.Builder setCluster(java.lang.String cluster)
getHost()
is member. This
property was added in vSphere API 6.7.1.
If null
, getHost()
is a standalone host.cluster
- New value for the property.
When clients pass a value of this class as a parameter, the property must be an
identifier for the resource type: ClusterComputeResource:VCenter
. When
methods return a value of this class as a return value, the property will be an
identifier for the resource type: ClusterComputeResource:VCenter
.public PlacementInfo.Builder setClusterName(java.lang.String clusterName)
getHost()
is member. This property was
added in vSphere API 6.7.1.
If null
, getHost()
is a standalone host.clusterName
- New value for the property.public PlacementInfo.Builder setHaNetwork(java.lang.String haNetwork)
null
, the information is currently unavailable or the haNetwork is
not configured.haNetwork
- New value for the property.
When clients pass a value of this class as a parameter, the property must be an
identifier for the resource type: Network:VCenter
. When methods return a
value of this class as a return value, the property will be an identifier for
the resource type: Network:VCenter
.public PlacementInfo.Builder setHaNetworkName(java.lang.String haNetworkName)
null
, the information is currently unavailable or the haNetwork is
not configured.haNetworkName
- New value for the property.public PlacementInfo.Builder setHaNetworkType(NetworkType haNetworkType)
null
, the information is currently unavailable or the haNetwork is
not configured.haNetworkType
- New value for the property.public PlacementInfo.Builder setBiosUuid(java.lang.String biosUuid)
null
, the information is currently unavailable.biosUuid
- New value for the property.public PlacementInfo build()