@Generated(value="software.amazon.awssdk:codegen") public final class ResponseHeadersPolicyConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResponseHeadersPolicyConfig.Builder,ResponseHeadersPolicyConfig>
A response headers policy configuration.
A response headers policy configuration contains metadata about the response headers policy, and configurations for sets of HTTP response headers.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ResponseHeadersPolicyConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ResponseHeadersPolicyConfig.Builder |
builder() |
String |
comment()
A comment to describe the response headers policy.
|
ResponseHeadersPolicyCorsConfig |
corsConfig()
A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).
|
ResponseHeadersPolicyCustomHeadersConfig |
customHeadersConfig()
A configuration for a set of custom HTTP response headers.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
A name to identify the response headers policy.
|
ResponseHeadersPolicyRemoveHeadersConfig |
removeHeadersConfig()
A configuration for a set of HTTP headers to remove from the HTTP response.
|
List<SdkField<?>> |
sdkFields() |
ResponseHeadersPolicySecurityHeadersConfig |
securityHeadersConfig()
A configuration for a set of security-related HTTP response headers.
|
static Class<? extends ResponseHeadersPolicyConfig.Builder> |
serializableBuilderClass() |
ResponseHeadersPolicyServerTimingHeadersConfig |
serverTimingHeadersConfig()
A configuration for enabling the
Server-Timing header in HTTP responses sent from CloudFront. |
ResponseHeadersPolicyConfig.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String comment()
A comment to describe the response headers policy.
The comment cannot be longer than 128 characters.
The comment cannot be longer than 128 characters.
public final String name()
A name to identify the response headers policy.
The name must be unique for response headers policies in this Amazon Web Services account.
The name must be unique for response headers policies in this Amazon Web Services account.
public final ResponseHeadersPolicyCorsConfig corsConfig()
A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).
public final ResponseHeadersPolicySecurityHeadersConfig securityHeadersConfig()
A configuration for a set of security-related HTTP response headers.
public final ResponseHeadersPolicyServerTimingHeadersConfig serverTimingHeadersConfig()
A configuration for enabling the Server-Timing header in HTTP responses sent from CloudFront.
Server-Timing header in HTTP responses sent from
CloudFront.public final ResponseHeadersPolicyCustomHeadersConfig customHeadersConfig()
A configuration for a set of custom HTTP response headers.
public final ResponseHeadersPolicyRemoveHeadersConfig removeHeadersConfig()
A configuration for a set of HTTP headers to remove from the HTTP response.
public ResponseHeadersPolicyConfig.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ResponseHeadersPolicyConfig.Builder,ResponseHeadersPolicyConfig>public static ResponseHeadersPolicyConfig.Builder builder()
public static Class<? extends ResponseHeadersPolicyConfig.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.