@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 and their values.
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, CloudFront adds the headers in the policy to HTTP responses that it sends for requests that match the cache behavior.
For more information, see Adding HTTP headers to 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.
A response headers policy contains information about a set of HTTP response headers and their values. CloudFront adds the headers in the policy to HTTP responses that it sends for requests that match a cache behavior that’s associated with the policy.
A response headers policy contains information about a set of HTTP response headers and their values. CloudFront adds the headers in the policy to HTTP responses that it sends for requests that match a cache behavior that’s associated with the policy.
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 © 2021. All rights reserved.