@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResponseHeadersPolicyCustomHeadersConfig extends Object implements Serializable, Cloneable
A list of HTTP response header names and their values. CloudFront includes these headers in HTTP responses that it sends for requests that match a cache behavior that’s associated with this response headers policy.
Constructor and Description |
---|
ResponseHeadersPolicyCustomHeadersConfig() |
Modifier and Type | Method and Description |
---|---|
ResponseHeadersPolicyCustomHeadersConfig |
clone() |
boolean |
equals(Object obj) |
List<ResponseHeadersPolicyCustomHeader> |
getItems()
The list of HTTP response headers and their values.
|
Integer |
getQuantity()
The number of HTTP response headers in the list.
|
int |
hashCode() |
void |
setItems(Collection<ResponseHeadersPolicyCustomHeader> items)
The list of HTTP response headers and their values.
|
void |
setQuantity(Integer quantity)
The number of HTTP response headers in the list.
|
String |
toString()
Returns a string representation of this object.
|
ResponseHeadersPolicyCustomHeadersConfig |
withItems(Collection<ResponseHeadersPolicyCustomHeader> items)
The list of HTTP response headers and their values.
|
ResponseHeadersPolicyCustomHeadersConfig |
withItems(ResponseHeadersPolicyCustomHeader... items)
The list of HTTP response headers and their values.
|
ResponseHeadersPolicyCustomHeadersConfig |
withQuantity(Integer quantity)
The number of HTTP response headers in the list.
|
public ResponseHeadersPolicyCustomHeadersConfig()
public void setQuantity(Integer quantity)
The number of HTTP response headers in the list.
quantity
- The number of HTTP response headers in the list.public Integer getQuantity()
The number of HTTP response headers in the list.
public ResponseHeadersPolicyCustomHeadersConfig withQuantity(Integer quantity)
The number of HTTP response headers in the list.
quantity
- The number of HTTP response headers in the list.public List<ResponseHeadersPolicyCustomHeader> getItems()
The list of HTTP response headers and their values.
public void setItems(Collection<ResponseHeadersPolicyCustomHeader> items)
The list of HTTP response headers and their values.
items
- The list of HTTP response headers and their values.public ResponseHeadersPolicyCustomHeadersConfig withItems(ResponseHeadersPolicyCustomHeader... items)
The list of HTTP response headers and their values.
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
- The list of HTTP response headers and their values.public ResponseHeadersPolicyCustomHeadersConfig withItems(Collection<ResponseHeadersPolicyCustomHeader> items)
The list of HTTP response headers and their values.
items
- The list of HTTP response headers and their values.public String toString()
toString
in class Object
Object.toString()
public ResponseHeadersPolicyCustomHeadersConfig clone()