@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResponseHeadersPolicyAccessControlAllowHeaders extends Object implements Serializable, Cloneable
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.
Constructor and Description |
---|
ResponseHeadersPolicyAccessControlAllowHeaders() |
Modifier and Type | Method and Description |
---|---|
ResponseHeadersPolicyAccessControlAllowHeaders |
clone() |
boolean |
equals(Object obj) |
List<String> |
getItems()
The list of HTTP header names.
|
Integer |
getQuantity()
The number of HTTP header names in the list.
|
int |
hashCode() |
void |
setItems(Collection<String> items)
The list of HTTP header names.
|
void |
setQuantity(Integer quantity)
The number of HTTP header names in the list.
|
String |
toString()
Returns a string representation of this object.
|
ResponseHeadersPolicyAccessControlAllowHeaders |
withItems(Collection<String> items)
The list of HTTP header names.
|
ResponseHeadersPolicyAccessControlAllowHeaders |
withItems(String... items)
The list of HTTP header names.
|
ResponseHeadersPolicyAccessControlAllowHeaders |
withQuantity(Integer quantity)
The number of HTTP header names in the list.
|
public ResponseHeadersPolicyAccessControlAllowHeaders()
public void setQuantity(Integer quantity)
The number of HTTP header names in the list.
quantity
- The number of HTTP header names in the list.public Integer getQuantity()
The number of HTTP header names in the list.
public ResponseHeadersPolicyAccessControlAllowHeaders withQuantity(Integer quantity)
The number of HTTP header names in the list.
quantity
- The number of HTTP header names in the list.public List<String> getItems()
The list of HTTP header names. You can specify *
to allow all headers.
*
to allow all headers.public void setItems(Collection<String> items)
The list of HTTP header names. You can specify *
to allow all headers.
items
- The list of HTTP header names. You can specify *
to allow all headers.public ResponseHeadersPolicyAccessControlAllowHeaders withItems(String... items)
The list of HTTP header names. You can specify *
to allow 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 header names. You can specify *
to allow all headers.public ResponseHeadersPolicyAccessControlAllowHeaders withItems(Collection<String> items)
The list of HTTP header names. You can specify *
to allow all headers.
items
- The list of HTTP header names. You can specify *
to allow all headers.public String toString()
toString
in class Object
Object.toString()
public ResponseHeadersPolicyAccessControlAllowHeaders clone()