Class CachePolicyHeadersConfig
- All Implemented Interfaces:
Serializable,SdkPojo,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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to the origin.final StringDetermines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to the origin.final Headersheaders()Returns the value of the Headers property for this object.static Class<? extends CachePolicyHeadersConfig.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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:
-
-
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:
-
-
headers
Returns the value of the Headers property for this object.- Returns:
- The value of the Headers property for this object.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<CachePolicyHeadersConfig.Builder,CachePolicyHeadersConfig>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-