@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 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 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.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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 to none, any headers that are listed in an
OriginRequestPolicy are included in origin requests.
whitelist – Only the HTTP headers that are listed in the Headers 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 return CachePolicyHeaderBehavior.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from headerBehaviorAsString().
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 to none, any headers that are listed in an
OriginRequestPolicy are included in origin requests.
whitelist – Only the HTTP headers that are listed in the Headers type are
included in the cache key and in requests that CloudFront sends to the origin.
CachePolicyHeaderBehaviorpublic 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 to none, any headers that are listed in an
OriginRequestPolicy are included in origin requests.
whitelist – Only the HTTP headers that are listed in the Headers 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 return CachePolicyHeaderBehavior.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from headerBehaviorAsString().
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 to none, any headers that are listed in an
OriginRequestPolicy are included in origin requests.
whitelist – Only the HTTP headers that are listed in the Headers type are
included in the cache key and in requests that CloudFront sends to the origin.
CachePolicyHeaderBehaviorpublic 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 SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.