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 RuleCondition
The 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 class
PathMatchCondition.Builder
static class
PathMatchCondition.Operator
A 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.Builder
builder()
Create a new builder.boolean
equals(Object o)
String
getAttributeValue()
The path string that the redirection rule applies to.PathMatchCondition.Operator
getOperator()
A string that specifies how to compare the PathMatchCondition object’s attributeValue string to the incoming URI.int
hashCode()
PathMatchCondition.Builder
toBuilder()
String
toString()
String
toString(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:
toString
in classRuleCondition
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toString
in classRuleCondition
- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classRuleCondition
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classRuleCondition
-
-