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