public static final class NodeRouteProperties.Builder
extends java.lang.Object
NodeRouteProperties.| Constructor and Description |
|---|
Builder()
Constructor with parameters for the required properties of
NodeRouteProperties. |
| Modifier and Type | Method and Description |
|---|---|
NodeRouteProperties |
build() |
NodeRouteProperties.Builder |
setDestination(java.lang.String destination)
Destination covered by route
|
NodeRouteProperties.Builder |
setFromAddress(java.lang.String fromAddress)
From address
|
NodeRouteProperties.Builder |
setGateway(java.lang.String gateway)
Address of next hop
|
NodeRouteProperties.Builder |
setInterfaceId(java.lang.String interfaceId)
Network interface id of route
|
NodeRouteProperties.Builder |
setIpv6(java.lang.Boolean ipv6)
IPv6 flag
|
NodeRouteProperties.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
NodeRouteProperties.Builder |
setMetric(java.lang.String metric)
Default metric value for IPv4 is 0, whereas for IPv6 default value is 1024
|
NodeRouteProperties.Builder |
setNetmask(java.lang.String netmask)
For IPv4 this field expects valid IPv4 netmask address, whereas in case of IPv6
it expects valid prefix length
|
NodeRouteProperties.Builder |
setProto(java.lang.String proto)
Possible values are:
NodeRouteProperties.PROTO_UNSPEC NodeRouteProperties.PROTO_REDIRECT NodeRouteProperties.PROTO_KERNEL NodeRouteProperties.PROTO_BOOT NodeRouteProperties.PROTO_STATIC NodeRouteProperties.PROTO_GATED NodeRouteProperties.PROTO_RA NodeRouteProperties.PROTO_MRT NodeRouteProperties.PROTO_ZEBRA NodeRouteProperties.PROTO_BIRD NodeRouteProperties.PROTO_DNROUTED NodeRouteProperties.PROTO_XORP NodeRouteProperties.PROTO_NTK NodeRouteProperties.PROTO_DHCP Routing protocol
identifier of route |
NodeRouteProperties.Builder |
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.
|
NodeRouteProperties.Builder |
setRouteType(java.lang.String routeType)
|
NodeRouteProperties.Builder |
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.
|
NodeRouteProperties.Builder |
setScope(java.lang.String scope)
Scope of destinations covered by route
|
NodeRouteProperties.Builder |
setSelf(SelfResourceLink self) |
NodeRouteProperties.Builder |
setSrc(java.lang.String src)
Source address to prefer when sending to destinations of route
|
public Builder()
NodeRouteProperties.public NodeRouteProperties.Builder setLinks(java.util.List<ResourceLink> links)
links - New value for the property.public NodeRouteProperties.Builder setSchema(java.lang.String schema)
schema - New value for the property.public NodeRouteProperties.Builder setSelf(SelfResourceLink self)
self - New value for the property.public NodeRouteProperties.Builder setDestination(java.lang.String destination)
destination - New value for the property.public NodeRouteProperties.Builder setFromAddress(java.lang.String fromAddress)
fromAddress - New value for the property.public NodeRouteProperties.Builder setGateway(java.lang.String gateway)
gateway - New value for the property.public NodeRouteProperties.Builder setInterfaceId(java.lang.String interfaceId)
interfaceId - New value for the property.public NodeRouteProperties.Builder setIpv6(java.lang.Boolean ipv6)
ipv6 - New value for the property.public NodeRouteProperties.Builder setMetric(java.lang.String metric)
metric - New value for the property.public NodeRouteProperties.Builder setNetmask(java.lang.String netmask)
netmask - New value for the property.public NodeRouteProperties.Builder setProto(java.lang.String proto)
NodeRouteProperties.PROTO_UNSPECNodeRouteProperties.PROTO_REDIRECTNodeRouteProperties.PROTO_KERNELNodeRouteProperties.PROTO_BOOTNodeRouteProperties.PROTO_STATICNodeRouteProperties.PROTO_GATEDNodeRouteProperties.PROTO_RANodeRouteProperties.PROTO_MRTNodeRouteProperties.PROTO_ZEBRANodeRouteProperties.PROTO_BIRDNodeRouteProperties.PROTO_DNROUTEDNodeRouteProperties.PROTO_XORPNodeRouteProperties.PROTO_NTKNodeRouteProperties.PROTO_DHCPproto - New value for the property.public NodeRouteProperties.Builder setRouteId(java.lang.String routeId)
routeId - New value for the property.public NodeRouteProperties.Builder setRouteType(java.lang.String routeType)
routeType - New value for the property.public NodeRouteProperties.Builder setScope(java.lang.String scope)
scope - New value for the property.public NodeRouteProperties.Builder setSrc(java.lang.String src)
src - New value for the property.public NodeRouteProperties build()