public class CachedMethods
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
items
A complex type that contains the HTTP methods that you want CloudFront to
cache responses to.
|
private java.lang.Integer |
quantity
The number of HTTP methods for which you want CloudFront to cache
responses.
|
Constructor and Description |
---|
CachedMethods() |
Modifier and Type | Method and Description |
---|---|
CachedMethods |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getItems()
A complex type that contains the HTTP methods that you want CloudFront to
cache responses to.
|
java.lang.Integer |
getQuantity()
The number of HTTP methods for which you want CloudFront to cache
responses.
|
int |
hashCode() |
void |
setItems(java.util.Collection<java.lang.String> items)
A complex type that contains the HTTP methods that you want CloudFront to
cache responses to.
|
void |
setQuantity(java.lang.Integer quantity)
The number of HTTP methods for which you want CloudFront to cache
responses.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CachedMethods |
withItems(java.util.Collection<java.lang.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(java.lang.String... items)
A complex type that contains the HTTP methods that you want CloudFront to
cache responses to.
|
CachedMethods |
withQuantity(java.lang.Integer quantity)
The number of HTTP methods for which you want CloudFront to cache
responses.
|
private java.lang.Integer quantity
private SdkInternalList<java.lang.String> items
public void setQuantity(java.lang.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 java.lang.Integer getQuantity()
public CachedMethods withQuantity(java.lang.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 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 cache responses to.Method
public CachedMethods 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 cache responses to.Method
public CachedMethods withItems(java.util.Collection<java.lang.String> items)
items
- A complex type that contains the HTTP methods that you want
CloudFront to cache responses to.Method
public CachedMethods withItems(Method... items)
items
- A complex type that contains the HTTP methods that you want
CloudFront to cache responses to.Method
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 CachedMethods clone()
clone
in class java.lang.Object