Class PathMatchCondition
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.loadbalancer.model.RuleCondition
-
- com.oracle.bmc.loadbalancer.model.PathMatchCondition
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20170115") public final class PathMatchCondition extends RuleConditionThe path string and match condition to apply when evaluating an incoming URI for redirection.
Note: Objects should always be created or deserialized using thePathMatchCondition.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of thePathMatchCondition.Builder, which maintain a set of all explicitly set fields calledPathMatchCondition.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPathMatchCondition.Builderstatic classPathMatchCondition.OperatorA string that specifies how to compare the PathMatchCondition object’s attributeValue string to the incoming URI.-
Nested classes/interfaces inherited from class com.oracle.bmc.loadbalancer.model.RuleCondition
RuleCondition.AttributeName
-
-
Constructor Summary
Constructors Constructor Description PathMatchCondition(String attributeValue, PathMatchCondition.Operator operator)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PathMatchCondition.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetAttributeValue()The path string that the redirection rule applies to.PathMatchCondition.OperatorgetOperator()A string that specifies how to compare the PathMatchCondition object’s attributeValue string to the incoming URI.inthashCode()PathMatchCondition.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
PathMatchCondition
@Deprecated public PathMatchCondition(String attributeValue, PathMatchCondition.Operator operator)
Deprecated.
-
-
Method Detail
-
builder
public static PathMatchCondition.Builder builder()
Create a new builder.
-
toBuilder
public PathMatchCondition.Builder toBuilder()
-
getAttributeValue
public String getAttributeValue()
The path string that the redirection rule applies to.Example: /example
- Returns:
- the value
-
getOperator
public PathMatchCondition.Operator getOperator()
A string that specifies how to compare the PathMatchCondition object’s attributeValue string to the incoming URI.**EXACT_MATCH** - The incoming URI path must exactly and completely match the attributeValue string.
**FORCE_LONGEST_PREFIX_MATCH** - The system looks for the attributeValue string with the best, longest match of the beginning portion of the incoming URI path.
**PREFIX_MATCH** - The beginning portion of the incoming URI path must exactly match the attributeValue string.
**SUFFIX_MATCH** - The ending portion of the incoming URI path must exactly match the attributeValue string.
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classRuleCondition
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toStringin classRuleCondition- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classRuleCondition
-
hashCode
public int hashCode()
- Overrides:
hashCodein classRuleCondition
-
-