@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CacheBehaviors extends Object implements Serializable, Cloneable
A complex type that contains zero or more CacheBehavior
elements.
Constructor and Description |
---|
CacheBehaviors() |
Modifier and Type | Method and Description |
---|---|
CacheBehaviors |
clone() |
boolean |
equals(Object obj) |
List<CacheBehavior> |
getItems()
Optional: A complex type that contains cache behaviors for this distribution.
|
Integer |
getQuantity()
The number of cache behaviors for this distribution.
|
int |
hashCode() |
void |
setItems(Collection<CacheBehavior> items)
Optional: A complex type that contains cache behaviors for this distribution.
|
void |
setQuantity(Integer quantity)
The number of cache behaviors for this distribution.
|
String |
toString()
Returns a string representation of this object.
|
CacheBehaviors |
withItems(CacheBehavior... items)
Optional: A complex type that contains cache behaviors for this distribution.
|
CacheBehaviors |
withItems(Collection<CacheBehavior> items)
Optional: A complex type that contains cache behaviors for this distribution.
|
CacheBehaviors |
withQuantity(Integer quantity)
The number of cache behaviors for this distribution.
|
public void setQuantity(Integer quantity)
The number of cache behaviors for this distribution.
quantity
- The number of cache behaviors for this distribution.public Integer getQuantity()
The number of cache behaviors for this distribution.
public CacheBehaviors withQuantity(Integer quantity)
The number of cache behaviors for this distribution.
quantity
- The number of cache behaviors for this distribution.public List<CacheBehavior> getItems()
Optional: A complex type that contains cache behaviors for this distribution. If Quantity
is
0
, you can omit Items
.
Quantity
is
0
, you can omit Items
.public void setItems(Collection<CacheBehavior> items)
Optional: A complex type that contains cache behaviors for this distribution. If Quantity
is
0
, you can omit Items
.
items
- Optional: A complex type that contains cache behaviors for this distribution. If Quantity
is
0
, you can omit Items
.public CacheBehaviors withItems(CacheBehavior... items)
Optional: A complex type that contains cache behaviors for this distribution. If Quantity
is
0
, you can omit 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
- Optional: A complex type that contains cache behaviors for this distribution. If Quantity
is
0
, you can omit Items
.public CacheBehaviors withItems(Collection<CacheBehavior> items)
Optional: A complex type that contains cache behaviors for this distribution. If Quantity
is
0
, you can omit Items
.
items
- Optional: A complex type that contains cache behaviors for this distribution. If Quantity
is
0
, you can omit Items
.public String toString()
toString
in class Object
Object.toString()
public CacheBehaviors clone()