@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CachePolicyHeadersConfig extends Object implements Serializable, Cloneable
An object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and automatically included in requests that CloudFront sends to the origin.
Constructor and Description |
---|
CachePolicyHeadersConfig() |
Modifier and Type | Method and Description |
---|---|
CachePolicyHeadersConfig |
clone() |
boolean |
equals(Object obj) |
String |
getHeaderBehavior()
Determines whether any HTTP headers are included in the cache key and automatically included in requests that
CloudFront sends to the origin.
|
Headers |
getHeaders() |
int |
hashCode() |
void |
setHeaderBehavior(String headerBehavior)
Determines whether any HTTP headers are included in the cache key and automatically included in requests that
CloudFront sends to the origin.
|
void |
setHeaders(Headers headers) |
String |
toString()
Returns a string representation of this object.
|
CachePolicyHeadersConfig |
withHeaderBehavior(CachePolicyHeaderBehavior headerBehavior)
Determines whether any HTTP headers are included in the cache key and automatically included in requests that
CloudFront sends to the origin.
|
CachePolicyHeadersConfig |
withHeaderBehavior(String headerBehavior)
Determines whether any HTTP headers are included in the cache key and automatically included in requests that
CloudFront sends to the origin.
|
CachePolicyHeadersConfig |
withHeaders(Headers headers) |
public void setHeaderBehavior(String headerBehavior)
Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are:
none
– HTTP headers are not included in the cache key and are not automatically included in requests
that CloudFront sends to the origin. Even when this field is set to none
, any headers that are
listed in an OriginRequestPolicy
are included in origin requests.
whitelist
– The HTTP headers that are listed in the Headers
type are included in the
cache key and are automatically included in requests that CloudFront sends to the origin.
headerBehavior
- Determines whether any HTTP headers are included in the cache key and automatically included in requests
that CloudFront sends to the origin. Valid values are:
none
– HTTP headers are not included in the cache key and are not automatically included in
requests that CloudFront sends to the origin. Even when this field is set to none
, any
headers that are listed in an OriginRequestPolicy
are included in origin requests.
whitelist
– The HTTP headers that are listed in the Headers
type are included in
the cache key and are automatically included in requests that CloudFront sends to the origin.
CachePolicyHeaderBehavior
public String getHeaderBehavior()
Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are:
none
– HTTP headers are not included in the cache key and are not automatically included in requests
that CloudFront sends to the origin. Even when this field is set to none
, any headers that are
listed in an OriginRequestPolicy
are included in origin requests.
whitelist
– The HTTP headers that are listed in the Headers
type are included in the
cache key and are automatically included in requests that CloudFront sends to the origin.
none
– HTTP headers are not included in the cache key and are not automatically included in
requests that CloudFront sends to the origin. Even when this field is set to none
, any
headers that are listed in an OriginRequestPolicy
are included in origin requests.
whitelist
– The HTTP headers that are listed in the Headers
type are included
in the cache key and are automatically included in requests that CloudFront sends to the origin.
CachePolicyHeaderBehavior
public CachePolicyHeadersConfig withHeaderBehavior(String headerBehavior)
Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are:
none
– HTTP headers are not included in the cache key and are not automatically included in requests
that CloudFront sends to the origin. Even when this field is set to none
, any headers that are
listed in an OriginRequestPolicy
are included in origin requests.
whitelist
– The HTTP headers that are listed in the Headers
type are included in the
cache key and are automatically included in requests that CloudFront sends to the origin.
headerBehavior
- Determines whether any HTTP headers are included in the cache key and automatically included in requests
that CloudFront sends to the origin. Valid values are:
none
– HTTP headers are not included in the cache key and are not automatically included in
requests that CloudFront sends to the origin. Even when this field is set to none
, any
headers that are listed in an OriginRequestPolicy
are included in origin requests.
whitelist
– The HTTP headers that are listed in the Headers
type are included in
the cache key and are automatically included in requests that CloudFront sends to the origin.
CachePolicyHeaderBehavior
public CachePolicyHeadersConfig withHeaderBehavior(CachePolicyHeaderBehavior headerBehavior)
Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are:
none
– HTTP headers are not included in the cache key and are not automatically included in requests
that CloudFront sends to the origin. Even when this field is set to none
, any headers that are
listed in an OriginRequestPolicy
are included in origin requests.
whitelist
– The HTTP headers that are listed in the Headers
type are included in the
cache key and are automatically included in requests that CloudFront sends to the origin.
headerBehavior
- Determines whether any HTTP headers are included in the cache key and automatically included in requests
that CloudFront sends to the origin. Valid values are:
none
– HTTP headers are not included in the cache key and are not automatically included in
requests that CloudFront sends to the origin. Even when this field is set to none
, any
headers that are listed in an OriginRequestPolicy
are included in origin requests.
whitelist
– The HTTP headers that are listed in the Headers
type are included in
the cache key and are automatically included in requests that CloudFront sends to the origin.
CachePolicyHeaderBehavior
public void setHeaders(Headers headers)
headers
- public Headers getHeaders()
public CachePolicyHeadersConfig withHeaders(Headers headers)
headers
- public String toString()
toString
in class Object
Object.toString()
public CachePolicyHeadersConfig clone()