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