Class ResponseHeadersPolicy
- All Implemented Interfaces:
Serializable,SdkPojo,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.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringid()The identifier for the response headers policy.final InstantThe date and time when the response headers policy was last modified.A response headers policy configuration.static Class<? extends ResponseHeadersPolicy.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
id
The identifier for the response headers policy.
- Returns:
- The identifier for the response headers policy.
-
lastModifiedTime
The date and time when the response headers policy was last modified.
- Returns:
- The date and time when the response headers policy was last modified.
-
responseHeadersPolicyConfig
A response headers policy configuration.
- Returns:
- A response headers policy configuration.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResponseHeadersPolicy.Builder,ResponseHeadersPolicy>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-