Class OriginRequestPolicyHeadersConfig
- java.lang.Object
-
- software.amazon.awssdk.services.cloudfront.model.OriginRequestPolicyHeadersConfig
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<OriginRequestPolicyHeadersConfig.Builder,OriginRequestPolicyHeadersConfig>
@Generated("software.amazon.awssdk:codegen") public final class OriginRequestPolicyHeadersConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OriginRequestPolicyHeadersConfig.Builder,OriginRequestPolicyHeadersConfig>
An object that determines whether any HTTP headers (and if so, which headers) are included in requests that CloudFront sends to the origin.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
OriginRequestPolicyHeadersConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OriginRequestPolicyHeadersConfig.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
OriginRequestPolicyHeaderBehavior
headerBehavior()
Determines whether any HTTP headers are included in requests that CloudFront sends to the origin.String
headerBehaviorAsString()
Determines whether any HTTP headers are included in requests that CloudFront sends to the origin.Headers
headers()
Returns the value of the Headers property for this object.List<SdkField<?>>
sdkFields()
static Class<? extends OriginRequestPolicyHeadersConfig.Builder>
serializableBuilderClass()
OriginRequestPolicyHeadersConfig.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
headerBehavior
public final OriginRequestPolicyHeaderBehavior headerBehavior()
Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid values are:
-
none
– No HTTP headers in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any headers that are listed in aCachePolicy
are included in origin requests. -
whitelist
– Only the HTTP headers that are listed in theHeaders
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 theHeaders
type are included in requests that CloudFront sends to the origin. The additional headers are added by CloudFront. -
allExcept
– All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theHeaders
type, which are not included.
If the service returns an enum value that is not available in the current SDK version,
headerBehavior
will returnOriginRequestPolicyHeaderBehavior.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromheaderBehaviorAsString()
.- Returns:
- Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid
values are:
-
none
– No HTTP headers in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any headers that are listed in aCachePolicy
are included in origin requests. -
whitelist
– Only the HTTP headers that are listed in theHeaders
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 theHeaders
type are included in requests that CloudFront sends to the origin. The additional headers are added by CloudFront. -
allExcept
– All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theHeaders
type, which are not included.
-
- See Also:
OriginRequestPolicyHeaderBehavior
-
-
headerBehaviorAsString
public final String headerBehaviorAsString()
Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid values are:
-
none
– No HTTP headers in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any headers that are listed in aCachePolicy
are included in origin requests. -
whitelist
– Only the HTTP headers that are listed in theHeaders
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 theHeaders
type are included in requests that CloudFront sends to the origin. The additional headers are added by CloudFront. -
allExcept
– All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theHeaders
type, which are not included.
If the service returns an enum value that is not available in the current SDK version,
headerBehavior
will returnOriginRequestPolicyHeaderBehavior.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromheaderBehaviorAsString()
.- Returns:
- Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid
values are:
-
none
– No HTTP headers in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any headers that are listed in aCachePolicy
are included in origin requests. -
whitelist
– Only the HTTP headers that are listed in theHeaders
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 theHeaders
type are included in requests that CloudFront sends to the origin. The additional headers are added by CloudFront. -
allExcept
– All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theHeaders
type, which are not included.
-
- See Also:
OriginRequestPolicyHeaderBehavior
-
-
headers
public final Headers headers()
Returns the value of the Headers property for this object.- Returns:
- The value of the Headers property for this object.
-
toBuilder
public OriginRequestPolicyHeadersConfig.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<OriginRequestPolicyHeadersConfig.Builder,OriginRequestPolicyHeadersConfig>
-
builder
public static OriginRequestPolicyHeadersConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends OriginRequestPolicyHeadersConfig.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-