public static final class SubscriptionsTypes.CreateSpecPlacement.Builder
extends java.lang.Object
SubscriptionsTypes.CreateSpecPlacement
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
SubscriptionsTypes.CreateSpecPlacement . |
Modifier and Type | Method and Description |
---|---|
SubscriptionsTypes.CreateSpecPlacement |
build() |
SubscriptionsTypes.CreateSpecPlacement.Builder |
setCluster(java.lang.String cluster)
Cluster onto which the virtual machine template should be placed.
|
SubscriptionsTypes.CreateSpecPlacement.Builder |
setFolder(java.lang.String folder)
Virtual machine folder into which the virtual machine template should be placed.
|
SubscriptionsTypes.CreateSpecPlacement.Builder |
setHost(java.lang.String host)
Host onto which the virtual machine template should be placed.
|
SubscriptionsTypes.CreateSpecPlacement.Builder |
setNetwork(java.lang.String network)
Network that backs the virtual Ethernet adapters in the virtual machine
template.
|
SubscriptionsTypes.CreateSpecPlacement.Builder |
setResourcePool(java.lang.String resourcePool)
Resource pool into which the virtual machine template should be placed.
|
public Builder()
SubscriptionsTypes.CreateSpecPlacement
.public SubscriptionsTypes.CreateSpecPlacement.Builder setFolder(java.lang.String folder)
null
, the
system will attempt to choose a suitable folder for the virtual machine
template; if a folder cannot be chosen, publishing a virtual machine template
item will fail.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.CreateSpecPlacement.Builder setCluster(java.lang.String cluster)
getCluster()
and getResourcePool()
are both specified, getResourcePool()
must belong to getCluster()
. If getCluster()
and getHost()
are both specified, getHost()
must be a member of
getCluster()
. This property was added in vSphere API 6.7.2.
If getResourcePool()
or getHost()
is specified, it is
recommended that this property be null
.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.CreateSpecPlacement.Builder setResourcePool(java.lang.String resourcePool)
getHost()
and getResourcePool()
are both specified, getResourcePool()
must belong to getHost()
. If getCluster()
and
getResourcePool()
are both specified, getResourcePool()
must
belong to getCluster()
. This property was added in vSphere API 6.7.2.
This property is currently required. In future, if this is null
, the
system will attempt to choose a suitable resource pool for the virtual machine
template; if a resource pool cannot be chosen, publish of virtual machine
template item will fail.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.CreateSpecPlacement.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.
If this is null
, the system will attempt to choose a suitable host for
the virtual machine template; if a host cannot be chosen, publishing the virtual
machine template item will fail.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.CreateSpecPlacement.Builder setNetwork(java.lang.String network)
null
, the virtual Ethernet adapters will not be backed by 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.CreateSpecPlacement build()