Struct aws_sdk_cloudfront::model::response_headers_policy_strict_transport_security::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ResponseHeadersPolicyStrictTransportSecurity
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn override(self, input: bool) -> Self
pub fn override(self, input: bool) -> Self
A Boolean that determines whether CloudFront overrides the Strict-Transport-Security
HTTP response header received from the origin with the one specified in this response headers policy.
sourcepub fn set_override(self, input: Option<bool>) -> Self
pub fn set_override(self, input: Option<bool>) -> Self
A Boolean that determines whether CloudFront overrides the Strict-Transport-Security
HTTP response header received from the origin with the one specified in this response headers policy.
sourcepub fn include_subdomains(self, input: bool) -> Self
pub fn include_subdomains(self, input: bool) -> Self
A Boolean that determines whether CloudFront includes the includeSubDomains
directive in the Strict-Transport-Security
HTTP response header.
sourcepub fn set_include_subdomains(self, input: Option<bool>) -> Self
pub fn set_include_subdomains(self, input: Option<bool>) -> Self
A Boolean that determines whether CloudFront includes the includeSubDomains
directive in the Strict-Transport-Security
HTTP response header.
sourcepub fn preload(self, input: bool) -> Self
pub fn preload(self, input: bool) -> Self
A Boolean that determines whether CloudFront includes the preload
directive in the Strict-Transport-Security
HTTP response header.
sourcepub fn set_preload(self, input: Option<bool>) -> Self
pub fn set_preload(self, input: Option<bool>) -> Self
A Boolean that determines whether CloudFront includes the preload
directive in the Strict-Transport-Security
HTTP response header.
sourcepub fn access_control_max_age_sec(self, input: i32) -> Self
pub fn access_control_max_age_sec(self, input: i32) -> Self
A number that CloudFront uses as the value for the max-age
directive in the Strict-Transport-Security
HTTP response header.
sourcepub fn set_access_control_max_age_sec(self, input: Option<i32>) -> Self
pub fn set_access_control_max_age_sec(self, input: Option<i32>) -> Self
A number that CloudFront uses as the value for the max-age
directive in the Strict-Transport-Security
HTTP response header.
sourcepub fn build(self) -> ResponseHeadersPolicyStrictTransportSecurity
pub fn build(self) -> ResponseHeadersPolicyStrictTransportSecurity
Consumes the builder and constructs a ResponseHeadersPolicyStrictTransportSecurity
.