Interface ResponseHeadersPolicySecurityHeadersConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ResponseHeadersPolicySecurityHeadersConfig.Builder,
,ResponseHeadersPolicySecurityHeadersConfig> SdkBuilder<ResponseHeadersPolicySecurityHeadersConfig.Builder,
,ResponseHeadersPolicySecurityHeadersConfig> SdkPojo
- Enclosing class:
ResponseHeadersPolicySecurityHeadersConfig
-
Method Summary
Modifier and TypeMethodDescriptioncontentSecurityPolicy
(Consumer<ResponseHeadersPolicyContentSecurityPolicy.Builder> contentSecurityPolicy) The policy directives and their values that CloudFront includes as values for theContent-Security-Policy
HTTP response header.contentSecurityPolicy
(ResponseHeadersPolicyContentSecurityPolicy contentSecurityPolicy) The policy directives and their values that CloudFront includes as values for theContent-Security-Policy
HTTP response header.contentTypeOptions
(Consumer<ResponseHeadersPolicyContentTypeOptions.Builder> contentTypeOptions) Determines whether CloudFront includes theX-Content-Type-Options
HTTP response header with its value set tonosniff
.contentTypeOptions
(ResponseHeadersPolicyContentTypeOptions contentTypeOptions) Determines whether CloudFront includes theX-Content-Type-Options
HTTP response header with its value set tonosniff
.frameOptions
(Consumer<ResponseHeadersPolicyFrameOptions.Builder> frameOptions) Determines whether CloudFront includes theX-Frame-Options
HTTP response header and the header's value.frameOptions
(ResponseHeadersPolicyFrameOptions frameOptions) Determines whether CloudFront includes theX-Frame-Options
HTTP response header and the header's value.referrerPolicy
(Consumer<ResponseHeadersPolicyReferrerPolicy.Builder> referrerPolicy) Determines whether CloudFront includes theReferrer-Policy
HTTP response header and the header's value.referrerPolicy
(ResponseHeadersPolicyReferrerPolicy referrerPolicy) Determines whether CloudFront includes theReferrer-Policy
HTTP response header and the header's value.strictTransportSecurity
(Consumer<ResponseHeadersPolicyStrictTransportSecurity.Builder> strictTransportSecurity) Determines whether CloudFront includes theStrict-Transport-Security
HTTP response header and the header's value.strictTransportSecurity
(ResponseHeadersPolicyStrictTransportSecurity strictTransportSecurity) Determines whether CloudFront includes theStrict-Transport-Security
HTTP response header and the header's value.xssProtection
(Consumer<ResponseHeadersPolicyXSSProtection.Builder> xssProtection) Determines whether CloudFront includes theX-XSS-Protection
HTTP response header and the header's value.xssProtection
(ResponseHeadersPolicyXSSProtection xssProtection) Determines whether CloudFront includes theX-XSS-Protection
HTTP response header and the header's value.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
xssProtection
ResponseHeadersPolicySecurityHeadersConfig.Builder xssProtection(ResponseHeadersPolicyXSSProtection 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.- Parameters:
xssProtection
- Determines whether CloudFront includes theX-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:
- Returns a reference to this object so that method calls can be chained together.
-
xssProtection
default ResponseHeadersPolicySecurityHeadersConfig.Builder xssProtection(Consumer<ResponseHeadersPolicyXSSProtection.Builder> xssProtection) Determines whether CloudFront includes the
X-XSS-Protection
HTTP response header and the header's value.For more information about the
This is a convenience method that creates an instance of theX-XSS-Protection
HTTP response header, see X-XSS-Protection in the MDN Web Docs.ResponseHeadersPolicyXSSProtection.Builder
avoiding the need to create one manually viaResponseHeadersPolicyXSSProtection.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toxssProtection(ResponseHeadersPolicyXSSProtection)
.- Parameters:
xssProtection
- a consumer that will call methods onResponseHeadersPolicyXSSProtection.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
frameOptions
ResponseHeadersPolicySecurityHeadersConfig.Builder frameOptions(ResponseHeadersPolicyFrameOptions 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.- Parameters:
frameOptions
- Determines whether CloudFront includes theX-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:
- Returns a reference to this object so that method calls can be chained together.
-
frameOptions
default ResponseHeadersPolicySecurityHeadersConfig.Builder frameOptions(Consumer<ResponseHeadersPolicyFrameOptions.Builder> frameOptions) Determines whether CloudFront includes the
X-Frame-Options
HTTP response header and the header's value.For more information about the
This is a convenience method that creates an instance of theX-Frame-Options
HTTP response header, see X-Frame-Options in the MDN Web Docs.ResponseHeadersPolicyFrameOptions.Builder
avoiding the need to create one manually viaResponseHeadersPolicyFrameOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toframeOptions(ResponseHeadersPolicyFrameOptions)
.- Parameters:
frameOptions
- a consumer that will call methods onResponseHeadersPolicyFrameOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
referrerPolicy
ResponseHeadersPolicySecurityHeadersConfig.Builder referrerPolicy(ResponseHeadersPolicyReferrerPolicy 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.- Parameters:
referrerPolicy
- Determines whether CloudFront includes theReferrer-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:
- Returns a reference to this object so that method calls can be chained together.
-
referrerPolicy
default ResponseHeadersPolicySecurityHeadersConfig.Builder referrerPolicy(Consumer<ResponseHeadersPolicyReferrerPolicy.Builder> referrerPolicy) Determines whether CloudFront includes the
Referrer-Policy
HTTP response header and the header's value.For more information about the
This is a convenience method that creates an instance of theReferrer-Policy
HTTP response header, see Referrer-Policy in the MDN Web Docs.ResponseHeadersPolicyReferrerPolicy.Builder
avoiding the need to create one manually viaResponseHeadersPolicyReferrerPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toreferrerPolicy(ResponseHeadersPolicyReferrerPolicy)
.- Parameters:
referrerPolicy
- a consumer that will call methods onResponseHeadersPolicyReferrerPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contentSecurityPolicy
ResponseHeadersPolicySecurityHeadersConfig.Builder contentSecurityPolicy(ResponseHeadersPolicyContentSecurityPolicy 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.- Parameters:
contentSecurityPolicy
- The policy directives and their values that CloudFront includes as values for theContent-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:
- Returns a reference to this object so that method calls can be chained together.
-
contentSecurityPolicy
default ResponseHeadersPolicySecurityHeadersConfig.Builder contentSecurityPolicy(Consumer<ResponseHeadersPolicyContentSecurityPolicy.Builder> 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
This is a convenience method that creates an instance of theContent-Security-Policy
HTTP response header, see Content-Security-Policy in the MDN Web Docs.ResponseHeadersPolicyContentSecurityPolicy.Builder
avoiding the need to create one manually viaResponseHeadersPolicyContentSecurityPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontentSecurityPolicy(ResponseHeadersPolicyContentSecurityPolicy)
.- Parameters:
contentSecurityPolicy
- a consumer that will call methods onResponseHeadersPolicyContentSecurityPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contentTypeOptions
ResponseHeadersPolicySecurityHeadersConfig.Builder contentTypeOptions(ResponseHeadersPolicyContentTypeOptions 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.- Parameters:
contentTypeOptions
- Determines whether CloudFront includes theX-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:
- Returns a reference to this object so that method calls can be chained together.
-
contentTypeOptions
default ResponseHeadersPolicySecurityHeadersConfig.Builder contentTypeOptions(Consumer<ResponseHeadersPolicyContentTypeOptions.Builder> contentTypeOptions) Determines whether CloudFront includes the
X-Content-Type-Options
HTTP response header with its value set tonosniff
.For more information about the
This is a convenience method that creates an instance of theX-Content-Type-Options
HTTP response header, see X-Content-Type-Options in the MDN Web Docs.ResponseHeadersPolicyContentTypeOptions.Builder
avoiding the need to create one manually viaResponseHeadersPolicyContentTypeOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontentTypeOptions(ResponseHeadersPolicyContentTypeOptions)
.- Parameters:
contentTypeOptions
- a consumer that will call methods onResponseHeadersPolicyContentTypeOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
strictTransportSecurity
ResponseHeadersPolicySecurityHeadersConfig.Builder strictTransportSecurity(ResponseHeadersPolicyStrictTransportSecurity 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 Strict-Transport-Security in the MDN Web Docs.- Parameters:
strictTransportSecurity
- Determines whether CloudFront includes theStrict-Transport-Security
HTTP response header and the header's value.For more information about the
Strict-Transport-Security
HTTP response header, see Strict- Transport-Security in the MDN Web Docs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
strictTransportSecurity
default ResponseHeadersPolicySecurityHeadersConfig.Builder strictTransportSecurity(Consumer<ResponseHeadersPolicyStrictTransportSecurity.Builder> strictTransportSecurity) Determines whether CloudFront includes the
Strict-Transport-Security
HTTP response header and the header's value.For more information about the
This is a convenience method that creates an instance of theStrict-Transport-Security
HTTP response header, see Strict-Transport-Security in the MDN Web Docs.ResponseHeadersPolicyStrictTransportSecurity.Builder
avoiding the need to create one manually viaResponseHeadersPolicyStrictTransportSecurity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostrictTransportSecurity(ResponseHeadersPolicyStrictTransportSecurity)
.- Parameters:
strictTransportSecurity
- a consumer that will call methods onResponseHeadersPolicyStrictTransportSecurity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-