@Generated(value="software.amazon.awssdk:codegen") public final class CustomHeaders extends Object implements ToCopyableBuilder<CustomHeaders.Builder,CustomHeaders>
A complex type that contains the list of Custom Headers for each origin.
Modifier and Type | Class and Description |
---|---|
static interface |
CustomHeaders.Builder |
Modifier and Type | Method and Description |
---|---|
static CustomHeaders.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<OriginCustomHeader> |
items()
Optional: A list that contains one
OriginCustomHeader element for each custom header that you
want CloudFront to forward to the origin. |
Integer |
quantity()
The number of custom headers, if any, for this distribution.
|
static Class<? extends CustomHeaders.Builder> |
serializableBuilderClass() |
CustomHeaders.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public Integer quantity()
The number of custom headers, if any, for this distribution.
public List<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
.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
OriginCustomHeader
element for each custom header
that you want CloudFront to forward to the origin. If Quantity is 0
, omit Items
.public CustomHeaders.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CustomHeaders.Builder,CustomHeaders>
public static CustomHeaders.Builder builder()
public static Class<? extends CustomHeaders.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.