@Generated(value="software.amazon.awssdk:codegen") public final class ResponseHeadersPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResponseHeadersPolicy.Builder,ResponseHeadersPolicy>
A response headers policy.
A response headers policy contains information about a set of HTTP response headers.
After you create a response headers policy, you can use its ID to attach it to one or more cache behaviors in a CloudFront distribution. When it's attached to a cache behavior, the response headers policy affects the HTTP headers that CloudFront includes in HTTP responses to requests that match the cache behavior. CloudFront adds or removes response headers according to the configuration of the response headers policy.
For more information, see Adding or removing HTTP headers in CloudFront responses in the Amazon CloudFront Developer Guide.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ResponseHeadersPolicy.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ResponseHeadersPolicy.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The identifier for the response headers policy.
|
Instant |
lastModifiedTime()
The date and time when the response headers policy was last modified.
|
ResponseHeadersPolicyConfig |
responseHeadersPolicyConfig()
A response headers policy configuration.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ResponseHeadersPolicy.Builder> |
serializableBuilderClass() |
ResponseHeadersPolicy.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
The identifier for the response headers policy.
public final Instant lastModifiedTime()
The date and time when the response headers policy was last modified.
public final ResponseHeadersPolicyConfig responseHeadersPolicyConfig()
A response headers policy configuration.
public ResponseHeadersPolicy.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ResponseHeadersPolicy.Builder,ResponseHeadersPolicy>public static ResponseHeadersPolicy.Builder builder()
public static Class<? extends ResponseHeadersPolicy.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.