Class CachedMethods
java.lang.Object
com.amazonaws.services.cloudfront.model.CachedMethods
- All Implemented Interfaces:
Serializable
,Cloneable
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getItems()
A complex type that contains the HTTP methods that you want CloudFront to cache responses to.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.toString()
Returns a string representation of this object; useful for testing and debugging.A complex type that contains the HTTP methods that you want CloudFront to cache responses to.A complex type that contains the HTTP methods that you want CloudFront to cache responses to.withItems
(Collection<String> items) A complex type that contains the HTTP methods that you want CloudFront to cache responses to.withQuantity
(Integer quantity) The number of HTTP methods for which you want CloudFront to cache responses.
-
Constructor Details
-
CachedMethods
public CachedMethods()
-
-
Method Details
-
setQuantity
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).- Parameters:
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).
-
getQuantity
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).- Returns:
- 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).
-
withQuantity
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).- Parameters:
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).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getItems
A complex type that contains the HTTP methods that you want CloudFront to cache responses to.- Returns:
- A complex type that contains the HTTP methods that you want CloudFront to cache responses to.
- See Also:
-
setItems
A complex type that contains the HTTP methods that you want CloudFront to cache responses to.- Parameters:
items
- A complex type that contains the HTTP methods that you want CloudFront to cache responses to.- See Also:
-
withItems
A complex type that contains the HTTP methods that you want CloudFront to cache responses to.NOTE: This method appends the values to the existing list (if any). Use
setItems(java.util.Collection)
orwithItems(java.util.Collection)
if you want to override the existing values.- Parameters:
items
- A complex type that contains the HTTP methods that you want CloudFront to cache responses to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
withItems
A complex type that contains the HTTP methods that you want CloudFront to cache responses to.- Parameters:
items
- A complex type that contains the HTTP methods that you want CloudFront to cache responses to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
withItems
A complex type that contains the HTTP methods that you want CloudFront to cache responses to.- Parameters:
items
- A complex type that contains the HTTP methods that you want CloudFront to cache responses to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-