Class ResponseHeadersPolicyConfig
- java.lang.Object
-
- software.amazon.awssdk.services.cloudfront.model.ResponseHeadersPolicyConfig
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResponseHeadersPolicyConfig.Builder,ResponseHeadersPolicyConfig>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResponseHeadersPolicyConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResponseHeadersPolicyConfig.Builderbuilder()Stringcomment()A comment to describe the response headers policy.ResponseHeadersPolicyCorsConfigcorsConfig()A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).ResponseHeadersPolicyCustomHeadersConfigcustomHeadersConfig()A configuration for a set of custom HTTP response headers.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()A name to identify the response headers policy.ResponseHeadersPolicyRemoveHeadersConfigremoveHeadersConfig()A configuration for a set of HTTP headers to remove from the HTTP response.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()ResponseHeadersPolicySecurityHeadersConfigsecurityHeadersConfig()A configuration for a set of security-related HTTP response headers.static Class<? extends ResponseHeadersPolicyConfig.Builder>serializableBuilderClass()ResponseHeadersPolicyServerTimingHeadersConfigserverTimingHeadersConfig()A configuration for enabling theServer-Timingheader in HTTP responses sent from CloudFront.ResponseHeadersPolicyConfig.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
comment
public final String comment()
A comment to describe the response headers policy.
The comment cannot be longer than 128 characters.
- Returns:
- A comment to describe the response headers policy.
The comment cannot be longer than 128 characters.
-
name
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.
- Returns:
- A name to identify the response headers policy.
The name must be unique for response headers policies in this Amazon Web Services account.
-
corsConfig
public final ResponseHeadersPolicyCorsConfig corsConfig()
A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).
- Returns:
- A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).
-
securityHeadersConfig
public final ResponseHeadersPolicySecurityHeadersConfig securityHeadersConfig()
A configuration for a set of security-related HTTP response headers.
- Returns:
- A configuration for a set of security-related HTTP response headers.
-
serverTimingHeadersConfig
public final ResponseHeadersPolicyServerTimingHeadersConfig serverTimingHeadersConfig()
A configuration for enabling the
Server-Timingheader in HTTP responses sent from CloudFront.- Returns:
- A configuration for enabling the
Server-Timingheader in HTTP responses sent from CloudFront.
-
customHeadersConfig
public final ResponseHeadersPolicyCustomHeadersConfig customHeadersConfig()
A configuration for a set of custom HTTP response headers.
- Returns:
- A configuration for a set of custom HTTP response headers.
-
removeHeadersConfig
public final ResponseHeadersPolicyRemoveHeadersConfig removeHeadersConfig()
A configuration for a set of HTTP headers to remove from the HTTP response.
- Returns:
- A configuration for a set of HTTP headers to remove from the HTTP response.
-
toBuilder
public ResponseHeadersPolicyConfig.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResponseHeadersPolicyConfig.Builder,ResponseHeadersPolicyConfig>
-
builder
public static ResponseHeadersPolicyConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResponseHeadersPolicyConfig.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-