Class ResponseHeadersPolicy
- java.lang.Object
-
- software.amazon.awssdk.services.cloudfront.model.ResponseHeadersPolicy
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ResponseHeadersPolicy.Builder,ResponseHeadersPolicy>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ResponseHeadersPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
id
public final String id()
The identifier for the response headers policy.
- Returns:
- The identifier for the response headers policy.
-
lastModifiedTime
public final Instant 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
public final ResponseHeadersPolicyConfig responseHeadersPolicyConfig()
A response headers policy configuration.
- Returns:
- A response headers policy configuration.
-
toBuilder
public ResponseHeadersPolicy.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<ResponseHeadersPolicy.Builder,ResponseHeadersPolicy>
-
builder
public static ResponseHeadersPolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResponseHeadersPolicy.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String 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.
-
-