public final class SizeParams
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
SizeParams
class contains estimates of the download and deployment
sizes.
This information is based on the file references and the ovf:DiskSection in the OVF descriptor.
See LibraryItem.deploy(java.lang.String, java.lang.String, com.vmware.vcenter.ovf.LibraryItemTypes.DeploymentTarget, com.vmware.vcenter.ovf.LibraryItemTypes.ResourcePoolDeploymentSpec)
and LibraryItem.filter(java.lang.String, com.vmware.vcenter.ovf.LibraryItemTypes.DeploymentTarget)
.
Modifier and Type | Class and Description |
---|---|
static class |
SizeParams.Builder
Builder class for
SizeParams . |
Modifier and Type | Field and Description |
---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
Modifier | Constructor and Description |
---|---|
|
SizeParams()
Default constructor.
|
protected |
SizeParams(com.vmware.vapi.data.StructValue __dynamicStructureFields) |
Modifier and Type | Method and Description |
---|---|
<T extends com.vmware.vapi.bindings.Structure> |
_convertTo(java.lang.Class<T> clazz) |
java.lang.String |
_getCanonicalName() |
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.
|
com.vmware.vapi.data.StructValue |
_getDataValue() |
com.vmware.vapi.data.DataValue |
_getDynamicField(java.lang.String fieldName) |
java.util.Set<java.lang.String> |
_getDynamicFieldNames() |
com.vmware.vapi.bindings.type.StructType |
_getType() |
boolean |
_hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz) |
static SizeParams |
_newInstance(com.vmware.vapi.data.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 SizeParams |
_newInstance2(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism. |
void |
_setDynamicField(java.lang.String fieldName,
com.vmware.vapi.data.DataValue fieldValue) |
protected void |
_updateDataValue(com.vmware.vapi.data.StructValue structValue) |
void |
_validate() |
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getApproximateDownloadSize()
A best guess as to the total amount of data that must be transferred to download
the OVF package.
|
java.lang.Long |
getApproximateFlatDeploymentSize()
A best guess as to the total amount of space required to deploy the OVF package
if using flat disks.
|
java.lang.Long |
getApproximateSparseDeploymentSize()
A best guess as to the total amount of space required to deploy the OVF package
using sparse disks.
|
java.lang.String |
getType()
Unique identifier describing the type of the OVF parameters.
|
java.lang.Boolean |
getVariableDiskSize()
Whether the OVF uses variable disk sizes.
|
int |
hashCode() |
void |
setApproximateDownloadSize(java.lang.Long approximateDownloadSize)
A best guess as to the total amount of data that must be transferred to download
the OVF package.
|
void |
setApproximateFlatDeploymentSize(java.lang.Long approximateFlatDeploymentSize)
A best guess as to the total amount of space required to deploy the OVF package
if using flat disks.
|
void |
setApproximateSparseDeploymentSize(java.lang.Long approximateSparseDeploymentSize)
A best guess as to the total amount of space required to deploy the OVF package
using sparse disks.
|
void |
setType(java.lang.String type)
Unique identifier describing the type of the OVF parameters.
|
void |
setVariableDiskSize(java.lang.Boolean variableDiskSize)
Whether the OVF uses variable disk sizes.
|
java.lang.String |
toString() |
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public SizeParams()
protected SizeParams(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public java.lang.Long getApproximateDownloadSize()
This may be inaccurate due to disk compression etc.
This property is not used in the input parameters when deploying an OVF package. This property is optional in the result when retrieving information about an OVF package. It will benull
if there is insufficient information to provide
a proper estimate.public void setApproximateDownloadSize(java.lang.Long approximateDownloadSize)
This may be inaccurate due to disk compression etc.
This property is not used in the input parameters when deploying an OVF package. This property is optional in the result when retrieving information about an OVF package. It will benull
if there is insufficient information to provide
a proper estimate.approximateDownloadSize
- New value for the property.public java.lang.Long getApproximateFlatDeploymentSize()
null
if there is insufficient information to provide
a proper estimate.public void setApproximateFlatDeploymentSize(java.lang.Long approximateFlatDeploymentSize)
null
if there is insufficient information to provide
a proper estimate.approximateFlatDeploymentSize
- New value for the property.public java.lang.Long getApproximateSparseDeploymentSize()
null
if there is insufficient information to provide
a proper estimate.public void setApproximateSparseDeploymentSize(java.lang.Long approximateSparseDeploymentSize)
null
if there is insufficient information to provide
a proper estimate.approximateSparseDeploymentSize
- New value for the property.public java.lang.Boolean getVariableDiskSize()
For empty disks, rather than specifying a fixed virtual disk capacity, the capacity may be given using a reference to a ovf:Property element in a ovf:ProductSection element in OVF package.
This property is not used in the input parameters when deploying an OVF package. This property is optional in the result when retrieving information about an OVF package. Ifnull
or false, the OVF does not use variable disk sizes.public void setVariableDiskSize(java.lang.Boolean variableDiskSize)
For empty disks, rather than specifying a fixed virtual disk capacity, the capacity may be given using a reference to a ovf:Property element in a ovf:ProductSection element in OVF package.
This property is not used in the input parameters when deploying an OVF package. This property is optional in the result when retrieving information about an OVF package. Ifnull
or false, the OVF does not use variable disk sizes.variableDiskSize
- New value for the property.public java.lang.String getType()
public void setType(java.lang.String type)
type
- New value for the property.public com.vmware.vapi.bindings.type.StructType _getType()
_getType
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.StructValue _getDataValue()
_getDataValue
in interface com.vmware.vapi.bindings.Structure
protected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
public void _validate()
_validate
in interface com.vmware.vapi.bindings.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()
toString
in interface com.vmware.vapi.bindings.StaticStructure
toString
in class java.lang.Object
public boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
_hasTypeNameOf
in interface com.vmware.vapi.bindings.Structure
public <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
_convertTo
in interface com.vmware.vapi.bindings.Structure
public void _setDynamicField(java.lang.String fieldName, com.vmware.vapi.data.DataValue fieldValue)
_setDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
_getDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public java.util.Set<java.lang.String> _getDynamicFieldNames()
_getDynamicFieldNames
in interface com.vmware.vapi.bindings.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()
_getCanonicalName
in interface com.vmware.vapi.bindings.Structure
public static java.lang.String _getCanonicalTypeName()
_getCanonicalName()
.public static SizeParams _newInstance(com.vmware.vapi.data.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 SizeParams _newInstance2(com.vmware.vapi.data.StructValue structValue)