public static final class LibraryItemsTypes.CreatePlacementSpec.Builder
extends java.lang.Object
LibraryItemsTypes.CreatePlacementSpec
.Constructor and Description |
---|
LibraryItemsTypes.CreatePlacementSpec.Builder()
Constructor with parameters for the required properties of
LibraryItemsTypes.CreatePlacementSpec . |
Modifier and Type | Method and Description |
---|---|
LibraryItemsTypes.CreatePlacementSpec |
build() |
LibraryItemsTypes.CreatePlacementSpec.Builder |
setCluster(java.lang.String cluster)
Cluster onto which the virtual machine template should be placed.
|
LibraryItemsTypes.CreatePlacementSpec.Builder |
setFolder(java.lang.String folder)
Virtual machine folder into which the virtual machine template should be placed.
|
LibraryItemsTypes.CreatePlacementSpec.Builder |
setHost(java.lang.String host)
Host onto which the virtual machine template should be placed.
|
LibraryItemsTypes.CreatePlacementSpec.Builder |
setResourcePool(java.lang.String resourcePool)
Resource pool into which the virtual machine template should be placed.
|
public LibraryItemsTypes.CreatePlacementSpec.Builder()
LibraryItemsTypes.CreatePlacementSpec
.public LibraryItemsTypes.CreatePlacementSpec.Builder setFolder(java.lang.String folder)
null
, the virtual machine template will be placed in the same folder
as the source virtual machine.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 LibraryItemsTypes.CreatePlacementSpec.Builder setResourcePool(java.lang.String resourcePool)
null
, the system will attempt to choose a suitable resource pool for
the virtual machine template; if a resource pool cannot be chosen, the library
item creation 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 LibraryItemsTypes.CreatePlacementSpec.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 U1.
This property may be null
if getResourcePool()
or getCluster()
is specified. If null
, the system will attempt to choose a
suitable host for the virtual machine template; if a host cannot be chosen, the
library item creation operation 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
. When methods return a
value of this class as a return value, the property will be an identifier for
the resource type: HostSystem
.public LibraryItemsTypes.CreatePlacementSpec.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 U1.
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
. When methods
return a value of this class as a return value, the property will be an
identifier for the resource type: ClusterComputeResource
.public LibraryItemsTypes.CreatePlacementSpec build()