@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.
        
OriginRequestPolicyHeaderBehaviorpublic 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.
         
OriginRequestPolicyHeaderBehaviorpublic 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.
        
OriginRequestPolicyHeaderBehaviorpublic 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.
        
OriginRequestPolicyHeaderBehaviorpublic void setHeaders(Headers headers)
headers - public Headers getHeaders()
public OriginRequestPolicyHeadersConfig withHeaders(Headers headers)
headers - public String toString()
toString in class ObjectObject.toString()public OriginRequestPolicyHeadersConfig clone()
Copyright © 2022. All rights reserved.