#[non_exhaustive]pub struct ResponseHeadersPolicyCustomHeaderBuilder { /* private fields */ }
Expand description
A builder for ResponseHeadersPolicyCustomHeader
.
Implementations§
source§impl ResponseHeadersPolicyCustomHeaderBuilder
impl ResponseHeadersPolicyCustomHeaderBuilder
sourcepub fn header(self, input: impl Into<String>) -> Self
pub fn header(self, input: impl Into<String>) -> Self
The HTTP response header name.
This field is required.sourcepub fn set_header(self, input: Option<String>) -> Self
pub fn set_header(self, input: Option<String>) -> Self
The HTTP response header name.
sourcepub fn get_header(&self) -> &Option<String>
pub fn get_header(&self) -> &Option<String>
The HTTP response header name.
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
The value for the HTTP response header.
This field is required.sourcepub fn override(self, input: bool) -> Self
pub fn override(self, input: bool) -> Self
A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.
This field is required.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 a response header with the same name received from the origin with the header specified here.
sourcepub fn get_override(&self) -> &Option<bool>
pub fn get_override(&self) -> &Option<bool>
A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.
sourcepub fn build(self) -> Result<ResponseHeadersPolicyCustomHeader, BuildError>
pub fn build(self) -> Result<ResponseHeadersPolicyCustomHeader, BuildError>
Consumes the builder and constructs a ResponseHeadersPolicyCustomHeader
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ResponseHeadersPolicyCustomHeaderBuilder
impl Clone for ResponseHeadersPolicyCustomHeaderBuilder
source§fn clone(&self) -> ResponseHeadersPolicyCustomHeaderBuilder
fn clone(&self) -> ResponseHeadersPolicyCustomHeaderBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ResponseHeadersPolicyCustomHeaderBuilder
impl Default for ResponseHeadersPolicyCustomHeaderBuilder
source§fn default() -> ResponseHeadersPolicyCustomHeaderBuilder
fn default() -> ResponseHeadersPolicyCustomHeaderBuilder
source§impl PartialEq for ResponseHeadersPolicyCustomHeaderBuilder
impl PartialEq for ResponseHeadersPolicyCustomHeaderBuilder
source§fn eq(&self, other: &ResponseHeadersPolicyCustomHeaderBuilder) -> bool
fn eq(&self, other: &ResponseHeadersPolicyCustomHeaderBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResponseHeadersPolicyCustomHeaderBuilder
Auto Trait Implementations§
impl Freeze for ResponseHeadersPolicyCustomHeaderBuilder
impl RefUnwindSafe for ResponseHeadersPolicyCustomHeaderBuilder
impl Send for ResponseHeadersPolicyCustomHeaderBuilder
impl Sync for ResponseHeadersPolicyCustomHeaderBuilder
impl Unpin for ResponseHeadersPolicyCustomHeaderBuilder
impl UnwindSafe for ResponseHeadersPolicyCustomHeaderBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more