Package com.vmware.nsx_policy.model
Class Tier0StatefulServicesConfig.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.Tier0StatefulServicesConfig.Builder
-
- Enclosing class:
- Tier0StatefulServicesConfig
public static final class Tier0StatefulServicesConfig.Builder extends java.lang.Object
Builder class forTier0StatefulServicesConfig
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofTier0StatefulServicesConfig
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tier0StatefulServicesConfig
build()
Tier0StatefulServicesConfig.Builder
setEnabled(java.lang.Boolean enabled)
This is used to enable or disable ACTIVE-ACTIVE stateful services.Tier0StatefulServicesConfig.Builder
setRedirectionPolicy(java.lang.String redirectionPolicy)
Possible values are:Tier0StatefulServicesConfig.REDIRECTION_POLICY_IP_HASH
Tier0StatefulServicesConfig.REDIRECTION_POLICY_NONE
Tier0StatefulServicesConfig.REDIRECTION_POLICY_SRC_DST_IP_HASH
Redirection policy to load balance traffic among nodes IP_HASH: Hash Source IP or destination ip to redirect packet for load sharing and stateful services.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofTier0StatefulServicesConfig
.
-
-
Method Detail
-
setEnabled
public Tier0StatefulServicesConfig.Builder setEnabled(java.lang.Boolean enabled)
This is used to enable or disable ACTIVE-ACTIVE stateful services.- Parameters:
enabled
- New value for the property.
-
setRedirectionPolicy
public Tier0StatefulServicesConfig.Builder setRedirectionPolicy(java.lang.String redirectionPolicy)
Possible values are: Redirection policy to load balance traffic among nodes IP_HASH: Hash Source IP or destination ip to redirect packet for load sharing and stateful services. NONE: Disable redirection. It requires user to define static traffic group per edge node and expects external router to forward return packet back to the same edge node. SRC_DST_IP_HASH: Hash both source and desitnation ip to redirect packet for load sharing. This mode doesn't support NAT and presumes source and destination IP remains same in either direction.- Parameters:
redirectionPolicy
- New value for the property.
-
build
public Tier0StatefulServicesConfig build()
-
-