Class CachePolicyHeadersConfig
- java.lang.Object
-
- software.amazon.awssdk.services.cloudfront.model.CachePolicyHeadersConfig
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CachePolicyHeadersConfig.Builder,CachePolicyHeadersConfig>
@Generated("software.amazon.awssdk:codegen") public final class CachePolicyHeadersConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CachePolicyHeadersConfig.Builder,CachePolicyHeadersConfig>
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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCachePolicyHeadersConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CachePolicyHeadersConfig.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()CachePolicyHeaderBehaviorheaderBehavior()Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to the origin.StringheaderBehaviorAsString()Determines whether any HTTP headers are included in the cache key and 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 CachePolicyHeadersConfig.Builder>serializableBuilderClass()CachePolicyHeadersConfig.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 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 tonone, any headers that are listed in anOriginRequestPolicyare included in origin requests. -
whitelist– Only the HTTP headers that are listed in theHeaderstype are included in the cache key and in requests that CloudFront sends to the origin.
If the service returns an enum value that is not available in the current SDK version,
headerBehaviorwill returnCachePolicyHeaderBehavior.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromheaderBehaviorAsString().- Returns:
- 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 tonone, any headers that are listed in anOriginRequestPolicyare included in origin requests. -
whitelist– Only the HTTP headers that are listed in theHeaderstype are included in the cache key and in requests that CloudFront sends to the origin.
-
- See Also:
CachePolicyHeaderBehavior
-
-
headerBehaviorAsString
public final String headerBehaviorAsString()
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 tonone, any headers that are listed in anOriginRequestPolicyare included in origin requests. -
whitelist– Only the HTTP headers that are listed in theHeaderstype are included in the cache key and in requests that CloudFront sends to the origin.
If the service returns an enum value that is not available in the current SDK version,
headerBehaviorwill returnCachePolicyHeaderBehavior.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromheaderBehaviorAsString().- Returns:
- 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 tonone, any headers that are listed in anOriginRequestPolicyare included in origin requests. -
whitelist– Only the HTTP headers that are listed in theHeaderstype are included in the cache key and in requests that CloudFront sends to the origin.
-
- See Also:
CachePolicyHeaderBehavior
-
-
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 CachePolicyHeadersConfig.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CachePolicyHeadersConfig.Builder,CachePolicyHeadersConfig>
-
builder
public static CachePolicyHeadersConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends CachePolicyHeadersConfig.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
-
-