Class GrpcRouteMetadataMatchMethod
- java.lang.Object
-
- software.amazon.awssdk.services.appmesh.model.GrpcRouteMetadataMatchMethod
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<GrpcRouteMetadataMatchMethod.Builder,GrpcRouteMetadataMatchMethod>
@Generated("software.amazon.awssdk:codegen") public final class GrpcRouteMetadataMatchMethod extends Object implements SdkPojo, Serializable, ToCopyableBuilder<GrpcRouteMetadataMatchMethod.Builder,GrpcRouteMetadataMatchMethod>
An object that represents the match method. Specify one of the match values.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGrpcRouteMetadataMatchMethod.Builderstatic classGrpcRouteMetadataMatchMethod.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GrpcRouteMetadataMatchMethod.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Stringexact()The value sent by the client must match the specified value exactly.static GrpcRouteMetadataMatchMethodfromExact(String exact)Create an instance of this class withexact()initialized to the given value.static GrpcRouteMetadataMatchMethodfromPrefix(String prefix)Create an instance of this class withprefix()initialized to the given value.static GrpcRouteMetadataMatchMethodfromRange(Consumer<MatchRange.Builder> range)Create an instance of this class withrange()initialized to the given value.static GrpcRouteMetadataMatchMethodfromRange(MatchRange range)Create an instance of this class withrange()initialized to the given value.static GrpcRouteMetadataMatchMethodfromRegex(String regex)Create an instance of this class withregex()initialized to the given value.static GrpcRouteMetadataMatchMethodfromSuffix(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 GrpcRouteMetadataMatchMethod.Builder>serializableBuilderClass()Stringsuffix()The value sent by the client must end with the specified characters.GrpcRouteMetadataMatchMethod.BuildertoBuilder()StringtoString()Returns a string representation of this object.GrpcRouteMetadataMatchMethod.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 GrpcRouteMetadataMatchMethod.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GrpcRouteMetadataMatchMethod.Builder,GrpcRouteMetadataMatchMethod>
-
builder
public static GrpcRouteMetadataMatchMethod.Builder builder()
-
serializableBuilderClass
public static Class<? extends GrpcRouteMetadataMatchMethod.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 GrpcRouteMetadataMatchMethod 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 GrpcRouteMetadataMatchMethod 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 GrpcRouteMetadataMatchMethod 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 GrpcRouteMetadataMatchMethod 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 GrpcRouteMetadataMatchMethod 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 GrpcRouteMetadataMatchMethod 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 GrpcRouteMetadataMatchMethod.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 beGrpcRouteMetadataMatchMethod.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 beGrpcRouteMetadataMatchMethod.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-