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.ObjectBuilder 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 LBVariableConditionbuild()LBVariableCondition.BuildersetCaseSensitive(java.lang.Boolean caseSensitive)If true, case is significant when comparing variable value.LBVariableCondition.BuildersetInverse(java.lang.Boolean inverse)A flag to indicate whether reverse the match result of this conditionLBVariableCondition.BuildersetMatchType(java.lang.String matchType)Possible values are:LBVariableCondition.MATCH_TYPE_STARTS_WITHLBVariableCondition.MATCH_TYPE_ENDS_WITHLBVariableCondition.MATCH_TYPE_EQUALSLBVariableCondition.MATCH_TYPE_CONTAINSLBVariableCondition.MATCH_TYPE_REGEXMatch type of variable valueLBVariableCondition.BuildersetVariableName(java.lang.String variableName)Name of the variable to be matchedLBVariableCondition.BuildersetVariableValue(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()
-
-