public final class VifAttachmentContext
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
Modifier and Type | Class and Description |
---|---|
static class |
VifAttachmentContext.Builder
Builder class for
VifAttachmentContext . |
Modifier and Type | Field and Description |
---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
static java.lang.String |
_TYPE_IDENTIFIER
Identifier denoting this class, when it is used in polymorphic context.
|
static java.lang.String |
VIF_TYPE_CHILD |
static java.lang.String |
VIF_TYPE_INDEPENDENT |
static java.lang.String |
VIF_TYPE_PARENT |
Modifier | Constructor and Description |
---|---|
|
VifAttachmentContext()
Default constructor.
|
protected |
VifAttachmentContext(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 VifAttachmentContext |
_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 VifAttachmentContext |
_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.String |
getAllocateAddresses()
Possible values are:
AttachmentContext.ALLOCATE_ADDRESSES_IPPOOL
AttachmentContext.ALLOCATE_ADDRESSES_MACPOOL
AttachmentContext.ALLOCATE_ADDRESSES_BOTH
AttachmentContext.ALLOCATE_ADDRESSES_NONE
AttachmentContext.ALLOCATE_ADDRESSES_DHCP
AttachmentContext.ALLOCATE_ADDRESSES_DHCPV6
AttachmentContext.ALLOCATE_ADDRESSES_SLAAC
A flag to indicate whether to allocate addresses from allocation pools
bound to the parent logical switch. |
java.lang.String |
getAppId()
An application ID used to identify / look up a child VIF behind a parent VIF.
|
AttachedInterface |
getBmsInterfaceConfig() |
java.lang.String |
getParentVifId()
VIF ID of the parent VIF if vif_type is CHILD
|
java.lang.String |
getResourceType()
Used to identify which concrete class it is
The value of this property is automatically populated to
"VifAttachmentContext" . |
java.lang.Long |
getTrafficTag()
Current we use VLAN id as the traffic tag.
|
java.lang.String |
getTransportNodeUuid()
Only effective when vif_type is INDEPENDENT.
|
java.lang.String |
getVifType()
Possible values are:
VIF_TYPE_PARENT VIF_TYPE_CHILD VIF_TYPE_INDEPENDENT Type
of the VIF attached to logical port |
int |
hashCode() |
void |
setAllocateAddresses(java.lang.String allocateAddresses)
Possible values are:
AttachmentContext.ALLOCATE_ADDRESSES_IPPOOL
AttachmentContext.ALLOCATE_ADDRESSES_MACPOOL
AttachmentContext.ALLOCATE_ADDRESSES_BOTH
AttachmentContext.ALLOCATE_ADDRESSES_NONE
AttachmentContext.ALLOCATE_ADDRESSES_DHCP
AttachmentContext.ALLOCATE_ADDRESSES_DHCPV6
AttachmentContext.ALLOCATE_ADDRESSES_SLAAC
A flag to indicate whether to allocate addresses from allocation pools
bound to the parent logical switch. |
void |
setAppId(java.lang.String appId)
An application ID used to identify / look up a child VIF behind a parent VIF.
|
void |
setBmsInterfaceConfig(AttachedInterface bmsInterfaceConfig) |
void |
setParentVifId(java.lang.String parentVifId)
VIF ID of the parent VIF if vif_type is CHILD
|
void |
setTrafficTag(java.lang.Long trafficTag)
Current we use VLAN id as the traffic tag.
|
void |
setTransportNodeUuid(java.lang.String transportNodeUuid)
Only effective when vif_type is INDEPENDENT.
|
void |
setVifType(java.lang.String vifType)
Possible values are:
VIF_TYPE_PARENT VIF_TYPE_CHILD VIF_TYPE_INDEPENDENT Type
of the VIF attached to logical port |
java.lang.String |
toString() |
public static final java.lang.String _TYPE_IDENTIFIER
This value should be assigned to the property which is used to discriminate the actual type used in the polymorphic context.
public static final java.lang.String VIF_TYPE_PARENT
public static final java.lang.String VIF_TYPE_CHILD
public static final java.lang.String VIF_TYPE_INDEPENDENT
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public VifAttachmentContext()
protected VifAttachmentContext(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public java.lang.String getAppId()
public void setAppId(java.lang.String appId)
appId
- New value for the property.public AttachedInterface getBmsInterfaceConfig()
public void setBmsInterfaceConfig(AttachedInterface bmsInterfaceConfig)
bmsInterfaceConfig
- New value for the property.public java.lang.String getParentVifId()
public void setParentVifId(java.lang.String parentVifId)
parentVifId
- New value for the property.public java.lang.Long getTrafficTag()
public void setTrafficTag(java.lang.Long trafficTag)
trafficTag
- New value for the property.public java.lang.String getTransportNodeUuid()
public void setTransportNodeUuid(java.lang.String transportNodeUuid)
transportNodeUuid
- New value for the property.public java.lang.String getVifType()
public void setVifType(java.lang.String vifType)
vifType
- New value for the property.public java.lang.String getAllocateAddresses()
AttachmentContext.ALLOCATE_ADDRESSES_IPPOOL
AttachmentContext.ALLOCATE_ADDRESSES_MACPOOL
AttachmentContext.ALLOCATE_ADDRESSES_BOTH
AttachmentContext.ALLOCATE_ADDRESSES_NONE
AttachmentContext.ALLOCATE_ADDRESSES_DHCP
AttachmentContext.ALLOCATE_ADDRESSES_DHCPV6
AttachmentContext.ALLOCATE_ADDRESSES_SLAAC
public void setAllocateAddresses(java.lang.String allocateAddresses)
AttachmentContext.ALLOCATE_ADDRESSES_IPPOOL
AttachmentContext.ALLOCATE_ADDRESSES_MACPOOL
AttachmentContext.ALLOCATE_ADDRESSES_BOTH
AttachmentContext.ALLOCATE_ADDRESSES_NONE
AttachmentContext.ALLOCATE_ADDRESSES_DHCP
AttachmentContext.ALLOCATE_ADDRESSES_DHCPV6
AttachmentContext.ALLOCATE_ADDRESSES_SLAAC
allocateAddresses
- New value for the property.public java.lang.String getResourceType()
"VifAttachmentContext"
.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 VifAttachmentContext _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 VifAttachmentContext _newInstance2(com.vmware.vapi.data.StructValue structValue)