public static final class LibraryItemTypes.ResourcePoolDeploymentSpec extends java.lang.Object implements java.io.Serializable, StaticStructure
ResourcePoolDeploymentSpec
class defines the deployment parameters
that can be specified for the deploy()
method where the deployment
target is a resource pool. See LibraryItem.deploy(java.lang.String, java.lang.String, com.vmware.vcenter.ovf.LibraryItemTypes.DeploymentTarget, com.vmware.vcenter.ovf.LibraryItemTypes.ResourcePoolDeploymentSpec)
.Modifier and Type | Class and Description |
---|---|
static class |
LibraryItemTypes.ResourcePoolDeploymentSpec.Builder
Builder class for
LibraryItemTypes.ResourcePoolDeploymentSpec . |
Modifier and Type | Field and Description |
---|---|
protected StructValue |
__dynamicStructureFields |
Modifier | Constructor and Description |
---|---|
|
ResourcePoolDeploymentSpec()
Default constructor.
|
protected |
ResourcePoolDeploymentSpec(StructValue __dynamicStructureFields) |
Modifier and Type | Method and Description |
---|---|
<T extends Structure> |
_convertTo(java.lang.Class<T> clazz)
Converts this structure into an instance of the provided class structure
if possible.
|
java.lang.String |
_getCanonicalName()
Returns the canonical name of the structure.
|
static java.lang.String |
_getCanonicalTypeName()
Returns the canonical type name.
|
static com.vmware.vapi.bindings.type.StructType |
_getClassType()
WARNING: Internal method, subject to change in future versions.
|
StructValue |
_getDataValue()
Returns this
Structure represented in the dynamic
DataValue model. |
DataValue |
_getDynamicField(java.lang.String fieldName)
Get dynamic filed value.
|
java.util.Set<java.lang.String> |
_getDynamicFieldNames()
Get the names of the dynamic fields in the structure.
|
com.vmware.vapi.bindings.type.StructType |
_getType()
WARNING: Internal method, subject to change in future versions.
|
boolean |
_hasTypeNameOf(java.lang.Class<? extends Structure> clazz)
Checks if the runtime type name of this structure matches the type
represented by the specified binding class.
|
static LibraryItemTypes.ResourcePoolDeploymentSpec |
_newInstance(StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value. WARNING: The returned object is not fully initialized. |
static LibraryItemTypes.ResourcePoolDeploymentSpec |
_newInstance2(StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism. |
void |
_setDynamicField(java.lang.String fieldName,
DataValue fieldValue)
Sets a dynamic field value.
|
protected void |
_updateDataValue(StructValue structValue) |
void |
_validate()
Validates the state of the discriminated unions and HasFieldsOf
restrictions (if any) in this Java language binding
Structure . |
boolean |
equals(java.lang.Object obj) |
boolean |
getAcceptAllEULA()
Whether to accept all End User License Agreements.
|
java.util.List<Structure> |
getAdditionalParameters()
Additional OVF parameters that may be needed for the deployment.
|
java.lang.String |
getAnnotation()
Annotation assigned to the deployed target virtual machine or virtual appliance.
|
java.lang.String |
getDefaultDatastoreId()
Default datastore to use for all sections of type vmw:StorageSection in the OVF
descriptor.
|
java.util.List<java.lang.String> |
getFlags()
Flags to be use for deployment.
|
java.lang.String |
getLocale()
The locale to use for parsing the OVF descriptor.
|
java.lang.String |
getName()
Name assigned to the deployed target virtual machine or virtual appliance.
|
java.util.Map<java.lang.String,java.lang.String> |
getNetworkMappings()
Specification of the target network to use for sections of type
ovf:NetworkSection in the OVF descriptor.
|
java.util.Map<java.lang.String,LibraryItemTypes.StorageGroupMapping> |
getStorageMappings()
Specification of the target storage to use for sections of type
vmw:StorageGroupSection in the OVF descriptor.
|
java.lang.String |
getStorageProfileId()
Default storage profile to use for all sections of type vmw:StorageSection in
the OVF descriptor.
|
DiskProvisioningType |
getStorageProvisioning()
Default storage provisioning type to use for all sections of type
vmw:StorageSection in the OVF descriptor.
|
int |
hashCode() |
void |
setAcceptAllEULA(boolean acceptAllEULA)
Whether to accept all End User License Agreements.
|
void |
setAdditionalParameters(java.util.List<Structure> additionalParameters)
Additional OVF parameters that may be needed for the deployment.
|
void |
setAnnotation(java.lang.String annotation)
Annotation assigned to the deployed target virtual machine or virtual appliance.
|
void |
setDefaultDatastoreId(java.lang.String defaultDatastoreId)
Default datastore to use for all sections of type vmw:StorageSection in the OVF
descriptor.
|
void |
setFlags(java.util.List<java.lang.String> flags)
Flags to be use for deployment.
|
void |
setLocale(java.lang.String locale)
The locale to use for parsing the OVF descriptor.
|
void |
setName(java.lang.String name)
Name assigned to the deployed target virtual machine or virtual appliance.
|
void |
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.
|
void |
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.
|
void |
setStorageProfileId(java.lang.String storageProfileId)
Default storage profile to use for all sections of type vmw:StorageSection in
the OVF descriptor.
|
void |
setStorageProvisioning(DiskProvisioningType storageProvisioning)
Default storage provisioning type to use for all sections of type
vmw:StorageSection in the OVF descriptor.
|
java.lang.String |
toString()
Returns a string representation of this structure.
|
protected StructValue __dynamicStructureFields
public ResourcePoolDeploymentSpec()
protected ResourcePoolDeploymentSpec(StructValue __dynamicStructureFields)
public java.lang.String getName()
null
, the server will use the name from the OVF package.public void setName(java.lang.String name)
null
, the server will use the name from the OVF package.name
- New value for the property.public java.lang.String getAnnotation()
null
, the server will use the annotation from the OVF package.public void setAnnotation(java.lang.String annotation)
null
, the server will use the annotation from the OVF package.annotation
- New value for the property.public boolean getAcceptAllEULA()
LibraryItemTypes.OvfSummary.getEULAs()
.public void setAcceptAllEULA(boolean acceptAllEULA)
LibraryItemTypes.OvfSummary.getEULAs()
.acceptAllEULA
- New value for the property.public java.util.Map<java.lang.String,java.lang.String> getNetworkMappings()
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.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 void 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 java.util.Map<java.lang.String,LibraryItemTypes.StorageGroupMapping> getStorageMappings()
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.public void 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 DiskProvisioningType getStorageProvisioning()
null
, the server will choose the provisioning type.public void setStorageProvisioning(DiskProvisioningType storageProvisioning)
null
, the server will choose the provisioning type.storageProvisioning
- New value for the property.public java.lang.String getStorageProfileId()
null
, the server will choose the default profile.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 void 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 java.lang.String getLocale()
null
, the server locale will be used.public void setLocale(java.lang.String locale)
null
, the server locale will be used.locale
- New value for the property.public java.util.List<java.lang.String> getFlags()
ImportFlag.list(java.lang.String)
.
If null
, no flags will be used.public void 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 java.util.List<Structure> getAdditionalParameters()
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)
.public void 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 java.lang.String getDefaultDatastoreId()
null
, the server will choose the default datastore.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 void 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 com.vmware.vapi.bindings.type.StructType _getType()
StaticStructure
StructType
instance representing the static bindings
type for this Structure
._getType
in interface StaticStructure
StructType
public StructValue _getDataValue()
Structure
Structure
represented in the dynamic
DataValue
model.
Attempts to change the returned StructValue
representation are not required to change the state of this structure.
Actually the behavior is implementation dependent and is unspecified.
In general the returned value shouldn't be changed.
_getDataValue
in interface Structure
StructValue
representing this structureprotected void _updateDataValue(StructValue structValue)
public void _validate()
StaticStructure
Structure
.
More precisely, for each union: given value of the discriminant/tag
field (@UnionTag
in the IDL) of an union in this structure,
validates that:
_validate
in interface StaticStructure
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
StaticStructure
In general no code should depend on the format of the resulting string. E.g. there must be no attempts to parse for re-creation of the original instance.
toString
in interface StaticStructure
toString
in class java.lang.Object
public boolean _hasTypeNameOf(java.lang.Class<? extends Structure> clazz)
Structure
This can be used as efficient check to determine if this instance
can be successfully converted
to the target
type.
_hasTypeNameOf
in interface Structure
clazz
- bindings class for the target structure; must not be null
public <T extends Structure> T _convertTo(java.lang.Class<T> clazz)
Structure
_convertTo
in interface Structure
clazz
- type of the result structure. cannot be null.CoreException
is thrown otherwise.public void _setDynamicField(java.lang.String fieldName, DataValue fieldValue)
StaticStructure
_setDynamicField
in interface StaticStructure
fieldName
- canonical name of the dynamic field to setfieldValue
- the value of the fieldpublic DataValue _getDynamicField(java.lang.String fieldName)
StaticStructure
_getDynamicField
in interface StaticStructure
fieldName
- the canonical name of the dynamic fieldDataValue
of the dynamic fieldpublic java.util.Set<java.lang.String> _getDynamicFieldNames()
StaticStructure
_getDynamicFieldNames
in interface StaticStructure
public static com.vmware.vapi.bindings.type.StructType _getClassType()
StructType
instance representing the static bindings
type for this Structure
.public java.lang.String _getCanonicalName()
Structure
org.example.FooBar
would turn into
org.example.foo_bar
._getCanonicalName
in interface Structure
public static java.lang.String _getCanonicalTypeName()
_getCanonicalName()
.public static LibraryItemTypes.ResourcePoolDeploymentSpec _newInstance(StructValue structValue)
structValue
- the source of the data contained in the binding object. Could
contain more data than fields of this class can describe i.e.
newer version of the binding object. Could be null.StructType
public static LibraryItemTypes.ResourcePoolDeploymentSpec _newInstance2(StructValue structValue)