@Generated(value="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 automatically included in requests that CloudFront sends to the origin.
Modifier and Type | Class and Description |
---|---|
static interface |
CachePolicyHeadersConfig.Builder |
Modifier and Type | Method and 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 automatically included in requests that
CloudFront sends to the origin.
|
String |
headerBehaviorAsString()
Determines whether any HTTP headers are included in the cache key and automatically 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 CachePolicyHeadersConfig.Builder> |
serializableBuilderClass() |
CachePolicyHeadersConfig.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final CachePolicyHeaderBehavior headerBehavior()
Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are:
none
– HTTP headers are not included in the cache key and are not automatically included in requests
that CloudFront sends to the origin. Even when this field is set to none
, any headers that are
listed in an OriginRequestPolicy
are included in origin requests.
whitelist
– The HTTP headers that are listed in the Headers
type are included in the
cache key and are automatically included 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 return CachePolicyHeaderBehavior.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from headerBehaviorAsString()
.
none
– HTTP headers are not included in the cache key and are not automatically included in
requests that CloudFront sends to the origin. Even when this field is set to none
, any
headers that are listed in an OriginRequestPolicy
are included in origin requests.
whitelist
– The HTTP headers that are listed in the Headers
type are included
in the cache key and are automatically included in requests that CloudFront sends to the origin.
CachePolicyHeaderBehavior
public final String headerBehaviorAsString()
Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are:
none
– HTTP headers are not included in the cache key and are not automatically included in requests
that CloudFront sends to the origin. Even when this field is set to none
, any headers that are
listed in an OriginRequestPolicy
are included in origin requests.
whitelist
– The HTTP headers that are listed in the Headers
type are included in the
cache key and are automatically included 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 return CachePolicyHeaderBehavior.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from headerBehaviorAsString()
.
none
– HTTP headers are not included in the cache key and are not automatically included in
requests that CloudFront sends to the origin. Even when this field is set to none
, any
headers that are listed in an OriginRequestPolicy
are included in origin requests.
whitelist
– The HTTP headers that are listed in the Headers
type are included
in the cache key and are automatically included in requests that CloudFront sends to the origin.
CachePolicyHeaderBehavior
public final Headers headers()
public CachePolicyHeadersConfig.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<CachePolicyHeadersConfig.Builder,CachePolicyHeadersConfig>
public static CachePolicyHeadersConfig.Builder builder()
public static Class<? extends CachePolicyHeadersConfig.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2021. All rights reserved.