public class AllowedMethods extends Object implements Serializable
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 may not want users to have permission to delete objects from your origin.
| Constructor and Description | 
|---|
| AllowedMethods() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object obj) | 
| CachedMethods | getCachedMethods()A complex type that controls whether CloudFront caches the response to
 requests using the specified HTTP methods. | 
| 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)A complex type that controls whether CloudFront caches the response to
 requests using the specified HTTP methods. | 
| 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)A complex type that controls whether CloudFront caches the response to
 requests using the specified HTTP methods. | 
| 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 Integer getQuantity()
public void setQuantity(Integer quantity)
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 AllowedMethods withQuantity(Integer quantity)
Returns a reference to this object so that method calls can be chained together.
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()
public void setItems(Collection<String> items)
items - A complex type that contains the HTTP methods that you want CloudFront
         to process and forward to your origin.public AllowedMethods withItems(String... items)
Returns a reference to this object so that method calls can be chained together.
items - A complex type that contains the HTTP methods that you want CloudFront
         to process and forward to your origin.public AllowedMethods withItems(Collection<String> items)
Returns a reference to this object so that method calls can be chained together.
items - A complex type that contains the HTTP methods that you want CloudFront
         to process and forward to your origin.public AllowedMethods withItems(Method... items)
Returns a reference to this object so that method calls can be chained together.
items - A complex type that contains the HTTP methods that you want CloudFront
         to process and forward to your origin.public CachedMethods getCachedMethods()
public void setCachedMethods(CachedMethods cachedMethods)
cachedMethods - A complex type that controls whether CloudFront caches the response to
         requests using the specified HTTP methods. There are two choices: -
         CloudFront caches responses to GET and HEAD requests. - CloudFront
         caches responses to GET, HEAD, and OPTIONS requests. If you pick the
         second choice for your S3 Origin, you may need to forward
         Access-Control-Request-Method, Access-Control-Request-Headers and
         Origin headers for the responses to be cached correctly.public AllowedMethods withCachedMethods(CachedMethods cachedMethods)
Returns a reference to this object so that method calls can be chained together.
cachedMethods - A complex type that controls whether CloudFront caches the response to
         requests using the specified HTTP methods. There are two choices: -
         CloudFront caches responses to GET and HEAD requests. - CloudFront
         caches responses to GET, HEAD, and OPTIONS requests. If you pick the
         second choice for your S3 Origin, you may need to forward
         Access-Control-Request-Method, Access-Control-Request-Headers and
         Origin headers for the responses to be cached correctly.public String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.