Package com.vmware.nsx_policy.model
Class LBAccessListControl.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.LBAccessListControl.Builder
-
- Enclosing class:
- LBAccessListControl
public static final class LBAccessListControl.Builder extends java.lang.Object
Builder class forLBAccessListControl
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofLBAccessListControl
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LBAccessListControl
build()
LBAccessListControl.Builder
setAction(java.lang.String action)
Possible values are:LBAccessListControl.ACTION_ALLOW
LBAccessListControl.ACTION_DROP
ALLOW means connections matching grouping object IP list are allowed and requests not matching grouping object IP list are dropped.LBAccessListControl.Builder
setEnabled(java.lang.Boolean enabled)
The enabled flag indicates whether to enable access list control option.LBAccessListControl.Builder
setGroupPath(java.lang.String groupPath)
The path of grouping object which defines the IP addresses or ranges to match the client IP.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofLBAccessListControl
.
-
-
Method Detail
-
setAction
public LBAccessListControl.Builder setAction(java.lang.String action)
Possible values are: ALLOW means connections matching grouping object IP list are allowed and requests not matching grouping object IP list are dropped. DROP means connections matching grouping object IP list are dropped and requests not matching grouping object IP list are allowed.- Parameters:
action
- New value for the property.
-
setEnabled
public LBAccessListControl.Builder setEnabled(java.lang.Boolean enabled)
The enabled flag indicates whether to enable access list control option. It is false by default.- Parameters:
enabled
- New value for the property.
-
setGroupPath
public LBAccessListControl.Builder setGroupPath(java.lang.String groupPath)
The path of grouping object which defines the IP addresses or ranges to match the client IP.- Parameters:
groupPath
- New value for the property.
-
build
public LBAccessListControl build()
-
-