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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The policy directives and their values that CloudFront includes as values for theContent-Security-Policy
HTTP response header.Determines whether CloudFront includes theX-Content-Type-Options
HTTP response header with its value set tonosniff
.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.Determines whether CloudFront includes theX-Frame-Options
HTTP response header and the header's value.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
Determines whether CloudFront includes theReferrer-Policy
HTTP response header and the header's value.static Class
<? extends ResponseHeadersPolicySecurityHeadersConfig.Builder> Determines whether CloudFront includes theStrict-Transport-Security
HTTP 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 String
toString()
Returns a string representation of this object.Determines whether CloudFront includes theX-XSS-Protection
HTTP response header and the header's value.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
xssProtection
Determines whether CloudFront includes the
X-XSS-Protection
HTTP response header and the header's value.For more information about the
X-XSS-Protection
HTTP response header, see X-XSS-Protection in the MDN Web Docs.- Returns:
- Determines whether CloudFront includes the
X-XSS-Protection
HTTP response header and the header's value.For more information about the
X-XSS-Protection
HTTP response header, see X-XSS-Protection in the MDN Web Docs.
-
frameOptions
Determines whether CloudFront includes the
X-Frame-Options
HTTP response header and the header's value.For more information about the
X-Frame-Options
HTTP response header, see X-Frame-Options in the MDN Web Docs.- Returns:
- Determines whether CloudFront includes the
X-Frame-Options
HTTP response header and the header's value.For more information about the
X-Frame-Options
HTTP response header, see X-Frame-Options in the MDN Web Docs.
-
referrerPolicy
Determines whether CloudFront includes the
Referrer-Policy
HTTP response header and the header's value.For more information about the
Referrer-Policy
HTTP response header, see Referrer-Policy in the MDN Web Docs.- Returns:
- Determines whether CloudFront includes the
Referrer-Policy
HTTP response header and the header's value.For more information about the
Referrer-Policy
HTTP response header, see Referrer-Policy in the MDN Web Docs.
-
contentSecurityPolicy
The policy directives and their values that CloudFront includes as values for the
Content-Security-Policy
HTTP response header.For more information about the
Content-Security-Policy
HTTP 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-Policy
HTTP response header.For more information about the
Content-Security-Policy
HTTP response header, see Content-Security-Policy in the MDN Web Docs.
-
contentTypeOptions
Determines whether CloudFront includes the
X-Content-Type-Options
HTTP response header with its value set tonosniff
.For more information about the
X-Content-Type-Options
HTTP response header, see X-Content-Type-Options in the MDN Web Docs.- Returns:
- Determines whether CloudFront includes the
X-Content-Type-Options
HTTP response header with its value set tonosniff
.For more information about the
X-Content-Type-Options
HTTP response header, see X-Content-Type-Options in the MDN Web Docs.
-
strictTransportSecurity
Determines whether CloudFront includes the
Strict-Transport-Security
HTTP response header and the header's value.For more information about the
Strict-Transport-Security
HTTP 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-Security
HTTP response header and the header's value.For more information about the
Strict-Transport-Security
HTTP response header, see Security headers in the Amazon CloudFront Developer Guide and Strict-Transport-Security in the MDN Web Docs.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<ResponseHeadersPolicySecurityHeadersConfig.Builder,
ResponseHeadersPolicySecurityHeadersConfig> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
public static Class<? extends ResponseHeadersPolicySecurityHeadersConfig.Builder> serializableBuilderClass() -
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- 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
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-