Class CustomHeaders
- java.lang.Object
-
- com.amazonaws.services.cloudfront.model.CustomHeaders
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class CustomHeaders extends Object implements Serializable, Cloneable
A complex type that contains the list of Custom Headers for each origin.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CustomHeaders()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomHeaders
clone()
boolean
equals(Object obj)
List<OriginCustomHeader>
getItems()
A complex type that contains the custom headers for this Origin.Integer
getQuantity()
The number of custom headers for this origin.int
hashCode()
void
setItems(Collection<OriginCustomHeader> items)
A complex type that contains the custom headers for this Origin.void
setQuantity(Integer quantity)
The number of custom headers for this origin.String
toString()
Returns a string representation of this object; useful for testing and debugging.CustomHeaders
withItems(OriginCustomHeader... items)
A complex type that contains the custom headers for this Origin.CustomHeaders
withItems(Collection<OriginCustomHeader> items)
A complex type that contains the custom headers for this Origin.CustomHeaders
withQuantity(Integer quantity)
The number of custom headers for this origin.
-
-
-
Method Detail
-
setQuantity
public void setQuantity(Integer quantity)
The number of custom headers for this origin.- Parameters:
quantity
- The number of custom headers for this origin.
-
getQuantity
public Integer getQuantity()
The number of custom headers for this origin.- Returns:
- The number of custom headers for this origin.
-
withQuantity
public CustomHeaders withQuantity(Integer quantity)
The number of custom headers for this origin.- Parameters:
quantity
- The number of custom headers for this origin.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getItems
public List<OriginCustomHeader> getItems()
A complex type that contains the custom headers for this Origin.- Returns:
- A complex type that contains the custom headers for this Origin.
-
setItems
public void setItems(Collection<OriginCustomHeader> items)
A complex type that contains the custom headers for this Origin.- Parameters:
items
- A complex type that contains the custom headers for this Origin.
-
withItems
public CustomHeaders withItems(OriginCustomHeader... items)
A complex type that contains the custom headers for this Origin.NOTE: This method appends the values to the existing list (if any). Use
setItems(java.util.Collection)
orwithItems(java.util.Collection)
if you want to override the existing values.- Parameters:
items
- A complex type that contains the custom headers for this Origin.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withItems
public CustomHeaders withItems(Collection<OriginCustomHeader> items)
A complex type that contains the custom headers for this Origin.- Parameters:
items
- A complex type that contains the custom headers for this Origin.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CustomHeaders clone()
-
-