Class GrpcMetadataMatchMethod
- java.lang.Object
-
- software.amazon.awssdk.services.appmesh.model.GrpcMetadataMatchMethod
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<GrpcMetadataMatchMethod.Builder,GrpcMetadataMatchMethod>
@Generated("software.amazon.awssdk:codegen") public final class GrpcMetadataMatchMethod extends Object implements SdkPojo, Serializable, ToCopyableBuilder<GrpcMetadataMatchMethod.Builder,GrpcMetadataMatchMethod>
An object representing the method header to be matched.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGrpcMetadataMatchMethod.Builderstatic classGrpcMetadataMatchMethod.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GrpcMetadataMatchMethod.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Stringexact()The exact method header to be matched on.static GrpcMetadataMatchMethodfromExact(String exact)Create an instance of this class withexact()initialized to the given value.static GrpcMetadataMatchMethodfromPrefix(String prefix)Create an instance of this class withprefix()initialized to the given value.static GrpcMetadataMatchMethodfromRange(Consumer<MatchRange.Builder> range)Create an instance of this class withrange()initialized to the given value.static GrpcMetadataMatchMethodfromRange(MatchRange range)Create an instance of this class withrange()initialized to the given value.static GrpcMetadataMatchMethodfromRegex(String regex)Create an instance of this class withregex()initialized to the given value.static GrpcMetadataMatchMethodfromSuffix(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 specified beginning characters of the method header to be matched on.MatchRangerange()Returns the value of the Range property for this object.Stringregex()The regex used to match the method header.List<SdkField<?>>sdkFields()static Class<? extends GrpcMetadataMatchMethod.Builder>serializableBuilderClass()Stringsuffix()The specified ending characters of the method header to match on.GrpcMetadataMatchMethod.BuildertoBuilder()StringtoString()Returns a string representation of this object.GrpcMetadataMatchMethod.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 exact method header to be matched on.
- Returns:
- The exact method header to be matched on.
-
prefix
public final String prefix()
The specified beginning characters of the method header to be matched on.
- Returns:
- The specified beginning characters of the method header to be matched on.
-
range
public final MatchRange range()
Returns the value of the Range property for this object.- Returns:
- The value of the Range property for this object.
-
regex
public final String regex()
The regex used to match the method header.
- Returns:
- The regex used to match the method header.
-
suffix
public final String suffix()
The specified ending characters of the method header to match on.
- Returns:
- The specified ending characters of the method header to match on.
-
toBuilder
public GrpcMetadataMatchMethod.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GrpcMetadataMatchMethod.Builder,GrpcMetadataMatchMethod>
-
builder
public static GrpcMetadataMatchMethod.Builder builder()
-
serializableBuilderClass
public static Class<? extends GrpcMetadataMatchMethod.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 GrpcMetadataMatchMethod fromExact(String exact)
Create an instance of this class withexact()initialized to the given value.The exact method header to be matched on.
- Parameters:
exact- The exact method header to be matched on.
-
fromPrefix
public static GrpcMetadataMatchMethod fromPrefix(String prefix)
Create an instance of this class withprefix()initialized to the given value.The specified beginning characters of the method header to be matched on.
- Parameters:
prefix- The specified beginning characters of the method header to be matched on.
-
fromRange
public static GrpcMetadataMatchMethod fromRange(MatchRange range)
Create an instance of this class withrange()initialized to the given value. Sets the value of the Range property for this object.- Parameters:
range- The new value for the Range property for this object.
-
fromRange
public static GrpcMetadataMatchMethod fromRange(Consumer<MatchRange.Builder> range)
Create an instance of this class withrange()initialized to the given value. Sets the value of the Range property for this object.- Parameters:
range- The new value for the Range property for this object.
-
fromRegex
public static GrpcMetadataMatchMethod fromRegex(String regex)
Create an instance of this class withregex()initialized to the given value.The regex used to match the method header.
- Parameters:
regex- The regex used to match the method header.
-
fromSuffix
public static GrpcMetadataMatchMethod fromSuffix(String suffix)
Create an instance of this class withsuffix()initialized to the given value.The specified ending characters of the method header to match on.
- Parameters:
suffix- The specified ending characters of the method header to match on.
-
type
public GrpcMetadataMatchMethod.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 beGrpcMetadataMatchMethod.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 beGrpcMetadataMatchMethod.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-