@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResponseHeadersPolicyConfig extends Object implements Serializable, Cloneable
A response headers policy configuration.
A response headers policy configuration contains metadata about the response headers policy, and configurations for sets 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 associated with the policy.
Constructor and Description |
---|
ResponseHeadersPolicyConfig() |
Modifier and Type | Method and Description |
---|---|
ResponseHeadersPolicyConfig |
clone() |
boolean |
equals(Object obj) |
String |
getComment()
A comment to describe the response headers policy.
|
ResponseHeadersPolicyCorsConfig |
getCorsConfig()
A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).
|
ResponseHeadersPolicyCustomHeadersConfig |
getCustomHeadersConfig()
A configuration for a set of custom HTTP response headers.
|
String |
getName()
A name to identify the response headers policy.
|
ResponseHeadersPolicySecurityHeadersConfig |
getSecurityHeadersConfig()
A configuration for a set of security-related HTTP response headers.
|
int |
hashCode() |
void |
setComment(String comment)
A comment to describe the response headers policy.
|
void |
setCorsConfig(ResponseHeadersPolicyCorsConfig corsConfig)
A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).
|
void |
setCustomHeadersConfig(ResponseHeadersPolicyCustomHeadersConfig customHeadersConfig)
A configuration for a set of custom HTTP response headers.
|
void |
setName(String name)
A name to identify the response headers policy.
|
void |
setSecurityHeadersConfig(ResponseHeadersPolicySecurityHeadersConfig securityHeadersConfig)
A configuration for a set of security-related HTTP response headers.
|
String |
toString()
Returns a string representation of this object.
|
ResponseHeadersPolicyConfig |
withComment(String comment)
A comment to describe the response headers policy.
|
ResponseHeadersPolicyConfig |
withCorsConfig(ResponseHeadersPolicyCorsConfig corsConfig)
A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).
|
ResponseHeadersPolicyConfig |
withCustomHeadersConfig(ResponseHeadersPolicyCustomHeadersConfig customHeadersConfig)
A configuration for a set of custom HTTP response headers.
|
ResponseHeadersPolicyConfig |
withName(String name)
A name to identify the response headers policy.
|
ResponseHeadersPolicyConfig |
withSecurityHeadersConfig(ResponseHeadersPolicySecurityHeadersConfig securityHeadersConfig)
A configuration for a set of security-related HTTP response headers.
|
public void setComment(String comment)
A comment to describe the response headers policy.
The comment cannot be longer than 128 characters.
comment
- A comment to describe the response headers policy.
The comment cannot be longer than 128 characters.
public String getComment()
A comment to describe the response headers policy.
The comment cannot be longer than 128 characters.
The comment cannot be longer than 128 characters.
public ResponseHeadersPolicyConfig withComment(String comment)
A comment to describe the response headers policy.
The comment cannot be longer than 128 characters.
comment
- A comment to describe the response headers policy.
The comment cannot be longer than 128 characters.
public void setName(String name)
A name to identify the response headers policy.
The name must be unique for response headers policies in this Amazon Web Services account.
name
- A name to identify the response headers policy.
The name must be unique for response headers policies in this Amazon Web Services account.
public String getName()
A name to identify the response headers policy.
The name must be unique for response headers policies in this Amazon Web Services account.
The name must be unique for response headers policies in this Amazon Web Services account.
public ResponseHeadersPolicyConfig withName(String name)
A name to identify the response headers policy.
The name must be unique for response headers policies in this Amazon Web Services account.
name
- A name to identify the response headers policy.
The name must be unique for response headers policies in this Amazon Web Services account.
public void setCorsConfig(ResponseHeadersPolicyCorsConfig corsConfig)
A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).
corsConfig
- A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).public ResponseHeadersPolicyCorsConfig getCorsConfig()
A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).
public ResponseHeadersPolicyConfig withCorsConfig(ResponseHeadersPolicyCorsConfig corsConfig)
A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).
corsConfig
- A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).public void setSecurityHeadersConfig(ResponseHeadersPolicySecurityHeadersConfig securityHeadersConfig)
A configuration for a set of security-related HTTP response headers.
securityHeadersConfig
- A configuration for a set of security-related HTTP response headers.public ResponseHeadersPolicySecurityHeadersConfig getSecurityHeadersConfig()
A configuration for a set of security-related HTTP response headers.
public ResponseHeadersPolicyConfig withSecurityHeadersConfig(ResponseHeadersPolicySecurityHeadersConfig securityHeadersConfig)
A configuration for a set of security-related HTTP response headers.
securityHeadersConfig
- A configuration for a set of security-related HTTP response headers.public void setCustomHeadersConfig(ResponseHeadersPolicyCustomHeadersConfig customHeadersConfig)
A configuration for a set of custom HTTP response headers.
customHeadersConfig
- A configuration for a set of custom HTTP response headers.public ResponseHeadersPolicyCustomHeadersConfig getCustomHeadersConfig()
A configuration for a set of custom HTTP response headers.
public ResponseHeadersPolicyConfig withCustomHeadersConfig(ResponseHeadersPolicyCustomHeadersConfig customHeadersConfig)
A configuration for a set of custom HTTP response headers.
customHeadersConfig
- A configuration for a set of custom HTTP response headers.public String toString()
toString
in class Object
Object.toString()
public ResponseHeadersPolicyConfig clone()