Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
LBRule . |
Modifier and Type | Method and Description |
---|---|
LBRule |
build() |
LBRule.Builder |
setActions(java.util.List<com.vmware.vapi.bindings.Structure> actions)
A list of actions to be executed at specified phase when load balancer rule
matches.
|
LBRule.Builder |
setDisplayName(java.lang.String displayName)
A display name useful for identifying an LBRule.
|
LBRule.Builder |
setMatchConditions(java.util.List<com.vmware.vapi.bindings.Structure> matchConditions)
A list of match conditions used to match application traffic.
|
LBRule.Builder |
setMatchStrategy(java.lang.String matchStrategy)
Possible values are:
LBRule.MATCH_STRATEGY_ALL LBRule.MATCH_STRATEGY_ANY If more than
one match condition is specified, then matching strategy determines if all
conditions should match or any one condition should match for the LB Rule to be
considered a match. |
LBRule.Builder |
setPhase(java.lang.String phase)
Possible values are:
LBRule.PHASE_HTTP_REQUEST_REWRITE LBRule.PHASE_HTTP_FORWARDING LBRule.PHASE_HTTP_RESPONSE_REWRITE LBRule.PHASE_HTTP_ACCESS LBRule.PHASE_TRANSPORT Each load
balancer rule is used at a specific phase of load balancer processing. |
public Builder()
LBRule
.public LBRule.Builder setActions(java.util.List<com.vmware.vapi.bindings.Structure> actions)
actions
- New value for the property.
When clients pass a value of this class as a parameter, the property must
contain all the properties defined in LBRuleAction
. When methods return a value of this
class as a return value, the property will contain all the properties defined in
LBRuleAction
.public LBRule.Builder setDisplayName(java.lang.String displayName)
displayName
- New value for the property.public LBRule.Builder setMatchConditions(java.util.List<com.vmware.vapi.bindings.Structure> matchConditions)
matchConditions
- New value for the property.
When clients pass a value of this class as a parameter, the property must
contain all the properties defined in LBRuleCondition
. When methods return a value of
this class as a return value, the property will contain all the properties
defined in LBRuleCondition
.public LBRule.Builder setMatchStrategy(java.lang.String matchStrategy)
matchStrategy
- New value for the property.public LBRule.Builder setPhase(java.lang.String phase)
phase
- New value for the property.public LBRule build()