Class HeaderMatchMethod
- java.lang.Object
-
- software.amazon.awssdk.services.appmesh.model.HeaderMatchMethod
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<HeaderMatchMethod.Builder,HeaderMatchMethod>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHeaderMatchMethod.Builderstatic classHeaderMatchMethod.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HeaderMatchMethod.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Stringexact()The value sent by the client must match the specified value exactly.static HeaderMatchMethodfromExact(String exact)Create an instance of this class withexact()initialized to the given value.static HeaderMatchMethodfromPrefix(String prefix)Create an instance of this class withprefix()initialized to the given value.static HeaderMatchMethodfromRange(Consumer<MatchRange.Builder> range)Create an instance of this class withrange()initialized to the given value.static HeaderMatchMethodfromRange(MatchRange range)Create an instance of this class withrange()initialized to the given value.static HeaderMatchMethodfromRegex(String regex)Create an instance of this class withregex()initialized to the given value.static HeaderMatchMethodfromSuffix(String suffix)Create an instance of this class withsuffix()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringprefix()The value sent by the client must begin with the specified characters.MatchRangerange()An object that represents the range of values to match on.Stringregex()The value sent by the client must include the specified characters.List<SdkField<?>>sdkFields()static Class<? extends HeaderMatchMethod.Builder>serializableBuilderClass()Stringsuffix()The value sent by the client must end with the specified characters.HeaderMatchMethod.BuildertoBuilder()StringtoString()Returns a string representation of this object.HeaderMatchMethod.Typetype()Retrieve an enum value representing which member of this object is populated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
exact
public final String exact()
The value sent by the client must match the specified value exactly.
- Returns:
- The value sent by the client must match the specified value exactly.
-
prefix
public final String prefix()
The value sent by the client must begin with the specified characters.
- Returns:
- The value sent by the client must begin with the specified characters.
-
range
public final MatchRange range()
An object that represents the range of values to match on.
- Returns:
- An object that represents the range of values to match on.
-
regex
public final String regex()
The value sent by the client must include the specified characters.
- Returns:
- The value sent by the client must include the specified characters.
-
suffix
public final String suffix()
The value sent by the client must end with the specified characters.
- Returns:
- The value sent by the client must end with the specified characters.
-
toBuilder
public HeaderMatchMethod.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<HeaderMatchMethod.Builder,HeaderMatchMethod>
-
builder
public static HeaderMatchMethod.Builder builder()
-
serializableBuilderClass
public static Class<? extends HeaderMatchMethod.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
fromExact
public static HeaderMatchMethod fromExact(String exact)
Create an instance of this class withexact()initialized to the given value.The value sent by the client must match the specified value exactly.
- Parameters:
exact- The value sent by the client must match the specified value exactly.
-
fromPrefix
public static HeaderMatchMethod fromPrefix(String prefix)
Create an instance of this class withprefix()initialized to the given value.The value sent by the client must begin with the specified characters.
- Parameters:
prefix- The value sent by the client must begin with the specified characters.
-
fromRange
public static HeaderMatchMethod fromRange(MatchRange range)
Create an instance of this class withrange()initialized to the given value.An object that represents the range of values to match on.
- Parameters:
range- An object that represents the range of values to match on.
-
fromRange
public static HeaderMatchMethod fromRange(Consumer<MatchRange.Builder> range)
Create an instance of this class withrange()initialized to the given value.An object that represents the range of values to match on.
- Parameters:
range- An object that represents the range of values to match on.
-
fromRegex
public static HeaderMatchMethod fromRegex(String regex)
Create an instance of this class withregex()initialized to the given value.The value sent by the client must include the specified characters.
- Parameters:
regex- The value sent by the client must include the specified characters.
-
fromSuffix
public static HeaderMatchMethod fromSuffix(String suffix)
Create an instance of this class withsuffix()initialized to the given value.The value sent by the client must end with the specified characters.
- Parameters:
suffix- The value sent by the client must end with the specified characters.
-
type
public HeaderMatchMethod.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beHeaderMatchMethod.Type.UNKNOWN_TO_SDK_VERSIONif 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 beHeaderMatchMethod.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-