public static final class VMTypes.ClonePlacementSpec.Builder
extends java.lang.Object
VMTypes.ClonePlacementSpec.| Constructor and Description |
|---|
Builder()
Constructor with parameters for the required properties of
VMTypes.ClonePlacementSpec. |
| Modifier and Type | Method and Description |
|---|---|
VMTypes.ClonePlacementSpec |
build() |
VMTypes.ClonePlacementSpec.Builder |
setCluster(java.lang.String cluster)
Cluster into which the cloned virtual machine should be placed.
|
VMTypes.ClonePlacementSpec.Builder |
setDatastore(java.lang.String datastore)
Datastore on which the cloned virtual machine's configuration state should be
stored.
|
VMTypes.ClonePlacementSpec.Builder |
setFolder(java.lang.String folder)
Virtual machine folder into which the cloned virtual machine should be placed.
|
VMTypes.ClonePlacementSpec.Builder |
setHost(java.lang.String host)
Host onto which the cloned virtual machine should be placed.
|
VMTypes.ClonePlacementSpec.Builder |
setResourcePool(java.lang.String resourcePool)
Resource pool into which the cloned virtual machine should be placed.
|
public Builder()
VMTypes.ClonePlacementSpec.public VMTypes.ClonePlacementSpec.Builder setFolder(java.lang.String folder)
null, the system will use the virtual machine folder of
the source virtual machine. If this results in a conflict due to other placement
parameters, the virtual machine clone operation 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. When methods return a value of
this class as a return value, the property will be an identifier for the
resource type: Folder.public VMTypes.ClonePlacementSpec.Builder setResourcePool(java.lang.String resourcePool)
null, the system will use the resource pool of the source
virtual machine. If this results in a conflict due to other placement
parameters, the virtual machine clone operation 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. When methods return a
value of this class as a return value, the property will be an identifier for
the resource type: ResourcePool.public VMTypes.ClonePlacementSpec.Builder setHost(java.lang.String host)
If 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().
getResourcePool() is unset, the cloned
virtual machine will use the host of the source virtual machine. if getResourcePool() is set, and the target is a standalone host, the host is
used. if getResourcePool() is set, and the target is a DRS cluster, a
host will be picked by DRS. if getResourcePool() is set, and the target
is a cluster without DRS, InvalidArgument will be thrown.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. When methods return a
value of this class as a return value, the property will be an identifier for
the resource type: HostSystem.public VMTypes.ClonePlacementSpec.Builder setCluster(java.lang.String cluster)
If 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().
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. When methods
return a value of this class as a return value, the property will be an
identifier for the resource type: ClusterComputeResource.public VMTypes.ClonePlacementSpec.Builder setDatastore(java.lang.String datastore)
null, the system will use the datastore of the source
virtual machine.datastore - 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: Datastore. When methods return a value
of this class as a return value, the property will be an identifier for the
resource type: Datastore.public VMTypes.ClonePlacementSpec build()