Package com.vmware.nsx_policy.model
Class RouteDetails.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.RouteDetails.Builder
-
- Enclosing class:
- RouteDetails
public static final class RouteDetails.Builder extends java.lang.ObjectBuilder class forRouteDetails.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofRouteDetails.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteDetailsbuild()RouteDetails.BuildersetAsPath(java.lang.String asPath)BGP AS path attribute.RouteDetails.BuildersetLocalPref(java.lang.Long localPref)BGP Local Preference attribute.RouteDetails.BuildersetMed(java.lang.Long med)BGP Multi Exit Discriminator attribute.RouteDetails.BuildersetNetwork(java.lang.String network)CIDR network address.RouteDetails.BuildersetNextHop(java.lang.String nextHop)Next hop IP address.RouteDetails.BuildersetWeight(java.lang.Long weight)BGP Weight attribute.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofRouteDetails.
-
-
Method Detail
-
setAsPath
public RouteDetails.Builder setAsPath(java.lang.String asPath)
BGP AS path attribute. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
asPath- New value for the property.
-
setLocalPref
public RouteDetails.Builder setLocalPref(java.lang.Long localPref)
BGP Local Preference attribute. 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.- Parameters:
localPref- New value for the property.
-
setMed
public RouteDetails.Builder setMed(java.lang.Long med)
BGP Multi Exit Discriminator attribute. 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.- Parameters:
med- New value for the property.
-
setNetwork
public RouteDetails.Builder setNetwork(java.lang.String network)
CIDR network address. format: ip-cidr-block This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
network- New value for the property.
-
setNextHop
public RouteDetails.Builder setNextHop(java.lang.String nextHop)
Next hop IP address. format: ip This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
nextHop- New value for the property.
-
setWeight
public RouteDetails.Builder setWeight(java.lang.Long weight)
BGP Weight attribute. 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.- Parameters:
weight- New value for the property.
-
build
public RouteDetails build()
-
-