@Generated(value="software.amazon.awssdk:codegen") public final class OriginCustomHeader extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OriginCustomHeader.Builder,OriginCustomHeader>
A complex type that contains HeaderName and HeaderValue elements, if any, for this
distribution.
| Modifier and Type | Class and Description |
|---|---|
static interface |
OriginCustomHeader.Builder |
| Modifier and Type | Method and Description |
|---|---|
static OriginCustomHeader.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
headerName()
The name of a header that you want CloudFront to send to your origin.
|
String |
headerValue()
The value for the header that you specified in the
HeaderName field. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends OriginCustomHeader.Builder> |
serializableBuilderClass() |
OriginCustomHeader.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String headerName()
The name of a header that you want CloudFront to send to your origin. For more information, see Adding Custom Headers to Origin Requests in the Amazon CloudFront Developer Guide.
public final String headerValue()
The value for the header that you specified in the HeaderName field.
HeaderName field.public OriginCustomHeader.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<OriginCustomHeader.Builder,OriginCustomHeader>public static OriginCustomHeader.Builder builder()
public static Class<? extends OriginCustomHeader.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.