@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AllowedMethods extends Object implements Serializable, Cloneable
A complex type that controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. There are three choices:
CloudFront forwards only GET
and HEAD
requests.
CloudFront forwards only GET
, HEAD
, and OPTIONS
requests.
CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST
, and DELETE
requests.
If you pick the third choice, you may need to restrict access to your Amazon S3 bucket or to your custom origin so users can't perform operations that you don't want them to. For example, you might not want users to have permissions to delete objects from your origin.
Constructor and Description |
---|
AllowedMethods() |
Modifier and Type | Method and Description |
---|---|
AllowedMethods |
clone() |
boolean |
equals(Object obj) |
CachedMethods |
getCachedMethods() |
List<String> |
getItems()
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
|
Integer |
getQuantity()
The number of HTTP methods that you want CloudFront to forward to your origin.
|
int |
hashCode() |
void |
setCachedMethods(CachedMethods cachedMethods) |
void |
setItems(Collection<String> items)
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
|
void |
setQuantity(Integer quantity)
The number of HTTP methods that you want CloudFront to forward to your origin.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
AllowedMethods |
withCachedMethods(CachedMethods cachedMethods) |
AllowedMethods |
withItems(Collection<String> items)
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
|
AllowedMethods |
withItems(Method... items)
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
|
AllowedMethods |
withItems(String... items)
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
|
AllowedMethods |
withQuantity(Integer quantity)
The number of HTTP methods that you want CloudFront to forward to your origin.
|
public void setQuantity(Integer quantity)
The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for
GET
and HEAD
requests), 3 (for GET
, HEAD
, and
OPTIONS
requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST
, and
DELETE
requests).
quantity
- The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for
GET
and HEAD
requests), 3 (for GET
, HEAD
, and
OPTIONS
requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST
, and
DELETE
requests).public Integer getQuantity()
The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for
GET
and HEAD
requests), 3 (for GET
, HEAD
, and
OPTIONS
requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST
, and
DELETE
requests).
GET
and HEAD
requests), 3 (for GET
, HEAD
, and
OPTIONS
requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST
, and
DELETE
requests).public AllowedMethods withQuantity(Integer quantity)
The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for
GET
and HEAD
requests), 3 (for GET
, HEAD
, and
OPTIONS
requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST
, and
DELETE
requests).
quantity
- The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for
GET
and HEAD
requests), 3 (for GET
, HEAD
, and
OPTIONS
requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST
, and
DELETE
requests).public List<String> getItems()
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
Method
public void setItems(Collection<String> items)
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
items
- A complex type that contains the HTTP methods that you want CloudFront to process and forward to your
origin.Method
public AllowedMethods withItems(String... items)
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
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
- A complex type that contains the HTTP methods that you want CloudFront to process and forward to your
origin.Method
public AllowedMethods withItems(Collection<String> items)
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
items
- A complex type that contains the HTTP methods that you want CloudFront to process and forward to your
origin.Method
public AllowedMethods withItems(Method... items)
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
items
- A complex type that contains the HTTP methods that you want CloudFront to process and forward to your
origin.Method
public void setCachedMethods(CachedMethods cachedMethods)
cachedMethods
- public CachedMethods getCachedMethods()
public AllowedMethods withCachedMethods(CachedMethods cachedMethods)
cachedMethods
- public String toString()
toString
in class Object
Object.toString()
public AllowedMethods clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.