com.amazonaws.services.cloudfront.model
Class AllowedMethods

java.lang.Object
  extended by com.amazonaws.services.cloudfront.model.AllowedMethods
All Implemented Interfaces:
Serializable

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 two options: - CloudFront forwards only GET and HEAD requests. - CloudFront forwards DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT requests. If you choose the second option, 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:
Serialized Form

Constructor Summary
AllowedMethods()
           
 
Method Summary
 boolean equals(Object obj)
           
 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 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 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AllowedMethods

public AllowedMethods()
Method Detail

getQuantity

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) and 7 (for DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT 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) and 7 (for DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT requests).

setQuantity

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) and 7 (for DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT 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) and 7 (for DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT requests).

withQuantity

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) and 7 (for DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT requests).

Returns a reference to this object so that method calls can be chained together.

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) and 7 (for DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT requests).
Returns:
A reference to this updated object so that method calls can be chained together.

getItems

public List<String> 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.

setItems

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.

Parameters:
items - A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.

withItems

public AllowedMethods withItems(String... items)
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.

Returns a reference to this object so that method calls can be chained together.

Parameters:
items - A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
Returns:
A reference to this updated object so that method calls can be chained together.

withItems

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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
items - A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
Returns:
A reference to this updated object so that method calls can be chained together.

withItems

public AllowedMethods withItems(Method... items)
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.

Returns a reference to this object so that method calls can be chained together.

Parameters:
items - A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.