@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OriginGroups extends Object implements Serializable, Cloneable
A complex data type for the origin groups specified for a distribution.
Constructor and Description |
---|
OriginGroups() |
Modifier and Type | Method and Description |
---|---|
OriginGroups |
clone() |
boolean |
equals(Object obj) |
List<OriginGroup> |
getItems()
The items (origin groups) in a distribution.
|
Integer |
getQuantity()
The number of origin groups.
|
int |
hashCode() |
void |
setItems(Collection<OriginGroup> items)
The items (origin groups) in a distribution.
|
void |
setQuantity(Integer quantity)
The number of origin groups.
|
String |
toString()
Returns a string representation of this object.
|
OriginGroups |
withItems(Collection<OriginGroup> items)
The items (origin groups) in a distribution.
|
OriginGroups |
withItems(OriginGroup... items)
The items (origin groups) in a distribution.
|
OriginGroups |
withQuantity(Integer quantity)
The number of origin groups.
|
public void setQuantity(Integer quantity)
The number of origin groups.
quantity
- The number of origin groups.public Integer getQuantity()
The number of origin groups.
public OriginGroups withQuantity(Integer quantity)
The number of origin groups.
quantity
- The number of origin groups.public List<OriginGroup> getItems()
The items (origin groups) in a distribution.
public void setItems(Collection<OriginGroup> items)
The items (origin groups) in a distribution.
items
- The items (origin groups) in a distribution.public OriginGroups withItems(OriginGroup... items)
The items (origin groups) in a distribution.
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
- The items (origin groups) in a distribution.public OriginGroups withItems(Collection<OriginGroup> items)
The items (origin groups) in a distribution.
items
- The items (origin groups) in a distribution.public String toString()
toString
in class Object
Object.toString()
public OriginGroups clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.