Package com.vmware.nsx_policy.model
Class RouteAdvertisementRule.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.RouteAdvertisementRule.Builder
-
- Enclosing class:
- RouteAdvertisementRule
public static final class RouteAdvertisementRule.Builder extends java.lang.Object
Builder class forRouteAdvertisementRule
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofRouteAdvertisementRule
.
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofRouteAdvertisementRule
.
-
-
Method Detail
-
setAction
public RouteAdvertisementRule.Builder setAction(java.lang.String action)
Possible values are: Action to advertise filtered routes to the connected Tier0 gateway. PERMIT: Enables the advertisment DENY: Disables the advertisement- Parameters:
action
- New value for the property.
-
setName
public RouteAdvertisementRule.Builder setName(java.lang.String name)
Display name should be unique.- Parameters:
name
- New value for the property.
-
setPrefixOperator
public RouteAdvertisementRule.Builder setPrefixOperator(java.lang.String prefixOperator)
Possible values are: Prefix operator to filter subnets. GE prefix operator filters all the routes with prefix length greater than or equal to the subnets configured. EQ prefix operator filter all the routes with prefix length equal to the subnets configured.- Parameters:
prefixOperator
- New value for the property.
-
setRouteAdvertisementTypes
public RouteAdvertisementRule.Builder setRouteAdvertisementTypes(java.util.List<java.lang.String> routeAdvertisementTypes)
Possible values are:-
RouteAdvertisementRule.ROUTE_ADVERTISEMENT_TYPES_STATIC_ROUTES
-
RouteAdvertisementRule.ROUTE_ADVERTISEMENT_TYPES_CONNECTED
-
RouteAdvertisementRule.ROUTE_ADVERTISEMENT_TYPES_NAT
-
RouteAdvertisementRule.ROUTE_ADVERTISEMENT_TYPES_LB_VIP
-
RouteAdvertisementRule.ROUTE_ADVERTISEMENT_TYPES_LB_SNAT
-
RouteAdvertisementRule.ROUTE_ADVERTISEMENT_TYPES_DNS_FORWARDER_IP
-
RouteAdvertisementRule.ROUTE_ADVERTISEMENT_TYPES_IPSEC_LOCAL_ENDPOINT
- Parameters:
routeAdvertisementTypes
- New value for the property.
-
-
setSubnets
public RouteAdvertisementRule.Builder setSubnets(java.util.List<java.lang.String> subnets)
Network CIDRs to be routed. format: ip-cidr-block- Parameters:
subnets
- New value for the property.
-
build
public RouteAdvertisementRule build()
-
-