Package com.vmware.nsx_policy.model
Class LBVariableCondition.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.LBVariableCondition.Builder
-
- Enclosing class:
- LBVariableCondition
public static final class LBVariableCondition.Builder extends java.lang.Object
Builder class forLBVariableCondition
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofLBVariableCondition
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LBVariableCondition
build()
LBVariableCondition.Builder
setCaseSensitive(java.lang.Boolean caseSensitive)
If true, case is significant when comparing variable value.LBVariableCondition.Builder
setInverse(java.lang.Boolean inverse)
A flag to indicate whether reverse the match result of this conditionLBVariableCondition.Builder
setMatchType(java.lang.String matchType)
Possible values are:LBVariableCondition.MATCH_TYPE_STARTS_WITH
LBVariableCondition.MATCH_TYPE_ENDS_WITH
LBVariableCondition.MATCH_TYPE_EQUALS
LBVariableCondition.MATCH_TYPE_CONTAINS
LBVariableCondition.MATCH_TYPE_REGEX
Match type of variable valueLBVariableCondition.Builder
setVariableName(java.lang.String variableName)
Name of the variable to be matchedLBVariableCondition.Builder
setVariableValue(java.lang.String variableValue)
Value of variable to be matched
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofLBVariableCondition
.
-
-
Method Detail
-
setCaseSensitive
public LBVariableCondition.Builder setCaseSensitive(java.lang.Boolean caseSensitive)
If true, case is significant when comparing variable value.- Parameters:
caseSensitive
- New value for the property.
-
setMatchType
public LBVariableCondition.Builder setMatchType(java.lang.String matchType)
Possible values are: Match type of variable value- Parameters:
matchType
- New value for the property.
-
setVariableName
public LBVariableCondition.Builder setVariableName(java.lang.String variableName)
Name of the variable to be matched- Parameters:
variableName
- New value for the property.
-
setVariableValue
public LBVariableCondition.Builder setVariableValue(java.lang.String variableValue)
Value of variable to be matched- Parameters:
variableValue
- New value for the property.
-
setInverse
public LBVariableCondition.Builder setInverse(java.lang.Boolean inverse)
A flag to indicate whether reverse the match result of this condition- Parameters:
inverse
- New value for the property.
-
build
public LBVariableCondition build()
-
-