public final class Segment
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
Modifier and Type | Class and Description |
---|---|
static class |
Segment.Builder
Builder class for
Segment . |
Modifier and Type | Field and Description |
---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
static java.lang.String |
ADMIN_STATE_DOWN |
static java.lang.String |
ADMIN_STATE_UP |
static java.lang.String |
REPLICATION_MODE_MTEP |
static java.lang.String |
REPLICATION_MODE_SOURCE |
static java.lang.String |
TYPE_DISCONNECTED |
static java.lang.String |
TYPE_EXTENDED |
static java.lang.String |
TYPE_ROUTED |
static java.lang.String |
TYPE_ROUTED_AND_EXTENDED |
Modifier | Constructor and Description |
---|---|
|
Segment()
Default constructor.
|
protected |
Segment(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 Segment |
_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 Segment |
_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.util.List<PortAddressBindingEntry> |
getAddressBindings()
Deprecated.
|
java.lang.String |
getAdminState()
Possible values are:
ADMIN_STATE_UP ADMIN_STATE_DOWN Admin state
represents desired state of segment. |
SegmentAdvancedConfig |
getAdvancedConfig() |
java.util.List<BridgeProfileConfig> |
getBridgeProfiles()
Multiple distinct L2 bridge profiles can be configured.
|
java.util.List<com.vmware.vapi.bindings.Structure> |
getChildren()
Subtree for this type within policy tree containing nested elements.
|
java.lang.String |
getConnectivityPath()
Policy path to the connecting Tier-0 or Tier-1 or label of type Tier0.
|
java.lang.Long |
getCreateTime()
Timestamp of resource creation format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
java.lang.String |
getCreateUser()
ID of the user who created this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
java.lang.String |
getDescription()
Description of this resource
|
java.lang.String |
getDhcpConfigPath()
Policy path to DHCP server or relay configuration to use for all IPv4 & IPv6
subnets configured on this segment.
|
java.lang.String |
getDisplayName()
Defaults to ID if not set
|
java.lang.String |
getDomainName()
DNS domain name
|
java.lang.Boolean |
getEvpnSegment()
Flag to indicate if the Segment is a Child-Segment of type EVPN.
|
java.lang.String |
getEvpnTenantConfigPath()
Policy path to the EvpnTenantConfig resource.
|
java.util.List<SegmentExtraConfig> |
getExtraConfigs()
This property could be used for vendor specific configuration in key value
string pairs, the setting in extra_configs will be automatically inheritted by
segment ports in the Segment.
|
FederationConnectivityConfig |
getFederationConfig() |
java.lang.String |
getId()
Unique identifier of this resource
|
L2Extension |
getL2Extension() |
java.lang.Long |
getLastModifiedTime()
Timestamp of last modification format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
java.lang.String |
getLastModifiedUser()
ID of the user who last modified this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
java.util.List<ResourceLink> |
getLinks()
The server will populate this field when returing the resource.
|
java.lang.String |
getLsId()
Deprecated.
|
java.lang.String |
getMacPoolId()
Mac pool id that associated with a Segment.
|
java.lang.Boolean |
getMarkedForDelete()
Intent objects are not directly deleted from the system when a delete is invoked
on them.
|
java.util.List<java.lang.String> |
getMetadataProxyPaths()
Policy path to metadata proxy configuration.
|
java.lang.String |
getOriginSiteId()
This is a UUID generated by the system for knowing which site owns an object.
|
java.lang.Long |
getOverlayId()
Used for overlay connectivity of segments.
|
java.lang.Boolean |
getOverridden()
Global intent objects cannot be modified by the user.
|
java.lang.String |
getOwnerId()
This is a UUID generated by the system for knowing who owns this object.
|
java.lang.String |
getParentPath()
Path of its parent
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
java.lang.String |
getPath()
Absolute path of this object
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
java.lang.String |
getProtection()
Protection status is one of the following: PROTECTED - the client who retrieved
the entity is not allowed to modify it.
|
java.lang.String |
getRealizationId()
This is a UUID generated by the system for realizing the entity object.
|
java.lang.String |
getRelativePath()
Path relative from its parent
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
java.lang.String |
getRemotePath()
This is the path of the object on the local managers when queried on the NSX+
service, and path of the object on NSX+ service when queried from the local
managers.
|
java.lang.String |
getReplicationMode()
Possible values are:
REPLICATION_MODE_MTEP REPLICATION_MODE_SOURCE If this
field is not set for overlay segment, then the default of MTEP will be used. |
java.lang.String |
getResourceType()
The type of this resource.
|
java.lang.Long |
getRevision()
The _revision property describes the current revision of the resource.
|
java.lang.String |
getSchema()
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
SelfResourceLink |
getSelf() |
java.util.List<SegmentSubnet> |
getSubnets()
Subnet configuration.
|
java.lang.Boolean |
getSystemOwned()
Indicates system owned resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
java.util.List<Tag> |
getTags()
Opaque identifiers meaningful to the API user
|
java.lang.String |
getTransportZonePath()
Policy path to the transport zone.
|
java.lang.String |
getType()
Possible values are:
TYPE_ROUTED TYPE_EXTENDED TYPE_ROUTED_AND_EXTENDED TYPE_DISCONNECTED Segment type
based on configuration. |
java.lang.String |
getUniqueId()
This is a UUID generated by the GM/LM to uniquely identify entities in a
federated environment.
|
java.util.List<java.lang.String> |
getVlanIds()
VLAN ids for a VLAN backed Segment.
|
int |
hashCode() |
void |
setAddressBindings(java.util.List<PortAddressBindingEntry> addressBindings)
Deprecated.
|
void |
setAdminState(java.lang.String adminState)
Possible values are:
ADMIN_STATE_UP ADMIN_STATE_DOWN Admin state
represents desired state of segment. |
void |
setAdvancedConfig(SegmentAdvancedConfig advancedConfig) |
void |
setBridgeProfiles(java.util.List<BridgeProfileConfig> bridgeProfiles)
Multiple distinct L2 bridge profiles can be configured.
|
void |
setChildren(java.util.List<com.vmware.vapi.bindings.Structure> children)
Subtree for this type within policy tree containing nested elements.
|
void |
setConnectivityPath(java.lang.String connectivityPath)
Policy path to the connecting Tier-0 or Tier-1 or label of type Tier0.
|
void |
setCreateTime(java.lang.Long createTime)
Timestamp of resource creation format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setCreateUser(java.lang.String createUser)
ID of the user who created this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setDescription(java.lang.String description)
Description of this resource
|
void |
setDhcpConfigPath(java.lang.String dhcpConfigPath)
Policy path to DHCP server or relay configuration to use for all IPv4 & IPv6
subnets configured on this segment.
|
void |
setDisplayName(java.lang.String displayName)
Defaults to ID if not set
|
void |
setDomainName(java.lang.String domainName)
DNS domain name
|
void |
setEvpnSegment(java.lang.Boolean evpnSegment)
Flag to indicate if the Segment is a Child-Segment of type EVPN.
|
void |
setEvpnTenantConfigPath(java.lang.String evpnTenantConfigPath)
Policy path to the EvpnTenantConfig resource.
|
void |
setExtraConfigs(java.util.List<SegmentExtraConfig> extraConfigs)
This property could be used for vendor specific configuration in key value
string pairs, the setting in extra_configs will be automatically inheritted by
segment ports in the Segment.
|
void |
setFederationConfig(FederationConnectivityConfig federationConfig) |
void |
setId(java.lang.String id)
Unique identifier of this resource
|
void |
setL2Extension(L2Extension l2Extension) |
void |
setLastModifiedTime(java.lang.Long lastModifiedTime)
Timestamp of last modification format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setLastModifiedUser(java.lang.String lastModifiedUser)
ID of the user who last modified this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
void |
setLsId(java.lang.String lsId)
Deprecated.
|
void |
setMacPoolId(java.lang.String macPoolId)
Mac pool id that associated with a Segment.
|
void |
setMarkedForDelete(java.lang.Boolean markedForDelete)
Intent objects are not directly deleted from the system when a delete is invoked
on them.
|
void |
setMetadataProxyPaths(java.util.List<java.lang.String> metadataProxyPaths)
Policy path to metadata proxy configuration.
|
void |
setOriginSiteId(java.lang.String originSiteId)
This is a UUID generated by the system for knowing which site owns an object.
|
void |
setOverlayId(java.lang.Long overlayId)
Used for overlay connectivity of segments.
|
void |
setOverridden(java.lang.Boolean overridden)
Global intent objects cannot be modified by the user.
|
void |
setOwnerId(java.lang.String ownerId)
This is a UUID generated by the system for knowing who owns this object.
|
void |
setParentPath(java.lang.String parentPath)
Path of its parent
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setPath(java.lang.String path)
Absolute path of this object
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setProtection(java.lang.String protection)
Protection status is one of the following: PROTECTED - the client who retrieved
the entity is not allowed to modify it.
|
void |
setRealizationId(java.lang.String realizationId)
This is a UUID generated by the system for realizing the entity object.
|
void |
setRelativePath(java.lang.String relativePath)
Path relative from its parent
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setRemotePath(java.lang.String remotePath)
This is the path of the object on the local managers when queried on the NSX+
service, and path of the object on NSX+ service when queried from the local
managers.
|
void |
setReplicationMode(java.lang.String replicationMode)
Possible values are:
REPLICATION_MODE_MTEP REPLICATION_MODE_SOURCE If this
field is not set for overlay segment, then the default of MTEP will be used. |
void |
setResourceType(java.lang.String resourceType)
The type of this resource.
|
void |
setRevision(java.lang.Long revision)
The _revision property describes the current revision of the resource.
|
void |
setSchema(java.lang.String schema)
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setSelf(SelfResourceLink self) |
void |
setSubnets(java.util.List<SegmentSubnet> subnets)
Subnet configuration.
|
void |
setSystemOwned(java.lang.Boolean systemOwned)
Indicates system owned resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API user
|
void |
setTransportZonePath(java.lang.String transportZonePath)
Policy path to the transport zone.
|
void |
setType(java.lang.String type)
Possible values are:
TYPE_ROUTED TYPE_EXTENDED TYPE_ROUTED_AND_EXTENDED TYPE_DISCONNECTED Segment type
based on configuration. |
void |
setUniqueId(java.lang.String uniqueId)
This is a UUID generated by the GM/LM to uniquely identify entities in a
federated environment.
|
void |
setVlanIds(java.util.List<java.lang.String> vlanIds)
VLAN ids for a VLAN backed Segment.
|
java.lang.String |
toString() |
public static final java.lang.String ADMIN_STATE_UP
public static final java.lang.String ADMIN_STATE_DOWN
public static final java.lang.String REPLICATION_MODE_MTEP
public static final java.lang.String REPLICATION_MODE_SOURCE
public static final java.lang.String TYPE_ROUTED
public static final java.lang.String TYPE_EXTENDED
public static final java.lang.String TYPE_ROUTED_AND_EXTENDED
public static final java.lang.String TYPE_DISCONNECTED
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public Segment()
protected Segment(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public java.util.List<ResourceLink> getLinks()
public void setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public java.lang.String getSchema()
public void setSchema(java.lang.String schema)
schema
- New value for the property.public SelfResourceLink getSelf()
public void setSelf(SelfResourceLink self)
self
- New value for the property.public java.lang.Long getRevision()
public void setRevision(java.lang.Long revision)
revision
- New value for the property.public java.lang.Long getCreateTime()
public void setCreateTime(java.lang.Long createTime)
createTime
- New value for the property.public java.lang.String getCreateUser()
public void setCreateUser(java.lang.String createUser)
createUser
- New value for the property.public java.lang.Long getLastModifiedTime()
public void setLastModifiedTime(java.lang.Long lastModifiedTime)
lastModifiedTime
- New value for the property.public java.lang.String getLastModifiedUser()
public void setLastModifiedUser(java.lang.String lastModifiedUser)
lastModifiedUser
- New value for the property.public java.lang.String getProtection()
public void setProtection(java.lang.String protection)
protection
- New value for the property.public java.lang.Boolean getSystemOwned()
public void setSystemOwned(java.lang.Boolean systemOwned)
systemOwned
- New value for the property.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- New value for the property.public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName)
displayName
- 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.String getResourceType()
public void setResourceType(java.lang.String resourceType)
resourceType
- New value for the property.public java.util.List<Tag> getTags()
public void setTags(java.util.List<Tag> tags)
tags
- New value for the property.public java.lang.String getOriginSiteId()
public void setOriginSiteId(java.lang.String originSiteId)
originSiteId
- New value for the property.public java.lang.String getOwnerId()
public void setOwnerId(java.lang.String ownerId)
ownerId
- New value for the property.public java.lang.String getParentPath()
public void setParentPath(java.lang.String parentPath)
parentPath
- New value for the property.public java.lang.String getPath()
public void setPath(java.lang.String path)
path
- New value for the property.public java.lang.String getRealizationId()
public void setRealizationId(java.lang.String realizationId)
realizationId
- New value for the property.public java.lang.String getRelativePath()
public void setRelativePath(java.lang.String relativePath)
relativePath
- New value for the property.public java.lang.String getRemotePath()
public void setRemotePath(java.lang.String remotePath)
remotePath
- New value for the property.public java.lang.String getUniqueId()
public void setUniqueId(java.lang.String uniqueId)
uniqueId
- New value for the property.public java.util.List<com.vmware.vapi.bindings.Structure> getChildren()
ChildPolicyConfigResource
. When methods return a
value of this class as a return value, the property will contain all the
properties defined in ChildPolicyConfigResource
.public void setChildren(java.util.List<com.vmware.vapi.bindings.Structure> children)
children
- 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 ChildPolicyConfigResource
. When methods return a
value of this class as a return value, the property will contain all the
properties defined in ChildPolicyConfigResource
.public java.lang.Boolean getMarkedForDelete()
public void setMarkedForDelete(java.lang.Boolean markedForDelete)
markedForDelete
- New value for the property.public java.lang.Boolean getOverridden()
public void setOverridden(java.lang.Boolean overridden)
overridden
- New value for the property.@Deprecated public java.util.List<PortAddressBindingEntry> getAddressBindings()
@Deprecated public void setAddressBindings(java.util.List<PortAddressBindingEntry> addressBindings)
addressBindings
- New value for the property.public java.lang.String getAdminState()
public void setAdminState(java.lang.String adminState)
adminState
- New value for the property.public SegmentAdvancedConfig getAdvancedConfig()
public void setAdvancedConfig(SegmentAdvancedConfig advancedConfig)
advancedConfig
- New value for the property.public java.util.List<BridgeProfileConfig> getBridgeProfiles()
public void setBridgeProfiles(java.util.List<BridgeProfileConfig> bridgeProfiles)
bridgeProfiles
- New value for the property.public java.lang.String getConnectivityPath()
public void setConnectivityPath(java.lang.String connectivityPath)
connectivityPath
- New value for the property.public java.lang.String getDhcpConfigPath()
public void setDhcpConfigPath(java.lang.String dhcpConfigPath)
dhcpConfigPath
- New value for the property.public java.lang.String getDomainName()
public void setDomainName(java.lang.String domainName)
domainName
- New value for the property.public java.lang.Boolean getEvpnSegment()
public void setEvpnSegment(java.lang.Boolean evpnSegment)
evpnSegment
- New value for the property.public java.lang.String getEvpnTenantConfigPath()
public void setEvpnTenantConfigPath(java.lang.String evpnTenantConfigPath)
evpnTenantConfigPath
- New value for the property.public java.util.List<SegmentExtraConfig> getExtraConfigs()
public void setExtraConfigs(java.util.List<SegmentExtraConfig> extraConfigs)
extraConfigs
- New value for the property.public FederationConnectivityConfig getFederationConfig()
public void setFederationConfig(FederationConnectivityConfig federationConfig)
federationConfig
- New value for the property.public L2Extension getL2Extension()
public void setL2Extension(L2Extension l2Extension)
l2Extension
- New value for the property.@Deprecated public java.lang.String getLsId()
@Deprecated public void setLsId(java.lang.String lsId)
lsId
- New value for the property.public java.lang.String getMacPoolId()
public void setMacPoolId(java.lang.String macPoolId)
macPoolId
- New value for the property.public java.util.List<java.lang.String> getMetadataProxyPaths()
public void setMetadataProxyPaths(java.util.List<java.lang.String> metadataProxyPaths)
metadataProxyPaths
- New value for the property.public java.lang.Long getOverlayId()
public void setOverlayId(java.lang.Long overlayId)
overlayId
- New value for the property.public java.lang.String getReplicationMode()
public void setReplicationMode(java.lang.String replicationMode)
replicationMode
- New value for the property.public java.util.List<SegmentSubnet> getSubnets()
public void setSubnets(java.util.List<SegmentSubnet> subnets)
subnets
- New value for the property.public java.lang.String getTransportZonePath()
public void setTransportZonePath(java.lang.String transportZonePath)
transportZonePath
- New value for the property.public java.lang.String getType()
public void setType(java.lang.String type)
type
- New value for the property.public java.util.List<java.lang.String> getVlanIds()
public void setVlanIds(java.util.List<java.lang.String> vlanIds)
vlanIds
- 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 Segment _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 Segment _newInstance2(com.vmware.vapi.data.StructValue structValue)