#[non_exhaustive]pub struct ResponseHeadersPolicyContentTypeOptionsBuilder { /* private fields */ }
Expand description
A builder for ResponseHeadersPolicyContentTypeOptions
.
Implementations§
source§impl ResponseHeadersPolicyContentTypeOptionsBuilder
impl ResponseHeadersPolicyContentTypeOptionsBuilder
sourcepub fn override(self, input: bool) -> Self
pub fn override(self, input: bool) -> Self
A Boolean that determines whether CloudFront overrides the X-Content-Type-Options
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 X-Content-Type-Options
HTTP response header received from the origin with the one specified in this response headers policy.
sourcepub fn build(self) -> ResponseHeadersPolicyContentTypeOptions
pub fn build(self) -> ResponseHeadersPolicyContentTypeOptions
Consumes the builder and constructs a ResponseHeadersPolicyContentTypeOptions
.
Trait Implementations§
source§impl Clone for ResponseHeadersPolicyContentTypeOptionsBuilder
impl Clone for ResponseHeadersPolicyContentTypeOptionsBuilder
source§fn clone(&self) -> ResponseHeadersPolicyContentTypeOptionsBuilder
fn clone(&self) -> ResponseHeadersPolicyContentTypeOptionsBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for ResponseHeadersPolicyContentTypeOptionsBuilder
impl Default for ResponseHeadersPolicyContentTypeOptionsBuilder
source§fn default() -> ResponseHeadersPolicyContentTypeOptionsBuilder
fn default() -> ResponseHeadersPolicyContentTypeOptionsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<ResponseHeadersPolicyContentTypeOptionsBuilder> for ResponseHeadersPolicyContentTypeOptionsBuilder
impl PartialEq<ResponseHeadersPolicyContentTypeOptionsBuilder> for ResponseHeadersPolicyContentTypeOptionsBuilder
source§fn eq(&self, other: &ResponseHeadersPolicyContentTypeOptionsBuilder) -> bool
fn eq(&self, other: &ResponseHeadersPolicyContentTypeOptionsBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.