public static final class DiskTypes.VmdkCreateSpec.Builder
extends java.lang.Object
DiskTypes.VmdkCreateSpec
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
DiskTypes.VmdkCreateSpec . |
Modifier and Type | Method and Description |
---|---|
DiskTypes.VmdkCreateSpec |
build() |
DiskTypes.VmdkCreateSpec.Builder |
setCapacity(java.lang.Long capacity)
Capacity of the virtual disk backing in bytes.
|
DiskTypes.VmdkCreateSpec.Builder |
setName(java.lang.String name)
Base name of the VMDK file.
|
DiskTypes.VmdkCreateSpec.Builder |
setStoragePolicy(DiskTypes.StoragePolicySpec storagePolicy)
The
StoragePolicySpec class contains information about the storage
policy that is to be associated the with VMDK file. |
public Builder()
DiskTypes.VmdkCreateSpec
.public DiskTypes.VmdkCreateSpec.Builder setName(java.lang.String name)
null
, a name (derived from the name of the virtual machine) will be
chosen by the server.name
- New value for the property.public DiskTypes.VmdkCreateSpec.Builder setCapacity(java.lang.Long capacity)
null
, defaults to a guest-specific capacity.capacity
- New value for the property.public DiskTypes.VmdkCreateSpec.Builder setStoragePolicy(DiskTypes.StoragePolicySpec storagePolicy)
StoragePolicySpec
class contains information about the storage
policy that is to be associated the with VMDK file. This property was added in
vSphere API 6.7.
If null
the default storage policy of the target datastore (if
applicable) is applied. Currently a default storage policy is only supported by
object based datastores : VVol & vSAN. For non- object datastores, if null
then no storage policy would be associated with the VMDK file.storagePolicy
- New value for the property.public DiskTypes.VmdkCreateSpec build()