public class Headers
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
items
Optional: A complex type that contains a Name element for each header
that you want CloudFront to forward to the origin and to vary on for this
cache behavior.
|
private java.lang.Integer |
quantity
The number of different headers that you want CloudFront to forward to
the origin and to vary on for this cache behavior.
|
Constructor and Description |
---|
Headers() |
Modifier and Type | Method and Description |
---|---|
Headers |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getItems()
Optional: A complex type that contains a Name element for each header
that you want CloudFront to forward to the origin and to vary on for this
cache behavior.
|
java.lang.Integer |
getQuantity()
The number of different headers that you want CloudFront to forward to
the origin and to vary on for this cache behavior.
|
int |
hashCode() |
void |
setItems(java.util.Collection<java.lang.String> items)
Optional: A complex type that contains a Name element for each header
that you want CloudFront to forward to the origin and to vary on for this
cache behavior.
|
void |
setQuantity(java.lang.Integer quantity)
The number of different headers that you want CloudFront to forward to
the origin and to vary on for this cache behavior.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Headers |
withItems(java.util.Collection<java.lang.String> items)
Optional: A complex type that contains a Name element for each header
that you want CloudFront to forward to the origin and to vary on for this
cache behavior.
|
Headers |
withItems(java.lang.String... items)
Optional: A complex type that contains a Name element for each header
that you want CloudFront to forward to the origin and to vary on for this
cache behavior.
|
Headers |
withQuantity(java.lang.Integer quantity)
The number of different headers that you want CloudFront to forward to
the origin and to vary on for this cache behavior.
|
private java.lang.Integer quantity
private SdkInternalList<java.lang.String> items
public void setQuantity(java.lang.Integer quantity)
quantity
- The number of different headers that you want CloudFront to
forward to the origin and to vary on for this cache behavior. The
maximum number of headers that you can specify by name is 10. If
you want CloudFront to forward all headers to the origin and vary
on all of them, specify 1 for Quantity and * for Name. If you
don't want CloudFront to forward any additional headers to the
origin or to vary on any headers, specify 0 for Quantity and omit
Items.public java.lang.Integer getQuantity()
public Headers withQuantity(java.lang.Integer quantity)
quantity
- The number of different headers that you want CloudFront to
forward to the origin and to vary on for this cache behavior. The
maximum number of headers that you can specify by name is 10. If
you want CloudFront to forward all headers to the origin and vary
on all of them, specify 1 for Quantity and * for Name. If you
don't want CloudFront to forward any additional headers to the
origin or to vary on any headers, specify 0 for Quantity and omit
Items.public java.util.List<java.lang.String> getItems()
public void setItems(java.util.Collection<java.lang.String> items)
items
- Optional: A complex type that contains a Name element for each
header that you want CloudFront to forward to the origin and to
vary on for this cache behavior. If Quantity is 0, omit Items.public Headers withItems(java.lang.String... 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 complex type that contains a Name element for each
header that you want CloudFront to forward to the origin and to
vary on for this cache behavior. If Quantity is 0, omit Items.public Headers withItems(java.util.Collection<java.lang.String> items)
items
- Optional: A complex type that contains a Name element for each
header that you want CloudFront to forward to the origin and to
vary on for this cache behavior. If Quantity is 0, omit Items.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 Headers clone()
clone
in class java.lang.Object