public class CachedMethods extends Object implements Serializable
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.
| Constructor and Description | 
|---|
| CachedMethods() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object obj) | 
| List<String> | getItems()A complex type that contains the HTTP methods that you want CloudFront
 to cache responses to. | 
| Integer | getQuantity()The number of HTTP methods for which you want CloudFront to cache
 responses. | 
| int | hashCode() | 
| void | setItems(Collection<String> items)A complex type that contains the HTTP methods that you want CloudFront
 to cache responses to. | 
| void | setQuantity(Integer quantity)The number of HTTP methods for which you want CloudFront to cache
 responses. | 
| String | toString()Returns a string representation of this object; useful for testing and
 debugging. | 
| CachedMethods | withItems(Collection<String> items)A complex type that contains the HTTP methods that you want CloudFront
 to cache responses to. | 
| CachedMethods | withItems(Method... items)A complex type that contains the HTTP methods that you want CloudFront
 to cache responses to. | 
| CachedMethods | withItems(String... items)A complex type that contains the HTTP methods that you want CloudFront
 to cache responses to. | 
| CachedMethods | withQuantity(Integer quantity)The number of HTTP methods for which you want CloudFront to cache
 responses. | 
public Integer getQuantity()
public void setQuantity(Integer quantity)
quantity - The number of HTTP methods for which you want CloudFront to cache
         responses. Valid values are 2 (for caching responses to GET and HEAD
         requests) and 3 (for caching responses to GET, HEAD, and OPTIONS
         requests).public CachedMethods withQuantity(Integer quantity)
Returns a reference to this object so that method calls can be chained together.
quantity - The number of HTTP methods for which you want CloudFront to cache
         responses. Valid values are 2 (for caching responses to GET and HEAD
         requests) and 3 (for caching responses to GET, HEAD, and OPTIONS
         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 cache responses to.public CachedMethods 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 cache responses to.public CachedMethods 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 cache responses to.public CachedMethods 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 cache responses to.public String toString()
toString in class ObjectObject.toString()Copyright © 2014. All rights reserved.