@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResponseHeadersPolicy extends Object implements Serializable, Cloneable
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.
Constructor and Description |
---|
ResponseHeadersPolicy() |
Modifier and Type | Method and Description |
---|---|
ResponseHeadersPolicy |
clone() |
boolean |
equals(Object obj) |
String |
getId()
The identifier for the response headers policy.
|
Date |
getLastModifiedTime()
The date and time when the response headers policy was last modified.
|
ResponseHeadersPolicyConfig |
getResponseHeadersPolicyConfig()
A response headers policy configuration.
|
int |
hashCode() |
void |
setId(String id)
The identifier for the response headers policy.
|
void |
setLastModifiedTime(Date lastModifiedTime)
The date and time when the response headers policy was last modified.
|
void |
setResponseHeadersPolicyConfig(ResponseHeadersPolicyConfig responseHeadersPolicyConfig)
A response headers policy configuration.
|
String |
toString()
Returns a string representation of this object.
|
ResponseHeadersPolicy |
withId(String id)
The identifier for the response headers policy.
|
ResponseHeadersPolicy |
withLastModifiedTime(Date lastModifiedTime)
The date and time when the response headers policy was last modified.
|
ResponseHeadersPolicy |
withResponseHeadersPolicyConfig(ResponseHeadersPolicyConfig responseHeadersPolicyConfig)
A response headers policy configuration.
|
public void setId(String id)
The identifier for the response headers policy.
id
- The identifier for the response headers policy.public String getId()
The identifier for the response headers policy.
public ResponseHeadersPolicy withId(String id)
The identifier for the response headers policy.
id
- The identifier for the response headers policy.public void setLastModifiedTime(Date lastModifiedTime)
The date and time when the response headers policy was last modified.
lastModifiedTime
- The date and time when the response headers policy was last modified.public Date getLastModifiedTime()
The date and time when the response headers policy was last modified.
public ResponseHeadersPolicy withLastModifiedTime(Date lastModifiedTime)
The date and time when the response headers policy was last modified.
lastModifiedTime
- The date and time when the response headers policy was last modified.public void setResponseHeadersPolicyConfig(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.
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.
public ResponseHeadersPolicyConfig getResponseHeadersPolicyConfig()
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 withResponseHeadersPolicyConfig(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.
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.
public String toString()
toString
in class Object
Object.toString()
public ResponseHeadersPolicy clone()