public final class IpAllocationParams
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
IpAllocationParams
class specifies how IP addresses are allocated to
OVF properties. In particular, it informs the deployment platform whether the
guest supports IPv4, IPv6, or both. It also specifies whether the IP addresses
can be obtained through DHCP or through the properties provided in the OVF
environment.
Ovf Property elements are exposed to the guest software through the OVF environment. Each Property element exposed in the OVF environment shall be constructed from the value of the ovf:key attribute. A Property element contains a key/value pair, it may optionally specify type qualifiers using the ovf:qualifiers attribute with multiple qualifiers separated by commas.
The settings in IpAllocationParams
class are global
to a deployment. Thus, if a virtual machine is part of a virtual appliance, then
its settings are ignored and the settings for the virtual appliance is used.
This information is based on the vmw:IpAssignmentSection in OVF package.
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 |
IpAllocationParams.Builder
Builder class for
IpAllocationParams . |
static class |
IpAllocationParams.IpAllocationPolicy
The
IpAllocationPolicy enumeration class defines the possible IP
allocation policy for a deployment. |
static class |
IpAllocationParams.IpAllocationScheme
The
IpAllocationScheme enumeration class defines the possible IP
allocation schemes that can be supported by the guest software. |
static class |
IpAllocationParams.IpProtocol
The
IpProtocol enumeration class defines the IP protocols supported by
the guest software. |
Modifier and Type | Field and Description |
---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
Modifier | Constructor and Description |
---|---|
|
IpAllocationParams()
Default constructor.
|
protected |
IpAllocationParams(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 IpAllocationParams |
_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 IpAllocationParams |
_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) |
IpAllocationParams.IpAllocationPolicy |
getIpAllocationPolicy()
Specifies how IP allocation is done through an IP Pool.
|
IpAllocationParams.IpProtocol |
getIpProtocol()
Specifies the chosen IP protocol for this deployment.
|
java.util.List<IpAllocationParams.IpAllocationScheme> |
getSupportedAllocationScheme()
Specifies the IP allocation schemes supported by the guest software.
|
java.util.List<IpAllocationParams.IpAllocationPolicy> |
getSupportedIpAllocationPolicy()
Specifies the IP allocation policies supported.
|
java.util.List<IpAllocationParams.IpProtocol> |
getSupportedIpProtocol()
Specifies the IP protocols supported by the guest.
|
java.lang.String |
getType()
Unique identifier describing the type of the OVF parameters.
|
int |
hashCode() |
void |
setIpAllocationPolicy(IpAllocationParams.IpAllocationPolicy ipAllocationPolicy)
Specifies how IP allocation is done through an IP Pool.
|
void |
setIpProtocol(IpAllocationParams.IpProtocol ipProtocol)
Specifies the chosen IP protocol for this deployment.
|
void |
setSupportedAllocationScheme(java.util.List<IpAllocationParams.IpAllocationScheme> supportedAllocationScheme)
Specifies the IP allocation schemes supported by the guest software.
|
void |
setSupportedIpAllocationPolicy(java.util.List<IpAllocationParams.IpAllocationPolicy> supportedIpAllocationPolicy)
Specifies the IP allocation policies supported.
|
void |
setSupportedIpProtocol(java.util.List<IpAllocationParams.IpProtocol> supportedIpProtocol)
Specifies the IP protocols supported by the guest.
|
void |
setType(java.lang.String type)
Unique identifier describing the type of the OVF parameters.
|
java.lang.String |
toString() |
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public IpAllocationParams()
protected IpAllocationParams(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public java.util.List<IpAllocationParams.IpAllocationScheme> getSupportedAllocationScheme()
getIpAllocationPolicy()
.
This property is not used in the input parameters when deploying an OVF package.
This property will always be present in the result when retrieving information
about an OVF package.public void setSupportedAllocationScheme(java.util.List<IpAllocationParams.IpAllocationScheme> supportedAllocationScheme)
getIpAllocationPolicy()
.
This property is not used in the input parameters when deploying an OVF package.
This property will always be present in the result when retrieving information
about an OVF package.supportedAllocationScheme
- New value for the property.public java.util.List<IpAllocationParams.IpAllocationPolicy> getSupportedIpAllocationPolicy()
getSupportedAllocationScheme()
property.
This property is not used in the input parameters when deploying an OVF package.
This property will always be present in the result when retrieving information
about an OVF package.public void setSupportedIpAllocationPolicy(java.util.List<IpAllocationParams.IpAllocationPolicy> supportedIpAllocationPolicy)
getSupportedAllocationScheme()
property.
This property is not used in the input parameters when deploying an OVF package.
This property will always be present in the result when retrieving information
about an OVF package.supportedIpAllocationPolicy
- New value for the property.public IpAllocationParams.IpAllocationPolicy getIpAllocationPolicy()
null
there is no IP allocation policy. This property will always be
present in the result when retrieving information about an OVF package.public void setIpAllocationPolicy(IpAllocationParams.IpAllocationPolicy ipAllocationPolicy)
null
there is no IP allocation policy. This property will always be
present in the result when retrieving information about an OVF package.ipAllocationPolicy
- New value for the property.public java.util.List<IpAllocationParams.IpProtocol> getSupportedIpProtocol()
public void setSupportedIpProtocol(java.util.List<IpAllocationParams.IpProtocol> supportedIpProtocol)
supportedIpProtocol
- New value for the property.public IpAllocationParams.IpProtocol getIpProtocol()
getSupportedIpProtocol()
.
This property is optional in the input parameters when deploying an OVF package.
If null
there is no IP protocol chosen. This property will always be
present in the result when retrieving information about an OVF package.public void setIpProtocol(IpAllocationParams.IpProtocol ipProtocol)
getSupportedIpProtocol()
.
This property is optional in the input parameters when deploying an OVF package.
If null
there is no IP protocol chosen. This property will always be
present in the result when retrieving information about an OVF package.ipProtocol
- 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 IpAllocationParams _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 IpAllocationParams _newInstance2(com.vmware.vapi.data.StructValue structValue)