@Generated(value="software.amazon.awssdk:codegen") public final class CustomHeaders extends Object implements SdkPojo, Serializable, 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) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasItems()
Returns true if the Items property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
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.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CustomHeaders.Builder> |
serializableBuilderClass() |
CustomHeaders.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic Integer quantity()
The number of custom headers, if any, for this distribution.
public boolean hasItems()
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.
You can use hasItems() to see if a value was sent in this field.
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()
toBuilder in interface ToCopyableBuilder<CustomHeaders.Builder,CustomHeaders>public static CustomHeaders.Builder builder()
public static Class<? extends CustomHeaders.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.