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