@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OriginRequestPolicyHeadersConfig extends Object implements Serializable, Cloneable
An object that determines whether any HTTP headers (and if so, which headers) are included in requests that CloudFront sends to the origin.
Constructor and Description |
---|
OriginRequestPolicyHeadersConfig() |
Modifier and Type | Method and Description |
---|---|
OriginRequestPolicyHeadersConfig |
clone() |
boolean |
equals(Object obj) |
String |
getHeaderBehavior()
Determines whether any HTTP headers are 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 requests that CloudFront sends to the origin.
|
void |
setHeaders(Headers headers) |
String |
toString()
Returns a string representation of this object.
|
OriginRequestPolicyHeadersConfig |
withHeaderBehavior(OriginRequestPolicyHeaderBehavior headerBehavior)
Determines whether any HTTP headers are included in requests that CloudFront sends to the origin.
|
OriginRequestPolicyHeadersConfig |
withHeaderBehavior(String headerBehavior)
Determines whether any HTTP headers are included in requests that CloudFront sends to the origin.
|
OriginRequestPolicyHeadersConfig |
withHeaders(Headers headers) |
public void setHeaderBehavior(String headerBehavior)
Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid values are:
none
– HTTP headers are not included in requests that CloudFront sends to the origin. Even when this
field is set to none
, any headers that are listed in a CachePolicy
are included
in origin requests.
whitelist
– The HTTP headers that are listed in the Headers
type are included in
requests that CloudFront sends to the origin.
allViewer
– All HTTP headers in viewer requests are included in requests that CloudFront sends to
the origin.
allViewerAndWhitelistCloudFront
– All HTTP headers in viewer requests and the additional CloudFront
headers that are listed in the Headers
type are included in requests that CloudFront sends to the
origin. The additional headers are added by CloudFront.
headerBehavior
- Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid
values are:
none
– HTTP headers are not included in requests that CloudFront sends to the origin. Even
when this field is set to none
, any headers that are listed in a CachePolicy
are included in origin requests.
whitelist
– The HTTP headers that are listed in the Headers
type are included in
requests that CloudFront sends to the origin.
allViewer
– All HTTP headers in viewer requests are included in requests that CloudFront
sends to the origin.
allViewerAndWhitelistCloudFront
– All HTTP headers in viewer requests and the additional
CloudFront headers that are listed in the Headers
type are included in requests that
CloudFront sends to the origin. The additional headers are added by CloudFront.
OriginRequestPolicyHeaderBehavior
public String getHeaderBehavior()
Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid values are:
none
– HTTP headers are not included in requests that CloudFront sends to the origin. Even when this
field is set to none
, any headers that are listed in a CachePolicy
are included
in origin requests.
whitelist
– The HTTP headers that are listed in the Headers
type are included in
requests that CloudFront sends to the origin.
allViewer
– All HTTP headers in viewer requests are included in requests that CloudFront sends to
the origin.
allViewerAndWhitelistCloudFront
– All HTTP headers in viewer requests and the additional CloudFront
headers that are listed in the Headers
type are included in requests that CloudFront sends to the
origin. The additional headers are added by CloudFront.
none
– HTTP headers are not included in requests that CloudFront sends to the origin. Even
when this field is set to none
, any headers that are listed in a CachePolicy
are included in origin requests.
whitelist
– The HTTP headers that are listed in the Headers
type are included
in requests that CloudFront sends to the origin.
allViewer
– All HTTP headers in viewer requests are included in requests that CloudFront
sends to the origin.
allViewerAndWhitelistCloudFront
– All HTTP headers in viewer requests and the additional
CloudFront headers that are listed in the Headers
type are included in requests that
CloudFront sends to the origin. The additional headers are added by CloudFront.
OriginRequestPolicyHeaderBehavior
public OriginRequestPolicyHeadersConfig withHeaderBehavior(String headerBehavior)
Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid values are:
none
– HTTP headers are not included in requests that CloudFront sends to the origin. Even when this
field is set to none
, any headers that are listed in a CachePolicy
are included
in origin requests.
whitelist
– The HTTP headers that are listed in the Headers
type are included in
requests that CloudFront sends to the origin.
allViewer
– All HTTP headers in viewer requests are included in requests that CloudFront sends to
the origin.
allViewerAndWhitelistCloudFront
– All HTTP headers in viewer requests and the additional CloudFront
headers that are listed in the Headers
type are included in requests that CloudFront sends to the
origin. The additional headers are added by CloudFront.
headerBehavior
- Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid
values are:
none
– HTTP headers are not included in requests that CloudFront sends to the origin. Even
when this field is set to none
, any headers that are listed in a CachePolicy
are included in origin requests.
whitelist
– The HTTP headers that are listed in the Headers
type are included in
requests that CloudFront sends to the origin.
allViewer
– All HTTP headers in viewer requests are included in requests that CloudFront
sends to the origin.
allViewerAndWhitelistCloudFront
– All HTTP headers in viewer requests and the additional
CloudFront headers that are listed in the Headers
type are included in requests that
CloudFront sends to the origin. The additional headers are added by CloudFront.
OriginRequestPolicyHeaderBehavior
public OriginRequestPolicyHeadersConfig withHeaderBehavior(OriginRequestPolicyHeaderBehavior headerBehavior)
Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid values are:
none
– HTTP headers are not included in requests that CloudFront sends to the origin. Even when this
field is set to none
, any headers that are listed in a CachePolicy
are included
in origin requests.
whitelist
– The HTTP headers that are listed in the Headers
type are included in
requests that CloudFront sends to the origin.
allViewer
– All HTTP headers in viewer requests are included in requests that CloudFront sends to
the origin.
allViewerAndWhitelistCloudFront
– All HTTP headers in viewer requests and the additional CloudFront
headers that are listed in the Headers
type are included in requests that CloudFront sends to the
origin. The additional headers are added by CloudFront.
headerBehavior
- Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid
values are:
none
– HTTP headers are not included in requests that CloudFront sends to the origin. Even
when this field is set to none
, any headers that are listed in a CachePolicy
are included in origin requests.
whitelist
– The HTTP headers that are listed in the Headers
type are included in
requests that CloudFront sends to the origin.
allViewer
– All HTTP headers in viewer requests are included in requests that CloudFront
sends to the origin.
allViewerAndWhitelistCloudFront
– All HTTP headers in viewer requests and the additional
CloudFront headers that are listed in the Headers
type are included in requests that
CloudFront sends to the origin. The additional headers are added by CloudFront.
OriginRequestPolicyHeaderBehavior
public void setHeaders(Headers headers)
headers
- public Headers getHeaders()
public OriginRequestPolicyHeadersConfig withHeaders(Headers headers)
headers
- public String toString()
toString
in class Object
Object.toString()
public OriginRequestPolicyHeadersConfig clone()