@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResponseHeadersPolicyCorsConfig extends Object implements Serializable, Cloneable
A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS). CloudFront adds these headers to HTTP responses that it sends for CORS requests that match a cache behavior associated with this response headers policy.
For more information about CORS, see Cross-Origin Resource Sharing (CORS) in the MDN Web Docs.
Constructor and Description |
---|
ResponseHeadersPolicyCorsConfig() |
Modifier and Type | Method and Description |
---|---|
ResponseHeadersPolicyCorsConfig |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAccessControlAllowCredentials()
A Boolean that CloudFront uses as the value for the
Access-Control-Allow-Credentials HTTP response
header. |
ResponseHeadersPolicyAccessControlAllowHeaders |
getAccessControlAllowHeaders()
A list of HTTP header names that CloudFront includes as values for the
Access-Control-Allow-Headers
HTTP response header. |
ResponseHeadersPolicyAccessControlAllowMethods |
getAccessControlAllowMethods()
A list of HTTP methods that CloudFront includes as values for the
Access-Control-Allow-Methods HTTP
response header. |
ResponseHeadersPolicyAccessControlAllowOrigins |
getAccessControlAllowOrigins()
A list of origins (domain names) that CloudFront can use as the value for the
Access-Control-Allow-Origin HTTP response header. |
ResponseHeadersPolicyAccessControlExposeHeaders |
getAccessControlExposeHeaders()
A list of HTTP headers that CloudFront includes as values for the
Access-Control-Expose-Headers HTTP
response header. |
Integer |
getAccessControlMaxAgeSec()
A number that CloudFront uses as the value for the
Access-Control-Max-Age HTTP response header. |
Boolean |
getOriginOverride()
A Boolean that determines whether CloudFront overrides HTTP response headers received from the origin with the
ones specified in this response headers policy.
|
int |
hashCode() |
Boolean |
isAccessControlAllowCredentials()
A Boolean that CloudFront uses as the value for the
Access-Control-Allow-Credentials HTTP response
header. |
Boolean |
isOriginOverride()
A Boolean that determines whether CloudFront overrides HTTP response headers received from the origin with the
ones specified in this response headers policy.
|
void |
setAccessControlAllowCredentials(Boolean accessControlAllowCredentials)
A Boolean that CloudFront uses as the value for the
Access-Control-Allow-Credentials HTTP response
header. |
void |
setAccessControlAllowHeaders(ResponseHeadersPolicyAccessControlAllowHeaders accessControlAllowHeaders)
A list of HTTP header names that CloudFront includes as values for the
Access-Control-Allow-Headers
HTTP response header. |
void |
setAccessControlAllowMethods(ResponseHeadersPolicyAccessControlAllowMethods accessControlAllowMethods)
A list of HTTP methods that CloudFront includes as values for the
Access-Control-Allow-Methods HTTP
response header. |
void |
setAccessControlAllowOrigins(ResponseHeadersPolicyAccessControlAllowOrigins accessControlAllowOrigins)
A list of origins (domain names) that CloudFront can use as the value for the
Access-Control-Allow-Origin HTTP response header. |
void |
setAccessControlExposeHeaders(ResponseHeadersPolicyAccessControlExposeHeaders accessControlExposeHeaders)
A list of HTTP headers that CloudFront includes as values for the
Access-Control-Expose-Headers HTTP
response header. |
void |
setAccessControlMaxAgeSec(Integer accessControlMaxAgeSec)
A number that CloudFront uses as the value for the
Access-Control-Max-Age HTTP response header. |
void |
setOriginOverride(Boolean originOverride)
A Boolean that determines whether CloudFront overrides HTTP response headers received from the origin with the
ones specified in this response headers policy.
|
String |
toString()
Returns a string representation of this object.
|
ResponseHeadersPolicyCorsConfig |
withAccessControlAllowCredentials(Boolean accessControlAllowCredentials)
A Boolean that CloudFront uses as the value for the
Access-Control-Allow-Credentials HTTP response
header. |
ResponseHeadersPolicyCorsConfig |
withAccessControlAllowHeaders(ResponseHeadersPolicyAccessControlAllowHeaders accessControlAllowHeaders)
A list of HTTP header names that CloudFront includes as values for the
Access-Control-Allow-Headers
HTTP response header. |
ResponseHeadersPolicyCorsConfig |
withAccessControlAllowMethods(ResponseHeadersPolicyAccessControlAllowMethods accessControlAllowMethods)
A list of HTTP methods that CloudFront includes as values for the
Access-Control-Allow-Methods HTTP
response header. |
ResponseHeadersPolicyCorsConfig |
withAccessControlAllowOrigins(ResponseHeadersPolicyAccessControlAllowOrigins accessControlAllowOrigins)
A list of origins (domain names) that CloudFront can use as the value for the
Access-Control-Allow-Origin HTTP response header. |
ResponseHeadersPolicyCorsConfig |
withAccessControlExposeHeaders(ResponseHeadersPolicyAccessControlExposeHeaders accessControlExposeHeaders)
A list of HTTP headers that CloudFront includes as values for the
Access-Control-Expose-Headers HTTP
response header. |
ResponseHeadersPolicyCorsConfig |
withAccessControlMaxAgeSec(Integer accessControlMaxAgeSec)
A number that CloudFront uses as the value for the
Access-Control-Max-Age HTTP response header. |
ResponseHeadersPolicyCorsConfig |
withOriginOverride(Boolean originOverride)
A Boolean that determines whether CloudFront overrides HTTP response headers received from the origin with the
ones specified in this response headers policy.
|
public void setAccessControlAllowOrigins(ResponseHeadersPolicyAccessControlAllowOrigins accessControlAllowOrigins)
A list of origins (domain names) that CloudFront can use as the value for the
Access-Control-Allow-Origin
HTTP response header.
For more information about the Access-Control-Allow-Origin
HTTP response header, see Access-Control-Allow-Origin in the MDN Web Docs.
accessControlAllowOrigins
- A list of origins (domain names) that CloudFront can use as the value for the
Access-Control-Allow-Origin
HTTP response header.
For more information about the Access-Control-Allow-Origin
HTTP response header, see Access-Control-Allow-Origin in the MDN Web Docs.
public ResponseHeadersPolicyAccessControlAllowOrigins getAccessControlAllowOrigins()
A list of origins (domain names) that CloudFront can use as the value for the
Access-Control-Allow-Origin
HTTP response header.
For more information about the Access-Control-Allow-Origin
HTTP response header, see Access-Control-Allow-Origin in the MDN Web Docs.
Access-Control-Allow-Origin
HTTP response header.
For more information about the Access-Control-Allow-Origin
HTTP response header, see Access-Control
-Allow-Origin in the MDN Web Docs.
public ResponseHeadersPolicyCorsConfig withAccessControlAllowOrigins(ResponseHeadersPolicyAccessControlAllowOrigins accessControlAllowOrigins)
A list of origins (domain names) that CloudFront can use as the value for the
Access-Control-Allow-Origin
HTTP response header.
For more information about the Access-Control-Allow-Origin
HTTP response header, see Access-Control-Allow-Origin in the MDN Web Docs.
accessControlAllowOrigins
- A list of origins (domain names) that CloudFront can use as the value for the
Access-Control-Allow-Origin
HTTP response header.
For more information about the Access-Control-Allow-Origin
HTTP response header, see Access-Control-Allow-Origin in the MDN Web Docs.
public void setAccessControlAllowHeaders(ResponseHeadersPolicyAccessControlAllowHeaders accessControlAllowHeaders)
A list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers
HTTP response header.
For more information about the Access-Control-Allow-Headers
HTTP response header, see Access-Control-Allow-Headers in the MDN Web Docs.
accessControlAllowHeaders
- A list of HTTP header names that CloudFront includes as values for the
Access-Control-Allow-Headers
HTTP response header.
For more information about the Access-Control-Allow-Headers
HTTP response header, see Access-Control
-Allow-Headers in the MDN Web Docs.
public ResponseHeadersPolicyAccessControlAllowHeaders getAccessControlAllowHeaders()
A list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers
HTTP response header.
For more information about the Access-Control-Allow-Headers
HTTP response header, see Access-Control-Allow-Headers in the MDN Web Docs.
Access-Control-Allow-Headers
HTTP response header.
For more information about the Access-Control-Allow-Headers
HTTP response header, see Access-Control
-Allow-Headers in the MDN Web Docs.
public ResponseHeadersPolicyCorsConfig withAccessControlAllowHeaders(ResponseHeadersPolicyAccessControlAllowHeaders accessControlAllowHeaders)
A list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers
HTTP response header.
For more information about the Access-Control-Allow-Headers
HTTP response header, see Access-Control-Allow-Headers in the MDN Web Docs.
accessControlAllowHeaders
- A list of HTTP header names that CloudFront includes as values for the
Access-Control-Allow-Headers
HTTP response header.
For more information about the Access-Control-Allow-Headers
HTTP response header, see Access-Control
-Allow-Headers in the MDN Web Docs.
public void setAccessControlAllowMethods(ResponseHeadersPolicyAccessControlAllowMethods accessControlAllowMethods)
A list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods
HTTP
response header.
For more information about the Access-Control-Allow-Methods
HTTP response header, see Access-Control-Allow-Methods in the MDN Web Docs.
accessControlAllowMethods
- A list of HTTP methods that CloudFront includes as values for the
Access-Control-Allow-Methods
HTTP response header.
For more information about the Access-Control-Allow-Methods
HTTP response header, see Access-Control
-Allow-Methods in the MDN Web Docs.
public ResponseHeadersPolicyAccessControlAllowMethods getAccessControlAllowMethods()
A list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods
HTTP
response header.
For more information about the Access-Control-Allow-Methods
HTTP response header, see Access-Control-Allow-Methods in the MDN Web Docs.
Access-Control-Allow-Methods
HTTP response header.
For more information about the Access-Control-Allow-Methods
HTTP response header, see Access-Control
-Allow-Methods in the MDN Web Docs.
public ResponseHeadersPolicyCorsConfig withAccessControlAllowMethods(ResponseHeadersPolicyAccessControlAllowMethods accessControlAllowMethods)
A list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods
HTTP
response header.
For more information about the Access-Control-Allow-Methods
HTTP response header, see Access-Control-Allow-Methods in the MDN Web Docs.
accessControlAllowMethods
- A list of HTTP methods that CloudFront includes as values for the
Access-Control-Allow-Methods
HTTP response header.
For more information about the Access-Control-Allow-Methods
HTTP response header, see Access-Control
-Allow-Methods in the MDN Web Docs.
public void setAccessControlAllowCredentials(Boolean accessControlAllowCredentials)
A Boolean that CloudFront uses as the value for the Access-Control-Allow-Credentials
HTTP response
header.
For more information about the Access-Control-Allow-Credentials
HTTP response header, see Access-Control-Allow-Credentials in the MDN Web Docs.
accessControlAllowCredentials
- A Boolean that CloudFront uses as the value for the Access-Control-Allow-Credentials
HTTP
response header.
For more information about the Access-Control-Allow-Credentials
HTTP response header, see Access-
Control-Allow-Credentials in the MDN Web Docs.
public Boolean getAccessControlAllowCredentials()
A Boolean that CloudFront uses as the value for the Access-Control-Allow-Credentials
HTTP response
header.
For more information about the Access-Control-Allow-Credentials
HTTP response header, see Access-Control-Allow-Credentials in the MDN Web Docs.
Access-Control-Allow-Credentials
HTTP
response header.
For more information about the Access-Control-Allow-Credentials
HTTP response header, see Access-
Control-Allow-Credentials in the MDN Web Docs.
public ResponseHeadersPolicyCorsConfig withAccessControlAllowCredentials(Boolean accessControlAllowCredentials)
A Boolean that CloudFront uses as the value for the Access-Control-Allow-Credentials
HTTP response
header.
For more information about the Access-Control-Allow-Credentials
HTTP response header, see Access-Control-Allow-Credentials in the MDN Web Docs.
accessControlAllowCredentials
- A Boolean that CloudFront uses as the value for the Access-Control-Allow-Credentials
HTTP
response header.
For more information about the Access-Control-Allow-Credentials
HTTP response header, see Access-
Control-Allow-Credentials in the MDN Web Docs.
public Boolean isAccessControlAllowCredentials()
A Boolean that CloudFront uses as the value for the Access-Control-Allow-Credentials
HTTP response
header.
For more information about the Access-Control-Allow-Credentials
HTTP response header, see Access-Control-Allow-Credentials in the MDN Web Docs.
Access-Control-Allow-Credentials
HTTP
response header.
For more information about the Access-Control-Allow-Credentials
HTTP response header, see Access-
Control-Allow-Credentials in the MDN Web Docs.
public void setAccessControlExposeHeaders(ResponseHeadersPolicyAccessControlExposeHeaders accessControlExposeHeaders)
A list of HTTP headers that CloudFront includes as values for the Access-Control-Expose-Headers
HTTP
response header.
For more information about the Access-Control-Expose-Headers
HTTP response header, see Access-Control-Expose-Headers in the MDN Web Docs.
accessControlExposeHeaders
- A list of HTTP headers that CloudFront includes as values for the
Access-Control-Expose-Headers
HTTP response header.
For more information about the Access-Control-Expose-Headers
HTTP response header, see Access-Control
-Expose-Headers in the MDN Web Docs.
public ResponseHeadersPolicyAccessControlExposeHeaders getAccessControlExposeHeaders()
A list of HTTP headers that CloudFront includes as values for the Access-Control-Expose-Headers
HTTP
response header.
For more information about the Access-Control-Expose-Headers
HTTP response header, see Access-Control-Expose-Headers in the MDN Web Docs.
Access-Control-Expose-Headers
HTTP response header.
For more information about the Access-Control-Expose-Headers
HTTP response header, see Access-
Control-Expose-Headers in the MDN Web Docs.
public ResponseHeadersPolicyCorsConfig withAccessControlExposeHeaders(ResponseHeadersPolicyAccessControlExposeHeaders accessControlExposeHeaders)
A list of HTTP headers that CloudFront includes as values for the Access-Control-Expose-Headers
HTTP
response header.
For more information about the Access-Control-Expose-Headers
HTTP response header, see Access-Control-Expose-Headers in the MDN Web Docs.
accessControlExposeHeaders
- A list of HTTP headers that CloudFront includes as values for the
Access-Control-Expose-Headers
HTTP response header.
For more information about the Access-Control-Expose-Headers
HTTP response header, see Access-Control
-Expose-Headers in the MDN Web Docs.
public void setAccessControlMaxAgeSec(Integer accessControlMaxAgeSec)
A number that CloudFront uses as the value for the Access-Control-Max-Age
HTTP response header.
For more information about the Access-Control-Max-Age
HTTP response header, see Access-Control-Max-Age in the MDN Web Docs.
accessControlMaxAgeSec
- A number that CloudFront uses as the value for the Access-Control-Max-Age
HTTP response
header.
For more information about the Access-Control-Max-Age
HTTP response header, see Access-Control-Max-Age in the MDN Web Docs.
public Integer getAccessControlMaxAgeSec()
A number that CloudFront uses as the value for the Access-Control-Max-Age
HTTP response header.
For more information about the Access-Control-Max-Age
HTTP response header, see Access-Control-Max-Age in the MDN Web Docs.
Access-Control-Max-Age
HTTP response
header.
For more information about the Access-Control-Max-Age
HTTP response header, see Access-Control-Max-Age in the MDN Web Docs.
public ResponseHeadersPolicyCorsConfig withAccessControlMaxAgeSec(Integer accessControlMaxAgeSec)
A number that CloudFront uses as the value for the Access-Control-Max-Age
HTTP response header.
For more information about the Access-Control-Max-Age
HTTP response header, see Access-Control-Max-Age in the MDN Web Docs.
accessControlMaxAgeSec
- A number that CloudFront uses as the value for the Access-Control-Max-Age
HTTP response
header.
For more information about the Access-Control-Max-Age
HTTP response header, see Access-Control-Max-Age in the MDN Web Docs.
public void setOriginOverride(Boolean originOverride)
A Boolean that determines whether CloudFront overrides HTTP response headers received from the origin with the ones specified in this response headers policy.
originOverride
- A Boolean that determines whether CloudFront overrides HTTP response headers received from the origin with
the ones specified in this response headers policy.public Boolean getOriginOverride()
A Boolean that determines whether CloudFront overrides HTTP response headers received from the origin with the ones specified in this response headers policy.
public ResponseHeadersPolicyCorsConfig withOriginOverride(Boolean originOverride)
A Boolean that determines whether CloudFront overrides HTTP response headers received from the origin with the ones specified in this response headers policy.
originOverride
- A Boolean that determines whether CloudFront overrides HTTP response headers received from the origin with
the ones specified in this response headers policy.public Boolean isOriginOverride()
A Boolean that determines whether CloudFront overrides HTTP response headers received from the origin with the ones specified in this response headers policy.
public String toString()
toString
in class Object
Object.toString()
public ResponseHeadersPolicyCorsConfig clone()