public static final class SubscriptionsTypes.PlacementInfo.Builder
extends java.lang.Object
SubscriptionsTypes.PlacementInfo
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
SubscriptionsTypes.PlacementInfo . |
Modifier and Type | Method and Description |
---|---|
SubscriptionsTypes.PlacementInfo |
build() |
SubscriptionsTypes.PlacementInfo.Builder |
setCluster(java.lang.String cluster)
Cluster onto which the virtual machine template should be placed.
|
SubscriptionsTypes.PlacementInfo.Builder |
setFolder(java.lang.String folder)
Virtual machine folder into which the virtual machine template should be placed.
|
SubscriptionsTypes.PlacementInfo.Builder |
setHost(java.lang.String host)
Host onto which the virtual machine template should be placed.
|
SubscriptionsTypes.PlacementInfo.Builder |
setNetwork(java.lang.String network)
Network that backs the virtual Ethernet adapters in the virtual machine
template.
|
SubscriptionsTypes.PlacementInfo.Builder |
setResourcePool(java.lang.String resourcePool)
Resource pool into which the virtual machine template should be placed.
|
public Builder()
SubscriptionsTypes.PlacementInfo
.public SubscriptionsTypes.PlacementInfo.Builder setFolder(java.lang.String folder)
null
if the subscribed library associated with the
subscription does not have a virtual machine folder.folder
- 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: Folder:VCenter
. When methods return a
value of this class as a return value, the property will be an identifier for
the resource type: Folder:VCenter
.public SubscriptionsTypes.PlacementInfo.Builder setCluster(java.lang.String cluster)
null
if the subscribed library associated with the
subscription does not have a cluster.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 SubscriptionsTypes.PlacementInfo.Builder setResourcePool(java.lang.String resourcePool)
null
if the subscribed library associated with the
subscription does not have a resource pool.resourcePool
- 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: ResourcePool:VCenter
. When methods
return a value of this class as a return value, the property will be an
identifier for the resource type: ResourcePool:VCenter
.public SubscriptionsTypes.PlacementInfo.Builder setHost(java.lang.String host)
getHost()
and getResourcePool()
are both specified, getResourcePool()
must belong to getHost()
. If getHost()
and
getCluster()
are both specified, getHost()
must be a member of
getCluster()
. This property was added in vSphere API 6.7.2.
The property will be null
if the subscribed library associated with the
subscription does not have a host.host
- 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: HostSystem:VCenter
. When methods
return a value of this class as a return value, the property will be an
identifier for the resource type: HostSystem:VCenter
.public SubscriptionsTypes.PlacementInfo.Builder setNetwork(java.lang.String network)
null
if the subscribed library associated with the
subscription does not have a network.network
- 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 SubscriptionsTypes.PlacementInfo build()