Package com.vmware.nsx_policy.model
Class ServiceGateway.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.ServiceGateway.Builder
-
- Enclosing class:
- ServiceGateway
public static final class ServiceGateway.Builder extends java.lang.Object
Builder class forServiceGateway
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofServiceGateway
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceGateway
build()
ServiceGateway.Builder
setAutoSnat(java.lang.Boolean autoSnat)
Auto plumb snat rule for private subnet, this will make sure private subnets are routable outside of VPC.ServiceGateway.Builder
setDisable(java.lang.Boolean disable)
Flag to deactivate service gateway for connected subnets.ServiceGateway.Builder
setQosConfig(GatewayQosProfileConfig qosConfig)
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofServiceGateway
.
-
-
Method Detail
-
setAutoSnat
public ServiceGateway.Builder setAutoSnat(java.lang.Boolean autoSnat)
Auto plumb snat rule for private subnet, this will make sure private subnets are routable outside of VPC. There will be one snat rule per VPC, translated ip will be taken from external ip block. If enabled, user must also configure external ip block. This property is applicable only when service_gateway is enabled.- Parameters:
autoSnat
- New value for the property.
-
setDisable
public ServiceGateway.Builder setDisable(java.lang.Boolean disable)
Flag to deactivate service gateway for connected subnets. If false then VPC will support the following services: NAT, gateway security policies, and gateway QoS profile. If true, VPC will support only distributed services i.e., EW security policy. Workload shall be protected using the same. All traffic from subnets will be routed through the distributed router to the connected gateway and eliminates the intermediate hop of the service gateway.- Parameters:
disable
- New value for the property.
-
setQosConfig
public ServiceGateway.Builder setQosConfig(GatewayQosProfileConfig qosConfig)
- Parameters:
qosConfig
- New value for the property.
-
build
public ServiceGateway build()
-
-