public static final class LibraryItemsTypes.DeploySpecDiskStorage.Builder
extends java.lang.Object
LibraryItemsTypes.DeploySpecDiskStorage
.Constructor and Description |
---|
LibraryItemsTypes.DeploySpecDiskStorage.Builder()
Constructor with parameters for the required properties of
LibraryItemsTypes.DeploySpecDiskStorage . |
Modifier and Type | Method and Description |
---|---|
LibraryItemsTypes.DeploySpecDiskStorage |
build() |
LibraryItemsTypes.DeploySpecDiskStorage.Builder |
setDatastore(java.lang.String datastore)
Identifier for the datastore associated the deployed virtual machine's disk.
|
LibraryItemsTypes.DeploySpecDiskStorage.Builder |
setStoragePolicy(LibraryItemsTypes.DeploySpecDiskStoragePolicy storagePolicy)
Storage policy for the deployed virtual machine's disk.
|
public LibraryItemsTypes.DeploySpecDiskStorage.Builder()
LibraryItemsTypes.DeploySpecDiskStorage
.public LibraryItemsTypes.DeploySpecDiskStorage.Builder setDatastore(java.lang.String datastore)
null
, getStoragePolicy()
must be set. The server picks a datastore that is compatible with the specified
storage policy.
If both getDatastore()
and getStoragePolicy()
are specified, and the storage policy is incompatible with
the getDatastore()
, then the disk will be flagged as being out of
compliance with the specified storage policy.
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 LibraryItemsTypes.DeploySpecDiskStorage.Builder setStoragePolicy(LibraryItemsTypes.DeploySpecDiskStoragePolicy storagePolicy)
null
, getDatastore()
must be specified and the deployed
virtual machine's disk is created with the default storage policy associated
with the getDatastore()
.storagePolicy
- New value for the property.public LibraryItemsTypes.DeploySpecDiskStorage build()