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 interface
CachePolicyHeadersConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CachePolicyHeadersConfig.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
CachePolicyHeaderBehavior
headerBehavior()
Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to the origin.String
headerBehaviorAsString()
Determines whether any HTTP headers are included in the cache key and 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 CachePolicyHeadersConfig.Builder>
serializableBuilderClass()
CachePolicyHeadersConfig.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 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 anOriginRequestPolicy
are included in origin requests. -
whitelist
– Only the HTTP headers that are listed in theHeaders
type 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,
headerBehavior
will 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 anOriginRequestPolicy
are included in origin requests. -
whitelist
– Only the HTTP headers that are listed in theHeaders
type 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 anOriginRequestPolicy
are included in origin requests. -
whitelist
– Only the HTTP headers that are listed in theHeaders
type 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,
headerBehavior
will 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 anOriginRequestPolicy
are included in origin requests. -
whitelist
– Only the HTTP headers that are listed in theHeaders
type 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:
toBuilder
in 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:
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.
-
-