@Generated(value="software.amazon.awssdk:codegen") public final class HttpRequestMethodConditionConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HttpRequestMethodConditionConfig.Builder,HttpRequestMethodConditionConfig>
Information about an HTTP method condition.
HTTP defines a set of request methods, also referred to as HTTP verbs. For more information, see the HTTP Method Registry. You can also define custom HTTP methods.
| Modifier and Type | Class and Description |
|---|---|
static interface |
HttpRequestMethodConditionConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
static HttpRequestMethodConditionConfig.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasValues()
Returns true if the Values property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends HttpRequestMethodConditionConfig.Builder> |
serializableBuilderClass() |
HttpRequestMethodConditionConfig.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
List<String> |
values()
The name of the request method.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic boolean hasValues()
public List<String> values()
The name of the request method. The maximum size is 40 characters. The allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is case sensitive. Wildcards are not supported; therefore, the method name must be an exact match.
If you specify multiple strings, the condition is satisfied if one of the strings matches the HTTP request method. We recommend that you route GET and HEAD requests in the same way, because the response to a HEAD request may be cached.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasValues() to see if a value was sent in this field.
If you specify multiple strings, the condition is satisfied if one of the strings matches the HTTP request method. We recommend that you route GET and HEAD requests in the same way, because the response to a HEAD request may be cached.
public HttpRequestMethodConditionConfig.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<HttpRequestMethodConditionConfig.Builder,HttpRequestMethodConditionConfig>public static HttpRequestMethodConditionConfig.Builder builder()
public static Class<? extends HttpRequestMethodConditionConfig.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.