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
sourceimpl 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
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more