@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResponseHeadersPolicyAccessControlAllowMethods extends Object implements Serializable, Cloneable
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.
Constructor and Description |
---|
ResponseHeadersPolicyAccessControlAllowMethods() |
Modifier and Type | Method and Description |
---|---|
ResponseHeadersPolicyAccessControlAllowMethods |
clone() |
boolean |
equals(Object obj) |
List<String> |
getItems()
The list of HTTP methods.
|
Integer |
getQuantity()
The number of HTTP methods in the list.
|
int |
hashCode() |
void |
setItems(Collection<String> items)
The list of HTTP methods.
|
void |
setQuantity(Integer quantity)
The number of HTTP methods in the list.
|
String |
toString()
Returns a string representation of this object.
|
ResponseHeadersPolicyAccessControlAllowMethods |
withItems(Collection<String> items)
The list of HTTP methods.
|
ResponseHeadersPolicyAccessControlAllowMethods |
withItems(ResponseHeadersPolicyAccessControlAllowMethodsValues... items)
The list of HTTP methods.
|
ResponseHeadersPolicyAccessControlAllowMethods |
withItems(String... items)
The list of HTTP methods.
|
ResponseHeadersPolicyAccessControlAllowMethods |
withQuantity(Integer quantity)
The number of HTTP methods in the list.
|
public ResponseHeadersPolicyAccessControlAllowMethods()
public void setQuantity(Integer quantity)
The number of HTTP methods in the list.
quantity
- The number of HTTP methods in the list.public Integer getQuantity()
The number of HTTP methods in the list.
public ResponseHeadersPolicyAccessControlAllowMethods withQuantity(Integer quantity)
The number of HTTP methods in the list.
quantity
- The number of HTTP methods in the list.public List<String> getItems()
The list of HTTP methods. Valid values are:
GET
DELETE
HEAD
OPTIONS
PATCH
POST
PUT
ALL
ALL
is a special value that includes all of the listed HTTP methods.
GET
DELETE
HEAD
OPTIONS
PATCH
POST
PUT
ALL
ALL
is a special value that includes all of the listed HTTP methods.
ResponseHeadersPolicyAccessControlAllowMethodsValues
public void setItems(Collection<String> items)
The list of HTTP methods. Valid values are:
GET
DELETE
HEAD
OPTIONS
PATCH
POST
PUT
ALL
ALL
is a special value that includes all of the listed HTTP methods.
items
- The list of HTTP methods. Valid values are:
GET
DELETE
HEAD
OPTIONS
PATCH
POST
PUT
ALL
ALL
is a special value that includes all of the listed HTTP methods.
ResponseHeadersPolicyAccessControlAllowMethodsValues
public ResponseHeadersPolicyAccessControlAllowMethods withItems(String... items)
The list of HTTP methods. Valid values are:
GET
DELETE
HEAD
OPTIONS
PATCH
POST
PUT
ALL
ALL
is a special value that includes all of the listed HTTP methods.
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 methods. Valid values are:
GET
DELETE
HEAD
OPTIONS
PATCH
POST
PUT
ALL
ALL
is a special value that includes all of the listed HTTP methods.
ResponseHeadersPolicyAccessControlAllowMethodsValues
public ResponseHeadersPolicyAccessControlAllowMethods withItems(Collection<String> items)
The list of HTTP methods. Valid values are:
GET
DELETE
HEAD
OPTIONS
PATCH
POST
PUT
ALL
ALL
is a special value that includes all of the listed HTTP methods.
items
- The list of HTTP methods. Valid values are:
GET
DELETE
HEAD
OPTIONS
PATCH
POST
PUT
ALL
ALL
is a special value that includes all of the listed HTTP methods.
ResponseHeadersPolicyAccessControlAllowMethodsValues
public ResponseHeadersPolicyAccessControlAllowMethods withItems(ResponseHeadersPolicyAccessControlAllowMethodsValues... items)
The list of HTTP methods. Valid values are:
GET
DELETE
HEAD
OPTIONS
PATCH
POST
PUT
ALL
ALL
is a special value that includes all of the listed HTTP methods.
items
- The list of HTTP methods. Valid values are:
GET
DELETE
HEAD
OPTIONS
PATCH
POST
PUT
ALL
ALL
is a special value that includes all of the listed HTTP methods.
ResponseHeadersPolicyAccessControlAllowMethodsValues
public String toString()
toString
in class Object
Object.toString()
public ResponseHeadersPolicyAccessControlAllowMethods clone()