@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResponseHeadersPolicyAccessControlExposeHeaders extends Object implements Serializable, Cloneable
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.
Constructor and Description |
---|
ResponseHeadersPolicyAccessControlExposeHeaders() |
Modifier and Type | Method and Description |
---|---|
ResponseHeadersPolicyAccessControlExposeHeaders |
clone() |
boolean |
equals(Object obj) |
List<String> |
getItems()
The list of HTTP headers.
|
Integer |
getQuantity()
The number of HTTP headers in the list.
|
int |
hashCode() |
void |
setItems(Collection<String> items)
The list of HTTP headers.
|
void |
setQuantity(Integer quantity)
The number of HTTP headers in the list.
|
String |
toString()
Returns a string representation of this object.
|
ResponseHeadersPolicyAccessControlExposeHeaders |
withItems(Collection<String> items)
The list of HTTP headers.
|
ResponseHeadersPolicyAccessControlExposeHeaders |
withItems(String... items)
The list of HTTP headers.
|
ResponseHeadersPolicyAccessControlExposeHeaders |
withQuantity(Integer quantity)
The number of HTTP headers in the list.
|
public ResponseHeadersPolicyAccessControlExposeHeaders()
public void setQuantity(Integer quantity)
The number of HTTP headers in the list.
quantity
- The number of HTTP headers in the list.public Integer getQuantity()
The number of HTTP headers in the list.
public ResponseHeadersPolicyAccessControlExposeHeaders withQuantity(Integer quantity)
The number of HTTP headers in the list.
quantity
- The number of HTTP headers in the list.public List<String> getItems()
The list of HTTP headers. You can specify *
to expose all headers.
*
to expose all headers.public void setItems(Collection<String> items)
The list of HTTP headers. You can specify *
to expose all headers.
items
- The list of HTTP headers. You can specify *
to expose all headers.public ResponseHeadersPolicyAccessControlExposeHeaders withItems(String... items)
The list of HTTP headers. You can specify *
to expose all headers.
NOTE: This method appends the values to the existing list (if any). Use
setItems(java.util.Collection)
or withItems(java.util.Collection)
if you want to override the
existing values.
items
- The list of HTTP headers. You can specify *
to expose all headers.public ResponseHeadersPolicyAccessControlExposeHeaders withItems(Collection<String> items)
The list of HTTP headers. You can specify *
to expose all headers.
items
- The list of HTTP headers. You can specify *
to expose all headers.public String toString()
toString
in class Object
Object.toString()
public ResponseHeadersPolicyAccessControlExposeHeaders clone()