public static final class LibraryItemTypes.ResourcePoolDeploymentSpec.Builder
extends java.lang.Object
LibraryItemTypes.ResourcePoolDeploymentSpec
.Constructor and Description |
---|
Builder(boolean acceptAllEULA)
Constructor with parameters for the required properties of
LibraryItemTypes.ResourcePoolDeploymentSpec . |
Modifier and Type | Method and Description |
---|---|
LibraryItemTypes.ResourcePoolDeploymentSpec |
build() |
LibraryItemTypes.ResourcePoolDeploymentSpec.Builder |
setAdditionalParameters(java.util.List<Structure> additionalParameters)
Additional OVF parameters that may be needed for the deployment.
|
LibraryItemTypes.ResourcePoolDeploymentSpec.Builder |
setAnnotation(java.lang.String annotation)
Annotation assigned to the deployed target virtual machine or virtual appliance.
|
LibraryItemTypes.ResourcePoolDeploymentSpec.Builder |
setDefaultDatastoreId(java.lang.String defaultDatastoreId)
Default datastore to use for all sections of type vmw:StorageSection in the OVF
descriptor.
|
LibraryItemTypes.ResourcePoolDeploymentSpec.Builder |
setFlags(java.util.List<java.lang.String> flags)
Flags to be use for deployment.
|
LibraryItemTypes.ResourcePoolDeploymentSpec.Builder |
setLocale(java.lang.String locale)
The locale to use for parsing the OVF descriptor.
|
LibraryItemTypes.ResourcePoolDeploymentSpec.Builder |
setName(java.lang.String name)
Name assigned to the deployed target virtual machine or virtual appliance.
|
LibraryItemTypes.ResourcePoolDeploymentSpec.Builder |
setNetworkMappings(java.util.Map<java.lang.String,java.lang.String> networkMappings)
Specification of the target network to use for sections of type
ovf:NetworkSection in the OVF descriptor.
|
LibraryItemTypes.ResourcePoolDeploymentSpec.Builder |
setStorageMappings(java.util.Map<java.lang.String,LibraryItemTypes.StorageGroupMapping> storageMappings)
Specification of the target storage to use for sections of type
vmw:StorageGroupSection in the OVF descriptor.
|
LibraryItemTypes.ResourcePoolDeploymentSpec.Builder |
setStorageProfileId(java.lang.String storageProfileId)
Default storage profile to use for all sections of type vmw:StorageSection in
the OVF descriptor.
|
LibraryItemTypes.ResourcePoolDeploymentSpec.Builder |
setStorageProvisioning(DiskProvisioningType storageProvisioning)
Default storage provisioning type to use for all sections of type
vmw:StorageSection in the OVF descriptor.
|
public Builder(boolean acceptAllEULA)
LibraryItemTypes.ResourcePoolDeploymentSpec
.public LibraryItemTypes.ResourcePoolDeploymentSpec.Builder setName(java.lang.String name)
null
, the server will use the name from the OVF package.name
- New value for the property.public LibraryItemTypes.ResourcePoolDeploymentSpec.Builder setAnnotation(java.lang.String annotation)
null
, the server will use the annotation from the OVF package.annotation
- New value for the property.public LibraryItemTypes.ResourcePoolDeploymentSpec.Builder setNetworkMappings(java.util.Map<java.lang.String,java.lang.String> networkMappings)
Map
is the section identifier of the ovf:NetworkSection section in the OVF
descriptor and the value is the target network to be used for deployment.
If null
, the server will choose a network mapping.networkMappings
- New value for the property.
When clients pass a value of this class as a parameter, the value in the
property Map
must be an identifier for the resource type:
Network
. When methods return a value of this class as a return value,
the value in the property Map
will be an identifier for the
resource type: Network
.public LibraryItemTypes.ResourcePoolDeploymentSpec.Builder setStorageMappings(java.util.Map<java.lang.String,LibraryItemTypes.StorageGroupMapping> storageMappings)
Map
is the section identifier of the ovf:StorageGroupSection section
in the OVF descriptor and the value is the target storage specification to be
used for deployment. See LibraryItemTypes.StorageGroupMapping
.
If null
, the server will choose a storage mapping.storageMappings
- New value for the property.public LibraryItemTypes.ResourcePoolDeploymentSpec.Builder setStorageProvisioning(DiskProvisioningType storageProvisioning)
null
, the server will choose the provisioning type.storageProvisioning
- New value for the property.public LibraryItemTypes.ResourcePoolDeploymentSpec.Builder setStorageProfileId(java.lang.String storageProfileId)
null
, the server will choose the default profile.storageProfileId
- 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: StorageProfile
. When methods return a
value of this class as a return value, the property will be an identifier for
the resource type: StorageProfile
.public LibraryItemTypes.ResourcePoolDeploymentSpec.Builder setLocale(java.lang.String locale)
null
, the server locale will be used.locale
- New value for the property.public LibraryItemTypes.ResourcePoolDeploymentSpec.Builder setFlags(java.util.List<java.lang.String> flags)
ImportFlag.list(java.lang.String)
.
If null
, no flags will be used.flags
- New value for the property.public LibraryItemTypes.ResourcePoolDeploymentSpec.Builder setAdditionalParameters(java.util.List<Structure> additionalParameters)
DeploymentOptionParams
ExtraConfigParams
IpAllocationParams
PropertyParams
ScaleOutParams
VcenterExtensionParams
null
, the server will choose default settings for all parameters
necessary for the deploy()
method. See LibraryItem.deploy(java.lang.String, java.lang.String, com.vmware.vcenter.ovf.LibraryItemTypes.DeploymentTarget, com.vmware.vcenter.ovf.LibraryItemTypes.ResourcePoolDeploymentSpec)
.additionalParameters
- New value for the property.
When clients pass a value of this class as a parameter, the property must
contain all the properties defined in OvfParams
.
When methods return a value of this class as a return value, the property will
contain all the properties defined in OvfParams
.public LibraryItemTypes.ResourcePoolDeploymentSpec.Builder setDefaultDatastoreId(java.lang.String defaultDatastoreId)
null
, the server will choose the default datastore.defaultDatastoreId
- 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 LibraryItemTypes.ResourcePoolDeploymentSpec build()