Class ResponseHeadersPolicySecurityHeadersConfig
- All Implemented Interfaces:
- Serializable,- SdkPojo,- ToCopyableBuilder<ResponseHeadersPolicySecurityHeadersConfig.Builder,- ResponseHeadersPolicySecurityHeadersConfig> 
A configuration for a set of security-related HTTP response headers. CloudFront adds these headers to HTTP responses that it sends for requests that match a cache behavior associated with this response headers policy.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interface
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()The policy directives and their values that CloudFront includes as values for theContent-Security-PolicyHTTP response header.Determines whether CloudFront includes theX-Content-Type-OptionsHTTP response header with its value set tonosniff.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.Determines whether CloudFront includes theX-Frame-OptionsHTTP response header and the header's value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()Determines whether CloudFront includes theReferrer-PolicyHTTP response header and the header's value.static Class<? extends ResponseHeadersPolicySecurityHeadersConfig.Builder> Determines whether CloudFront includes theStrict-Transport-SecurityHTTP response header and the header's value.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Determines whether CloudFront includes theX-XSS-ProtectionHTTP response header and the header's value.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuildercopy
- 
Method Details- 
xssProtectionDetermines whether CloudFront includes the X-XSS-ProtectionHTTP response header and the header's value.For more information about the X-XSS-ProtectionHTTP response header, see X-XSS-Protection in the MDN Web Docs.- Returns:
- Determines whether CloudFront includes the X-XSS-ProtectionHTTP response header and the header's value.For more information about the X-XSS-ProtectionHTTP response header, see X-XSS-Protection in the MDN Web Docs.
 
- 
frameOptionsDetermines whether CloudFront includes the X-Frame-OptionsHTTP response header and the header's value.For more information about the X-Frame-OptionsHTTP response header, see X-Frame-Options in the MDN Web Docs.- Returns:
- Determines whether CloudFront includes the X-Frame-OptionsHTTP response header and the header's value.For more information about the X-Frame-OptionsHTTP response header, see X-Frame-Options in the MDN Web Docs.
 
- 
referrerPolicyDetermines whether CloudFront includes the Referrer-PolicyHTTP response header and the header's value.For more information about the Referrer-PolicyHTTP response header, see Referrer-Policy in the MDN Web Docs.- Returns:
- Determines whether CloudFront includes the Referrer-PolicyHTTP response header and the header's value.For more information about the Referrer-PolicyHTTP response header, see Referrer-Policy in the MDN Web Docs.
 
- 
contentSecurityPolicyThe policy directives and their values that CloudFront includes as values for the Content-Security-PolicyHTTP response header.For more information about the Content-Security-PolicyHTTP response header, see Content-Security-Policy in the MDN Web Docs.- Returns:
- The policy directives and their values that CloudFront includes as values for the
         Content-Security-PolicyHTTP response header.For more information about the Content-Security-PolicyHTTP response header, see Content-Security-Policy in the MDN Web Docs.
 
- 
contentTypeOptionsDetermines whether CloudFront includes the X-Content-Type-OptionsHTTP response header with its value set tonosniff.For more information about the X-Content-Type-OptionsHTTP response header, see X-Content-Type-Options in the MDN Web Docs.- Returns:
- Determines whether CloudFront includes the X-Content-Type-OptionsHTTP response header with its value set tonosniff.For more information about the X-Content-Type-OptionsHTTP response header, see X-Content-Type-Options in the MDN Web Docs.
 
- 
strictTransportSecurityDetermines whether CloudFront includes the Strict-Transport-SecurityHTTP response header and the header's value.For more information about the Strict-Transport-SecurityHTTP response header, see Security headers in the Amazon CloudFront Developer Guide and Strict-Transport-Security in the MDN Web Docs.- Returns:
- Determines whether CloudFront includes the Strict-Transport-SecurityHTTP response header and the header's value.For more information about the Strict-Transport-SecurityHTTP response header, see Security headers in the Amazon CloudFront Developer Guide and Strict-Transport-Security in the MDN Web Docs.
 
- 
toBuilderDescription copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToCopyableBuilder<ResponseHeadersPolicySecurityHeadersConfig.Builder,- ResponseHeadersPolicySecurityHeadersConfig> 
- Returns:
- a builder for type T
 
- 
builder
- 
serializableBuilderClasspublic static Class<? extends ResponseHeadersPolicySecurityHeadersConfig.Builder> serializableBuilderClass()
- 
hashCode
- 
equals
- 
equalsBySdkFieldsDescription copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
- equalsBySdkFieldsin interface- SdkPojo
- Parameters:
- obj- the object to be compared with
- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
 
- 
toString
- 
getValueForField
- 
sdkFields
 
-