@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HttpRequestMethodConditionConfig extends Object implements Serializable, Cloneable
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.
Constructor and Description |
---|
HttpRequestMethodConditionConfig() |
Modifier and Type | Method and Description |
---|---|
HttpRequestMethodConditionConfig |
clone() |
boolean |
equals(Object obj) |
List<String> |
getValues()
The name of the request method.
|
int |
hashCode() |
void |
setValues(Collection<String> values)
The name of the request method.
|
String |
toString()
Returns a string representation of this object.
|
HttpRequestMethodConditionConfig |
withValues(Collection<String> values)
The name of the request method.
|
HttpRequestMethodConditionConfig |
withValues(String... values)
The name of the request method.
|
public List<String> getValues()
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.
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 void setValues(Collection<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.
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.
public HttpRequestMethodConditionConfig withValues(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.
NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection)
or withValues(java.util.Collection)
if you want to override the
existing values.
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.
public HttpRequestMethodConditionConfig withValues(Collection<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.
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.
public String toString()
toString
in class Object
Object.toString()
public HttpRequestMethodConditionConfig clone()