@Generated(value="software.amazon.awssdk:codegen") public final class HeaderMatchType extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HeaderMatchType.Builder,HeaderMatchType>
Describes a header match type. Only one can be provided.
| Modifier and Type | Class and Description |
|---|---|
static interface |
HeaderMatchType.Builder |
static class |
HeaderMatchType.Type |
| Modifier and Type | Method and Description |
|---|---|
static HeaderMatchType.Builder |
builder() |
String |
contains()
Specifies a contains type match.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
exact()
Specifies an exact type match.
|
static HeaderMatchType |
fromContains(String contains)
Create an instance of this class with
contains() initialized to the given value. |
static HeaderMatchType |
fromExact(String exact)
Create an instance of this class with
exact() initialized to the given value. |
static HeaderMatchType |
fromPrefix(String prefix)
Create an instance of this class with
prefix() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
prefix()
Specifies a prefix type match.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends HeaderMatchType.Builder> |
serializableBuilderClass() |
HeaderMatchType.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
HeaderMatchType.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String contains()
Specifies a contains type match.
public final String exact()
Specifies an exact type match.
public final String prefix()
Specifies a prefix type match. Matches the value with the prefix.
public HeaderMatchType.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<HeaderMatchType.Builder,HeaderMatchType>public static HeaderMatchType.Builder builder()
public static Class<? extends HeaderMatchType.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static HeaderMatchType fromContains(String contains)
contains() initialized to the given value.
Specifies a contains type match.
contains - Specifies a contains type match.public static HeaderMatchType fromExact(String exact)
exact() initialized to the given value.
Specifies an exact type match.
exact - Specifies an exact type match.public static HeaderMatchType fromPrefix(String prefix)
prefix() initialized to the given value.
Specifies a prefix type match. Matches the value with the prefix.
prefix - Specifies a prefix type match. Matches the value with the prefix.public HeaderMatchType.Type type()
HeaderMatchType.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 HeaderMatchType.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.