@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HttpHeaderConditionConfig extends Object implements Serializable, Cloneable
Information about an HTTP header condition.
There is a set of standard HTTP header fields. You can also define custom HTTP header fields.
Constructor and Description |
---|
HttpHeaderConditionConfig() |
Modifier and Type | Method and Description |
---|---|
HttpHeaderConditionConfig |
clone() |
boolean |
equals(Object obj) |
String |
getHttpHeaderName()
The name of the HTTP header field.
|
List<String> |
getValues()
The strings to compare against the value of the HTTP header.
|
int |
hashCode() |
void |
setHttpHeaderName(String httpHeaderName)
The name of the HTTP header field.
|
void |
setValues(Collection<String> values)
The strings to compare against the value of the HTTP header.
|
String |
toString()
Returns a string representation of this object.
|
HttpHeaderConditionConfig |
withHttpHeaderName(String httpHeaderName)
The name of the HTTP header field.
|
HttpHeaderConditionConfig |
withValues(Collection<String> values)
The strings to compare against the value of the HTTP header.
|
HttpHeaderConditionConfig |
withValues(String... values)
The strings to compare against the value of the HTTP header.
|
public void setHttpHeaderName(String httpHeaderName)
The name of the HTTP header field. The maximum size is 40 characters. The header name is case insensitive. The allowed characters are specified by RFC 7230. Wildcards are not supported.
You can't use an HTTP header condition to specify the host header. Use HostHeaderConditionConfig to specify a host header condition.
httpHeaderName
- The name of the HTTP header field. The maximum size is 40 characters. The header name is case insensitive.
The allowed characters are specified by RFC 7230. Wildcards are not supported.
You can't use an HTTP header condition to specify the host header. Use HostHeaderConditionConfig to specify a host header condition.
public String getHttpHeaderName()
The name of the HTTP header field. The maximum size is 40 characters. The header name is case insensitive. The allowed characters are specified by RFC 7230. Wildcards are not supported.
You can't use an HTTP header condition to specify the host header. Use HostHeaderConditionConfig to specify a host header condition.
You can't use an HTTP header condition to specify the host header. Use HostHeaderConditionConfig to specify a host header condition.
public HttpHeaderConditionConfig withHttpHeaderName(String httpHeaderName)
The name of the HTTP header field. The maximum size is 40 characters. The header name is case insensitive. The allowed characters are specified by RFC 7230. Wildcards are not supported.
You can't use an HTTP header condition to specify the host header. Use HostHeaderConditionConfig to specify a host header condition.
httpHeaderName
- The name of the HTTP header field. The maximum size is 40 characters. The header name is case insensitive.
The allowed characters are specified by RFC 7230. Wildcards are not supported.
You can't use an HTTP header condition to specify the host header. Use HostHeaderConditionConfig to specify a host header condition.
public List<String> getValues()
The strings to compare against the value of the HTTP header. The maximum size of each string is 128 characters. The comparison strings are case insensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character).
If the same header appears multiple times in the request, we search them in order until a match is found.
If you specify multiple strings, the condition is satisfied if one of the strings matches the value of the HTTP header. To require that all of the strings are a match, create one condition per string.
If the same header appears multiple times in the request, we search them in order until a match is found.
If you specify multiple strings, the condition is satisfied if one of the strings matches the value of the HTTP header. To require that all of the strings are a match, create one condition per string.
public void setValues(Collection<String> values)
The strings to compare against the value of the HTTP header. The maximum size of each string is 128 characters. The comparison strings are case insensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character).
If the same header appears multiple times in the request, we search them in order until a match is found.
If you specify multiple strings, the condition is satisfied if one of the strings matches the value of the HTTP header. To require that all of the strings are a match, create one condition per string.
values
- The strings to compare against the value of the HTTP header. The maximum size of each string is 128
characters. The comparison strings are case insensitive. The following wildcard characters are supported:
* (matches 0 or more characters) and ? (matches exactly 1 character).
If the same header appears multiple times in the request, we search them in order until a match is found.
If you specify multiple strings, the condition is satisfied if one of the strings matches the value of the HTTP header. To require that all of the strings are a match, create one condition per string.
public HttpHeaderConditionConfig withValues(String... values)
The strings to compare against the value of the HTTP header. The maximum size of each string is 128 characters. The comparison strings are case insensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character).
If the same header appears multiple times in the request, we search them in order until a match is found.
If you specify multiple strings, the condition is satisfied if one of the strings matches the value of the HTTP header. To require that all of the strings are a match, create one condition per string.
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 strings to compare against the value of the HTTP header. The maximum size of each string is 128
characters. The comparison strings are case insensitive. The following wildcard characters are supported:
* (matches 0 or more characters) and ? (matches exactly 1 character).
If the same header appears multiple times in the request, we search them in order until a match is found.
If you specify multiple strings, the condition is satisfied if one of the strings matches the value of the HTTP header. To require that all of the strings are a match, create one condition per string.
public HttpHeaderConditionConfig withValues(Collection<String> values)
The strings to compare against the value of the HTTP header. The maximum size of each string is 128 characters. The comparison strings are case insensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character).
If the same header appears multiple times in the request, we search them in order until a match is found.
If you specify multiple strings, the condition is satisfied if one of the strings matches the value of the HTTP header. To require that all of the strings are a match, create one condition per string.
values
- The strings to compare against the value of the HTTP header. The maximum size of each string is 128
characters. The comparison strings are case insensitive. The following wildcard characters are supported:
* (matches 0 or more characters) and ? (matches exactly 1 character).
If the same header appears multiple times in the request, we search them in order until a match is found.
If you specify multiple strings, the condition is satisfied if one of the strings matches the value of the HTTP header. To require that all of the strings are a match, create one condition per string.
public String toString()
toString
in class Object
Object.toString()
public HttpHeaderConditionConfig clone()