Class CustomHeaders
java.lang.Object
com.amazonaws.services.cloudfront.model.CustomHeaders
- All Implemented Interfaces:
Serializable,Cloneable
A complex type that contains the list of Custom Headers for each origin.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleangetItems()A complex type that contains the custom headers for this Origin.The number of custom headers for this origin.inthashCode()voidsetItems(Collection<OriginCustomHeader> items) A complex type that contains the custom headers for this Origin.voidsetQuantity(Integer quantity) The number of custom headers for this origin.toString()Returns a string representation of this object; useful for testing and debugging.withItems(OriginCustomHeader... items) A complex type that contains the custom headers for this Origin.withItems(Collection<OriginCustomHeader> items) A complex type that contains the custom headers for this Origin.withQuantity(Integer quantity) The number of custom headers for this origin.
-
Constructor Details
-
CustomHeaders
public CustomHeaders()
-
-
Method Details
-
setQuantity
The number of custom headers for this origin.- Parameters:
quantity- The number of custom headers for this origin.
-
getQuantity
The number of custom headers for this origin.- Returns:
- The number of custom headers for this origin.
-
withQuantity
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
A complex type that contains the custom headers for this Origin.- Returns:
- A complex type that contains the custom headers for this Origin.
-
setItems
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-