Class ResponseHeadersPolicyConfig
- All Implemented Interfaces:
Serializable,SdkPojo,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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final Stringcomment()A comment to describe the response headers policy.A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).A configuration for a set of custom HTTP response headers.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringname()A name to identify the response headers policy.A configuration for a set of HTTP headers to remove from the HTTP response.A configuration for a set of security-related HTTP response headers.static Class<? extends ResponseHeadersPolicyConfig.Builder>A configuration for enabling theServer-Timingheader in HTTP responses sent from CloudFront.final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
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
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
A configuration for a set of security-related HTTP response headers.
- Returns:
- A configuration for a set of security-related HTTP response headers.
-
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
A configuration for a set of custom HTTP response headers.
- Returns:
- A configuration for a set of custom HTTP response headers.
-
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
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResponseHeadersPolicyConfig.Builder,ResponseHeadersPolicyConfig>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-