@Generated(value="software.amazon.awssdk:codegen") public final class HeaderMatchMethod extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HeaderMatchMethod.Builder,HeaderMatchMethod>
An object that represents the method and value to match with the header value sent in a request. Specify one match method.
| Modifier and Type | Class and Description |
|---|---|
static interface |
HeaderMatchMethod.Builder |
static class |
HeaderMatchMethod.Type |
| Modifier and Type | Method and Description |
|---|---|
static HeaderMatchMethod.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
exact()
The value sent by the client must match the specified value exactly.
|
static HeaderMatchMethod |
fromExact(String exact)
Create an instance of this class with
exact() initialized to the given value. |
static HeaderMatchMethod |
fromPrefix(String prefix)
Create an instance of this class with
prefix() initialized to the given value. |
static HeaderMatchMethod |
fromRange(Consumer<MatchRange.Builder> range)
Create an instance of this class with
range() initialized to the given value. |
static HeaderMatchMethod |
fromRange(MatchRange range)
Create an instance of this class with
range() initialized to the given value. |
static HeaderMatchMethod |
fromRegex(String regex)
Create an instance of this class with
regex() initialized to the given value. |
static HeaderMatchMethod |
fromSuffix(String suffix)
Create an instance of this class with
suffix() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
prefix()
The value sent by the client must begin with the specified characters.
|
MatchRange |
range()
An object that represents the range of values to match on.
|
String |
regex()
The value sent by the client must include the specified characters.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends HeaderMatchMethod.Builder> |
serializableBuilderClass() |
String |
suffix()
The value sent by the client must end with the specified characters.
|
HeaderMatchMethod.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
HeaderMatchMethod.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String exact()
The value sent by the client must match the specified value exactly.
public final String prefix()
The value sent by the client must begin with the specified characters.
public final MatchRange range()
An object that represents the range of values to match on.
public final String regex()
The value sent by the client must include the specified characters.
public final String suffix()
The value sent by the client must end with the specified characters.
public HeaderMatchMethod.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<HeaderMatchMethod.Builder,HeaderMatchMethod>public static HeaderMatchMethod.Builder builder()
public static Class<? extends HeaderMatchMethod.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static HeaderMatchMethod fromExact(String exact)
exact() initialized to the given value.
The value sent by the client must match the specified value exactly.
exact - The value sent by the client must match the specified value exactly.public static HeaderMatchMethod fromPrefix(String prefix)
prefix() initialized to the given value.
The value sent by the client must begin with the specified characters.
prefix - The value sent by the client must begin with the specified characters.public static HeaderMatchMethod fromRange(MatchRange range)
range() initialized to the given value.
An object that represents the range of values to match on.
range - An object that represents the range of values to match on.public static HeaderMatchMethod fromRange(Consumer<MatchRange.Builder> range)
range() initialized to the given value.
An object that represents the range of values to match on.
range - An object that represents the range of values to match on.public static HeaderMatchMethod fromRegex(String regex)
regex() initialized to the given value.
The value sent by the client must include the specified characters.
regex - The value sent by the client must include the specified characters.public static HeaderMatchMethod fromSuffix(String suffix)
suffix() initialized to the given value.
The value sent by the client must end with the specified characters.
suffix - The value sent by the client must end with the specified characters.public HeaderMatchMethod.Type type()
HeaderMatchMethod.Type.UNKNOWN_TO_SDK_VERSION if the
service returned a member that is only known to a newer SDK version.
When this class is created directly in your code, this will be HeaderMatchMethod.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.