Class AllowedMethods
java.lang.Object
com.amazonaws.services.cloudfront.model.AllowedMethods
- All Implemented Interfaces:
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 may not want users to have permission to delete objects from
your origin.
- 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 process and forward to your origin.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.toString()
Returns a string representation of this object; useful for testing and debugging.withCachedMethods
(CachedMethods cachedMethods) A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.withItems
(Collection<String> items) A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.withQuantity
(Integer quantity) The number of HTTP methods that you want CloudFront to forward to your origin.
-
Constructor Details
-
AllowedMethods
public AllowedMethods()
-
-
Method Details
-
setQuantity
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).- Parameters:
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).
-
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).- Returns:
- 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).
-
withQuantity
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).- Parameters:
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).- 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 process and forward to your origin.- Returns:
- A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
- See Also:
-
setItems
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.- Parameters:
items
- A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.- See Also:
-
withItems
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)
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 process and forward to your origin.- 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 process and forward to your origin.- Parameters:
items
- A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.- 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 process and forward to your origin.- Parameters:
items
- A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setCachedMethods
- Parameters:
cachedMethods
-
-
getCachedMethods
- Returns:
-
withCachedMethods
- Parameters:
cachedMethods
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-