@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
GrpcMetadataMatchMethod.Builder |
static class |
GrpcMetadataMatchMethod.Type |
| Modifier and Type | Method and Description |
|---|---|
static GrpcMetadataMatchMethod.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
exact()
The exact method header to be matched on.
|
static GrpcMetadataMatchMethod |
fromExact(String exact)
Create an instance of this class with
exact() initialized to the given value. |
static GrpcMetadataMatchMethod |
fromPrefix(String prefix)
Create an instance of this class with
prefix() initialized to the given value. |
static GrpcMetadataMatchMethod |
fromRange(Consumer<MatchRange.Builder> range)
Create an instance of this class with
range() initialized to the given value. |
static GrpcMetadataMatchMethod |
fromRange(MatchRange range)
Create an instance of this class with
range() initialized to the given value. |
static GrpcMetadataMatchMethod |
fromRegex(String regex)
Create an instance of this class with
regex() initialized to the given value. |
static GrpcMetadataMatchMethod |
fromSuffix(String suffix)
Create an instance of this class with
suffix() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
prefix()
The specified beginning characters of the method header to be matched on.
|
MatchRange |
range()
Returns the value of the Range property for this object.
|
String |
regex()
The regex used to match the method header.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GrpcMetadataMatchMethod.Builder> |
serializableBuilderClass() |
String |
suffix()
The specified ending characters of the method header to match on.
|
GrpcMetadataMatchMethod.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
GrpcMetadataMatchMethod.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String exact()
The exact method header to be matched on.
public final String prefix()
The specified beginning characters of the method header to be matched on.
public final MatchRange range()
public final String regex()
The regex used to match the method header.
public final String suffix()
The specified ending characters of the method header to match on.
public GrpcMetadataMatchMethod.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GrpcMetadataMatchMethod.Builder,GrpcMetadataMatchMethod>public static GrpcMetadataMatchMethod.Builder builder()
public static Class<? extends GrpcMetadataMatchMethod.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static GrpcMetadataMatchMethod fromExact(String exact)
exact() initialized to the given value.
The exact method header to be matched on.
exact - The exact method header to be matched on.public static GrpcMetadataMatchMethod fromPrefix(String prefix)
prefix() initialized to the given value.
The specified beginning characters of the method header to be matched on.
prefix - The specified beginning characters of the method header to be matched on.public static GrpcMetadataMatchMethod fromRange(MatchRange range)
range() initialized to the given value.
Sets the value of the Range property for this object.range - The new value for the Range property for this object.public static GrpcMetadataMatchMethod fromRange(Consumer<MatchRange.Builder> range)
range() initialized to the given value.
Sets the value of the Range property for this object.range - The new value for the Range property for this object.public static GrpcMetadataMatchMethod fromRegex(String regex)
regex() initialized to the given value.
The regex used to match the method header.
regex - The regex used to match the method header.public static GrpcMetadataMatchMethod fromSuffix(String suffix)
suffix() initialized to the given value.
The specified ending characters of the method header to match on.
suffix - The specified ending characters of the method header to match on.public GrpcMetadataMatchMethod.Type type()
GrpcMetadataMatchMethod.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 GrpcMetadataMatchMethod.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.