public final class PortAttachment
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
Modifier and Type | Class and Description |
---|---|
static class |
PortAttachment.Builder
Builder class for
PortAttachment . |
Modifier and Type | Field and Description |
---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
static java.lang.String |
ALLOCATE_ADDRESSES_BOTH |
static java.lang.String |
ALLOCATE_ADDRESSES_DHCP |
static java.lang.String |
ALLOCATE_ADDRESSES_DHCPV6 |
static java.lang.String |
ALLOCATE_ADDRESSES_IP_POOL |
static java.lang.String |
ALLOCATE_ADDRESSES_MAC_POOL |
static java.lang.String |
ALLOCATE_ADDRESSES_NONE |
static java.lang.String |
ALLOCATE_ADDRESSES_SLAAC |
static java.lang.String |
CONTEXT_TYPE_PARENT |
static java.lang.String |
HYPERBUS_MODE_DISABLE |
static java.lang.String |
HYPERBUS_MODE_ENABLE |
static java.lang.String |
TYPE_CHILD |
static java.lang.String |
TYPE_INDEPENDENT |
static java.lang.String |
TYPE_PARENT |
static java.lang.String |
TYPE_STATIC |
Modifier | Constructor and Description |
---|---|
|
PortAttachment()
Default constructor.
|
protected |
PortAttachment(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 PortAttachment |
_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 PortAttachment |
_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:
ALLOCATE_ADDRESSES_IP_POOL
ALLOCATE_ADDRESSES_MAC_POOL
ALLOCATE_ADDRESSES_BOTH
ALLOCATE_ADDRESSES_NONE
ALLOCATE_ADDRESSES_DHCP
ALLOCATE_ADDRESSES_DHCPV6
ALLOCATE_ADDRESSES_SLAAC
Indicate how IP will be allocated for the port |
java.lang.String |
getAppId()
ID used to identify/look up a child attachment behind a parent attachment
|
AttachedInterfaceEntry |
getBmsInterfaceConfig() |
java.lang.String |
getContextId()
If type is CHILD and the parent port is on the same segment as the child port,
then this field should be VIF ID of the parent port.
|
java.lang.String |
getContextType()
Possible values are:
CONTEXT_TYPE_PARENT Set
to PARENT when type field is CHILD. |
java.util.List<java.lang.String> |
getEvpnVlans()
List of Evpn tenant VLAN IDs the Parent logical-port serves in Evpn Route-Server
mode.
|
java.lang.String |
getHyperbusMode()
Possible values are:
HYPERBUS_MODE_ENABLE
HYPERBUS_MODE_DISABLE
Flag to indicate if hyperbus configuration is required. |
java.lang.String |
getId()
VIF UUID on NSX Manager.
|
java.lang.Long |
getTrafficTag()
Not valid when type field is INDEPENDENT, mainly used to identify traffic from
different ports in container use case.
|
java.lang.String |
getType()
|
int |
hashCode() |
void |
setAllocateAddresses(java.lang.String allocateAddresses)
Possible values are:
ALLOCATE_ADDRESSES_IP_POOL
ALLOCATE_ADDRESSES_MAC_POOL
ALLOCATE_ADDRESSES_BOTH
ALLOCATE_ADDRESSES_NONE
ALLOCATE_ADDRESSES_DHCP
ALLOCATE_ADDRESSES_DHCPV6
ALLOCATE_ADDRESSES_SLAAC
Indicate how IP will be allocated for the port |
void |
setAppId(java.lang.String appId)
ID used to identify/look up a child attachment behind a parent attachment
|
void |
setBmsInterfaceConfig(AttachedInterfaceEntry bmsInterfaceConfig) |
void |
setContextId(java.lang.String contextId)
If type is CHILD and the parent port is on the same segment as the child port,
then this field should be VIF ID of the parent port.
|
void |
setContextType(java.lang.String contextType)
Possible values are:
CONTEXT_TYPE_PARENT Set
to PARENT when type field is CHILD. |
void |
setEvpnVlans(java.util.List<java.lang.String> evpnVlans)
List of Evpn tenant VLAN IDs the Parent logical-port serves in Evpn Route-Server
mode.
|
void |
setHyperbusMode(java.lang.String hyperbusMode)
Possible values are:
HYPERBUS_MODE_ENABLE
HYPERBUS_MODE_DISABLE
Flag to indicate if hyperbus configuration is required. |
void |
setId(java.lang.String id)
VIF UUID on NSX Manager.
|
void |
setTrafficTag(java.lang.Long trafficTag)
Not valid when type field is INDEPENDENT, mainly used to identify traffic from
different ports in container use case.
|
void |
setType(java.lang.String type)
|
java.lang.String |
toString() |
public static final java.lang.String ALLOCATE_ADDRESSES_IP_POOL
public static final java.lang.String ALLOCATE_ADDRESSES_MAC_POOL
public static final java.lang.String ALLOCATE_ADDRESSES_BOTH
public static final java.lang.String ALLOCATE_ADDRESSES_NONE
public static final java.lang.String ALLOCATE_ADDRESSES_DHCP
public static final java.lang.String ALLOCATE_ADDRESSES_DHCPV6
public static final java.lang.String ALLOCATE_ADDRESSES_SLAAC
public static final java.lang.String CONTEXT_TYPE_PARENT
public static final java.lang.String HYPERBUS_MODE_ENABLE
public static final java.lang.String HYPERBUS_MODE_DISABLE
public static final java.lang.String TYPE_PARENT
public static final java.lang.String TYPE_CHILD
public static final java.lang.String TYPE_INDEPENDENT
public static final java.lang.String TYPE_STATIC
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public PortAttachment()
protected PortAttachment(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public java.lang.String getAllocateAddresses()
public void setAllocateAddresses(java.lang.String allocateAddresses)
allocateAddresses
- New value for the property.public java.lang.String getAppId()
public void setAppId(java.lang.String appId)
appId
- New value for the property.public AttachedInterfaceEntry getBmsInterfaceConfig()
public void setBmsInterfaceConfig(AttachedInterfaceEntry bmsInterfaceConfig)
bmsInterfaceConfig
- New value for the property.public java.lang.String getContextId()
public void setContextId(java.lang.String contextId)
contextId
- New value for the property.public java.lang.String getContextType()
public void setContextType(java.lang.String contextType)
contextType
- New value for the property.public java.util.List<java.lang.String> getEvpnVlans()
public void setEvpnVlans(java.util.List<java.lang.String> evpnVlans)
evpnVlans
- New value for the property.public java.lang.String getHyperbusMode()
public void setHyperbusMode(java.lang.String hyperbusMode)
hyperbusMode
- New value for the property.public java.lang.String getId()
public void setId(java.lang.String id)
id
- 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 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 PortAttachment _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 PortAttachment _newInstance2(com.vmware.vapi.data.StructValue structValue)