@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CustomHeaders extends Object implements Serializable, Cloneable
A complex type that contains the list of Custom Headers for each origin.
Constructor and Description |
---|
CustomHeaders() |
Modifier and Type | Method and Description |
---|---|
CustomHeaders |
clone() |
boolean |
equals(Object obj) |
List<OriginCustomHeader> |
getItems()
Optional: A list that contains one
OriginCustomHeader element for each custom header that you
want CloudFront to forward to the origin. |
Integer |
getQuantity()
The number of custom headers, if any, for this distribution.
|
int |
hashCode() |
void |
setItems(Collection<OriginCustomHeader> items)
Optional: A list that contains one
OriginCustomHeader element for each custom header that you
want CloudFront to forward to the origin. |
void |
setQuantity(Integer quantity)
The number of custom headers, if any, for this distribution.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CustomHeaders |
withItems(Collection<OriginCustomHeader> items)
Optional: A list that contains one
OriginCustomHeader element for each custom header that you
want CloudFront to forward to the origin. |
CustomHeaders |
withItems(OriginCustomHeader... items)
Optional: A list that contains one
OriginCustomHeader element for each custom header that you
want CloudFront to forward to the origin. |
CustomHeaders |
withQuantity(Integer quantity)
The number of custom headers, if any, for this distribution.
|
public void setQuantity(Integer quantity)
The number of custom headers, if any, for this distribution.
quantity
- The number of custom headers, if any, for this distribution.public Integer getQuantity()
The number of custom headers, if any, for this distribution.
public CustomHeaders withQuantity(Integer quantity)
The number of custom headers, if any, for this distribution.
quantity
- The number of custom headers, if any, for this distribution.public List<OriginCustomHeader> getItems()
Optional: A list that contains one OriginCustomHeader
element for each custom header that you
want CloudFront to forward to the origin. If Quantity is 0
, omit Items
.
OriginCustomHeader
element for each custom header
that you want CloudFront to forward to the origin. If Quantity is 0
, omit Items
.public void setItems(Collection<OriginCustomHeader> items)
Optional: A list that contains one OriginCustomHeader
element for each custom header that you
want CloudFront to forward to the origin. If Quantity is 0
, omit Items
.
items
- Optional: A list that contains one OriginCustomHeader
element for each custom header
that you want CloudFront to forward to the origin. If Quantity is 0
, omit Items
.public CustomHeaders withItems(OriginCustomHeader... items)
Optional: A list that contains one OriginCustomHeader
element for each custom header that you
want CloudFront to forward to the origin. If Quantity is 0
, omit 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
- Optional: A list that contains one OriginCustomHeader
element for each custom header
that you want CloudFront to forward to the origin. If Quantity is 0
, omit Items
.public CustomHeaders withItems(Collection<OriginCustomHeader> items)
Optional: A list that contains one OriginCustomHeader
element for each custom header that you
want CloudFront to forward to the origin. If Quantity is 0
, omit Items
.
items
- Optional: A list that contains one OriginCustomHeader
element for each custom header
that you want CloudFront to forward to the origin. If Quantity is 0
, omit Items
.public String toString()
toString
in class Object
Object.toString()
public CustomHeaders clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.