public final class NodeRouteProperties
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
Modifier and Type | Class and Description |
---|---|
static class |
NodeRouteProperties.Builder
Builder class for
NodeRouteProperties . |
Modifier and Type | Field and Description |
---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
static java.lang.String |
PROTO_BIRD |
static java.lang.String |
PROTO_BOOT |
static java.lang.String |
PROTO_DHCP |
static java.lang.String |
PROTO_DNROUTED |
static java.lang.String |
PROTO_GATED |
static java.lang.String |
PROTO_KERNEL |
static java.lang.String |
PROTO_MRT |
static java.lang.String |
PROTO_NTK |
static java.lang.String |
PROTO_RA |
static java.lang.String |
PROTO_REDIRECT |
static java.lang.String |
PROTO_STATIC |
static java.lang.String |
PROTO_UNSPEC |
static java.lang.String |
PROTO_XORP |
static java.lang.String |
PROTO_ZEBRA |
static java.lang.String |
ROUTE_TYPE_BLACKHOLE |
static java.lang.String |
ROUTE_TYPE_DEFAULT |
static java.lang.String |
ROUTE_TYPE_PROHIBIT |
static java.lang.String |
ROUTE_TYPE_STATIC |
static java.lang.String |
ROUTE_TYPE_THROW |
static java.lang.String |
ROUTE_TYPE_UNREACHABLE |
Modifier | Constructor and Description |
---|---|
|
NodeRouteProperties()
Default constructor.
|
protected |
NodeRouteProperties(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 NodeRouteProperties |
_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 NodeRouteProperties |
_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 |
getDestination()
Destination covered by route
|
java.lang.String |
getFromAddress()
From address
|
java.lang.String |
getGateway()
Address of next hop
|
java.lang.String |
getInterfaceId()
Network interface id of route
|
java.lang.Boolean |
getIpv6()
IPv6 flag
|
java.util.List<ResourceLink> |
getLinks()
The server will populate this field when returing the resource.
|
java.lang.String |
getMetric()
Default metric value for IPv4 is 0, whereas for IPv6 default value is 1024
|
java.lang.String |
getNetmask()
For IPv4 this field expects valid IPv4 netmask address, whereas in case of IPv6
it expects valid prefix length
|
java.lang.String |
getProto()
Possible values are:
PROTO_UNSPEC PROTO_REDIRECT PROTO_KERNEL PROTO_BOOT PROTO_STATIC PROTO_GATED PROTO_RA PROTO_MRT PROTO_ZEBRA PROTO_BIRD PROTO_DNROUTED PROTO_XORP PROTO_NTK PROTO_DHCP Routing protocol
identifier of route |
java.lang.String |
getRouteId()
Unique identifier for the route
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 |
getRouteType()
Possible values are:
ROUTE_TYPE_DEFAULT ROUTE_TYPE_STATIC ROUTE_TYPE_BLACKHOLE ROUTE_TYPE_PROHIBIT ROUTE_TYPE_THROW ROUTE_TYPE_UNREACHABLE
Route type |
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.
|
java.lang.String |
getScope()
Scope of destinations covered by route
|
SelfResourceLink |
getSelf() |
java.lang.String |
getSrc()
Source address to prefer when sending to destinations of route
|
int |
hashCode() |
void |
setDestination(java.lang.String destination)
Destination covered by route
|
void |
setFromAddress(java.lang.String fromAddress)
From address
|
void |
setGateway(java.lang.String gateway)
Address of next hop
|
void |
setInterfaceId(java.lang.String interfaceId)
Network interface id of route
|
void |
setIpv6(java.lang.Boolean ipv6)
IPv6 flag
|
void |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
void |
setMetric(java.lang.String metric)
Default metric value for IPv4 is 0, whereas for IPv6 default value is 1024
|
void |
setNetmask(java.lang.String netmask)
For IPv4 this field expects valid IPv4 netmask address, whereas in case of IPv6
it expects valid prefix length
|
void |
setProto(java.lang.String proto)
Possible values are:
PROTO_UNSPEC PROTO_REDIRECT PROTO_KERNEL PROTO_BOOT PROTO_STATIC PROTO_GATED PROTO_RA PROTO_MRT PROTO_ZEBRA PROTO_BIRD PROTO_DNROUTED PROTO_XORP PROTO_NTK PROTO_DHCP Routing protocol
identifier of route |
void |
setRouteId(java.lang.String routeId)
Unique identifier for the route
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 |
setRouteType(java.lang.String routeType)
Possible values are:
ROUTE_TYPE_DEFAULT ROUTE_TYPE_STATIC ROUTE_TYPE_BLACKHOLE ROUTE_TYPE_PROHIBIT ROUTE_TYPE_THROW ROUTE_TYPE_UNREACHABLE
Route type |
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 |
setScope(java.lang.String scope)
Scope of destinations covered by route
|
void |
setSelf(SelfResourceLink self) |
void |
setSrc(java.lang.String src)
Source address to prefer when sending to destinations of route
|
java.lang.String |
toString() |
public static final java.lang.String PROTO_UNSPEC
public static final java.lang.String PROTO_REDIRECT
public static final java.lang.String PROTO_KERNEL
public static final java.lang.String PROTO_BOOT
public static final java.lang.String PROTO_STATIC
public static final java.lang.String PROTO_GATED
public static final java.lang.String PROTO_RA
public static final java.lang.String PROTO_MRT
public static final java.lang.String PROTO_ZEBRA
public static final java.lang.String PROTO_BIRD
public static final java.lang.String PROTO_DNROUTED
public static final java.lang.String PROTO_XORP
public static final java.lang.String PROTO_NTK
public static final java.lang.String PROTO_DHCP
public static final java.lang.String ROUTE_TYPE_DEFAULT
public static final java.lang.String ROUTE_TYPE_STATIC
public static final java.lang.String ROUTE_TYPE_BLACKHOLE
public static final java.lang.String ROUTE_TYPE_PROHIBIT
public static final java.lang.String ROUTE_TYPE_THROW
public static final java.lang.String ROUTE_TYPE_UNREACHABLE
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public NodeRouteProperties()
protected NodeRouteProperties(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.String getDestination()
public void setDestination(java.lang.String destination)
destination
- New value for the property.public java.lang.String getFromAddress()
public void setFromAddress(java.lang.String fromAddress)
fromAddress
- New value for the property.public java.lang.String getGateway()
public void setGateway(java.lang.String gateway)
gateway
- New value for the property.public java.lang.String getInterfaceId()
public void setInterfaceId(java.lang.String interfaceId)
interfaceId
- New value for the property.public java.lang.Boolean getIpv6()
public void setIpv6(java.lang.Boolean ipv6)
ipv6
- New value for the property.public java.lang.String getMetric()
public void setMetric(java.lang.String metric)
metric
- New value for the property.public java.lang.String getNetmask()
public void setNetmask(java.lang.String netmask)
netmask
- New value for the property.public java.lang.String getProto()
public void setProto(java.lang.String proto)
proto
- New value for the property.public java.lang.String getRouteId()
public void setRouteId(java.lang.String routeId)
routeId
- New value for the property.public java.lang.String getRouteType()
public void setRouteType(java.lang.String routeType)
routeType
- New value for the property.public java.lang.String getScope()
public void setScope(java.lang.String scope)
scope
- New value for the property.public java.lang.String getSrc()
public void setSrc(java.lang.String src)
src
- 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 NodeRouteProperties _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 NodeRouteProperties _newInstance2(com.vmware.vapi.data.StructValue structValue)