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 interfaceOriginRequestPolicyHeadersConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OriginRequestPolicyHeadersConfig.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()OriginRequestPolicyHeaderBehaviorheaderBehavior()Determines whether any HTTP headers are included in requests that CloudFront sends to the origin.StringheaderBehaviorAsString()Determines whether any HTTP headers are included in requests that CloudFront sends to the origin.Headersheaders()Returns the value of the Headers property for this object.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends OriginRequestPolicyHeadersConfig.Builder>serializableBuilderClass()OriginRequestPolicyHeadersConfig.BuildertoBuilder()StringtoString()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 aCachePolicyare included in origin requests. -
whitelist– Only the HTTP headers that are listed in theHeaderstype 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 theHeaderstype 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 theHeaderstype, which are not included.
If the service returns an enum value that is not available in the current SDK version,
headerBehaviorwill 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 aCachePolicyare included in origin requests. -
whitelist– Only the HTTP headers that are listed in theHeaderstype 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 theHeaderstype 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 theHeaderstype, 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 aCachePolicyare included in origin requests. -
whitelist– Only the HTTP headers that are listed in theHeaderstype 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 theHeaderstype 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 theHeaderstype, which are not included.
If the service returns an enum value that is not available in the current SDK version,
headerBehaviorwill 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 aCachePolicyare included in origin requests. -
whitelist– Only the HTTP headers that are listed in theHeaderstype 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 theHeaderstype 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 theHeaderstype, 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:
toBuilderin 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:
equalsBySdkFieldsin 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-