@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 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 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 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 in requests that CloudFront sends to the
origin.
|
CachePolicyHeadersConfig |
withHeaderBehavior(String headerBehavior)
Determines whether any HTTP headers are included in the cache key and 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 in requests that CloudFront sends to the origin. Valid values are:
none – No HTTP headers are included in the cache key or 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 – Only the HTTP headers that are listed in the Headers type are included in
the cache key and in requests that CloudFront sends to the origin.
headerBehavior - Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to
the origin. Valid values are:
none – No HTTP headers are included in the cache key or 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 – Only the HTTP headers that are listed in the Headers type are
included in the cache key and in requests that CloudFront sends to the origin.
CachePolicyHeaderBehaviorpublic String getHeaderBehavior()
Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:
none – No HTTP headers are included in the cache key or 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 – Only the HTTP headers that are listed in the Headers type are included in
the cache key and in requests that CloudFront sends to the origin.
none – No HTTP headers are included in the cache key or 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 – Only the HTTP headers that are listed in the Headers type are
included in the cache key and in requests that CloudFront sends to the origin.
CachePolicyHeaderBehaviorpublic CachePolicyHeadersConfig withHeaderBehavior(String headerBehavior)
Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:
none – No HTTP headers are included in the cache key or 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 – Only the HTTP headers that are listed in the Headers type are included in
the cache key and in requests that CloudFront sends to the origin.
headerBehavior - Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to
the origin. Valid values are:
none – No HTTP headers are included in the cache key or 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 – Only the HTTP headers that are listed in the Headers type are
included in the cache key and in requests that CloudFront sends to the origin.
CachePolicyHeaderBehaviorpublic CachePolicyHeadersConfig withHeaderBehavior(CachePolicyHeaderBehavior headerBehavior)
Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:
none – No HTTP headers are included in the cache key or 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 – Only the HTTP headers that are listed in the Headers type are included in
the cache key and in requests that CloudFront sends to the origin.
headerBehavior - Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to
the origin. Valid values are:
none – No HTTP headers are included in the cache key or 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 – Only the HTTP headers that are listed in the Headers type are
included in the cache key and in requests that CloudFront sends to the origin.
CachePolicyHeaderBehaviorpublic void setHeaders(Headers headers)
headers - public Headers getHeaders()
public CachePolicyHeadersConfig withHeaders(Headers headers)
headers - public String toString()
toString in class ObjectObject.toString()public CachePolicyHeadersConfig clone()