Class HeaderMatchType
- java.lang.Object
-
- software.amazon.awssdk.services.vpclattice.model.HeaderMatchType
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<HeaderMatchType.Builder,HeaderMatchType>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHeaderMatchType.Builderstatic classHeaderMatchType.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HeaderMatchType.Builderbuilder()Stringcontains()Specifies a contains type match.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Stringexact()Specifies an exact type match.static HeaderMatchTypefromContains(String contains)Create an instance of this class withcontains()initialized to the given value.static HeaderMatchTypefromExact(String exact)Create an instance of this class withexact()initialized to the given value.static HeaderMatchTypefromPrefix(String prefix)Create an instance of this class withprefix()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringprefix()Specifies a prefix type match.List<SdkField<?>>sdkFields()static Class<? extends HeaderMatchType.Builder>serializableBuilderClass()HeaderMatchType.BuildertoBuilder()StringtoString()Returns a string representation of this object.HeaderMatchType.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
-
contains
public final String contains()
Specifies a contains type match.
- Returns:
- Specifies a contains type match.
-
exact
public final String exact()
Specifies an exact type match.
- Returns:
- Specifies an exact type match.
-
prefix
public final String prefix()
Specifies a prefix type match. Matches the value with the prefix.
- Returns:
- Specifies a prefix type match. Matches the value with the prefix.
-
toBuilder
public HeaderMatchType.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<HeaderMatchType.Builder,HeaderMatchType>
-
builder
public static HeaderMatchType.Builder builder()
-
serializableBuilderClass
public static Class<? extends HeaderMatchType.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.
-
fromContains
public static HeaderMatchType fromContains(String contains)
Create an instance of this class withcontains()initialized to the given value.Specifies a contains type match.
- Parameters:
contains- Specifies a contains type match.
-
fromExact
public static HeaderMatchType fromExact(String exact)
Create an instance of this class withexact()initialized to the given value.Specifies an exact type match.
- Parameters:
exact- Specifies an exact type match.
-
fromPrefix
public static HeaderMatchType fromPrefix(String prefix)
Create an instance of this class withprefix()initialized to the given value.Specifies a prefix type match. Matches the value with the prefix.
- Parameters:
prefix- Specifies a prefix type match. Matches the value with the prefix.
-
type
public HeaderMatchType.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 beHeaderMatchType.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 beHeaderMatchType.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-