public class AllowedMethods
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private CachedMethods |
cachedMethods |
private SdkInternalList<java.lang.String> |
items
A complex type that contains the HTTP methods that you want CloudFront to
process and forward to your origin.
|
private java.lang.Integer |
quantity
The number of HTTP methods that you want CloudFront to forward to your
origin.
|
Constructor and Description |
---|
AllowedMethods() |
Modifier and Type | Method and Description |
---|---|
AllowedMethods |
clone() |
boolean |
equals(java.lang.Object obj) |
CachedMethods |
getCachedMethods() |
java.util.List<java.lang.String> |
getItems()
A complex type that contains the HTTP methods that you want CloudFront to
process and forward to your origin.
|
java.lang.Integer |
getQuantity()
The number of HTTP methods that you want CloudFront to forward to your
origin.
|
int |
hashCode() |
void |
setCachedMethods(CachedMethods cachedMethods) |
void |
setItems(java.util.Collection<java.lang.String> items)
A complex type that contains the HTTP methods that you want CloudFront to
process and forward to your origin.
|
void |
setQuantity(java.lang.Integer quantity)
The number of HTTP methods that you want CloudFront to forward to your
origin.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AllowedMethods |
withCachedMethods(CachedMethods cachedMethods) |
AllowedMethods |
withItems(java.util.Collection<java.lang.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(java.lang.String... items)
A complex type that contains the HTTP methods that you want CloudFront to
process and forward to your origin.
|
AllowedMethods |
withQuantity(java.lang.Integer quantity)
The number of HTTP methods that you want CloudFront to forward to your
origin.
|
private java.lang.Integer quantity
private SdkInternalList<java.lang.String> items
private CachedMethods cachedMethods
public void setQuantity(java.lang.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 java.lang.Integer getQuantity()
public AllowedMethods withQuantity(java.lang.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 java.util.List<java.lang.String> getItems()
Method
public void setItems(java.util.Collection<java.lang.String> items)
items
- A complex type that contains the HTTP methods that you want
CloudFront to process and forward to your origin.Method
public AllowedMethods withItems(java.lang.String... items)
NOTE: This method appends the values to the existing list (if
any). Use setItems(java.util.Collection)
or
withItems(java.util.Collection)
if you want to override the
existing values.
items
- A complex type that contains the HTTP methods that you want
CloudFront to process and forward to your origin.Method
public AllowedMethods withItems(java.util.Collection<java.lang.String> items)
items
- A complex type that contains the HTTP methods that you want
CloudFront to process and forward to your origin.Method
public AllowedMethods withItems(Method... items)
items
- A complex type that contains the HTTP methods that you want
CloudFront to process and forward to your origin.Method
public void setCachedMethods(CachedMethods cachedMethods)
cachedMethods
- public CachedMethods getCachedMethods()
public AllowedMethods withCachedMethods(CachedMethods cachedMethods)
cachedMethods
- public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AllowedMethods clone()
clone
in class java.lang.Object