Package com.vmware.nsx_policy.model
Class PolicyRouteAdvertisementRule.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.PolicyRouteAdvertisementRule.Builder
-
- Enclosing class:
- PolicyRouteAdvertisementRule
public static final class PolicyRouteAdvertisementRule.Builder extends java.lang.Object
Builder class forPolicyRouteAdvertisementRule
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofPolicyRouteAdvertisementRule
.
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofPolicyRouteAdvertisementRule
.
-
-
Method Detail
-
setAction
public PolicyRouteAdvertisementRule.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 PolicyRouteAdvertisementRule.Builder setName(java.lang.String name)
Display name for rule.- Parameters:
name
- New value for the property.
-
setPrefixOperator
public PolicyRouteAdvertisementRule.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 PolicyRouteAdvertisementRule.Builder setRouteAdvertisementTypes(java.util.List<java.lang.String> routeAdvertisementTypes)
Possible values are:-
PolicyRouteAdvertisementRule.ROUTE_ADVERTISEMENT_TYPES_TIER0_STATIC
-
PolicyRouteAdvertisementRule.ROUTE_ADVERTISEMENT_TYPES_TIER0_CONNECTED
-
PolicyRouteAdvertisementRule.ROUTE_ADVERTISEMENT_TYPES_TIER0_NAT
-
PolicyRouteAdvertisementRule.ROUTE_ADVERTISEMENT_TYPES_TIER0_DNS_FORWARDER_IP
-
PolicyRouteAdvertisementRule.ROUTE_ADVERTISEMENT_TYPES_TIER0_IPSEC_LOCAL_ENDPOINT
-
PolicyRouteAdvertisementRule.ROUTE_ADVERTISEMENT_TYPES_TIER1_STATIC
-
PolicyRouteAdvertisementRule.ROUTE_ADVERTISEMENT_TYPES_TIER1_CONNECTED
-
PolicyRouteAdvertisementRule.ROUTE_ADVERTISEMENT_TYPES_TIER1_LB_SNAT
-
PolicyRouteAdvertisementRule.ROUTE_ADVERTISEMENT_TYPES_TIER1_LB_VIP
-
PolicyRouteAdvertisementRule.ROUTE_ADVERTISEMENT_TYPES_TIER1_NAT
-
PolicyRouteAdvertisementRule.ROUTE_ADVERTISEMENT_TYPES_TIER1_DNS_FORWARDER_IP
-
PolicyRouteAdvertisementRule.ROUTE_ADVERTISEMENT_TYPES_TIER1_IPSEC_LOCAL_ENDPOINT
- Parameters:
routeAdvertisementTypes
- New value for the property.
-
-
setSubnets
public PolicyRouteAdvertisementRule.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 PolicyRouteAdvertisementRule build()
-
-