#[non_exhaustive]pub struct OriginCustomHeaderBuilder { /* private fields */ }Expand description
A builder for OriginCustomHeader.
Implementations§
source§impl OriginCustomHeaderBuilder
impl OriginCustomHeaderBuilder
sourcepub fn header_name(self, input: impl Into<String>) -> Self
pub fn header_name(self, input: impl Into<String>) -> Self
The name of a header that you want CloudFront to send to your origin. For more information, see Adding Custom Headers to Origin Requests in the Amazon CloudFront Developer Guide.
This field is required.sourcepub fn set_header_name(self, input: Option<String>) -> Self
pub fn set_header_name(self, input: Option<String>) -> Self
The name of a header that you want CloudFront to send to your origin. For more information, see Adding Custom Headers to Origin Requests in the Amazon CloudFront Developer Guide.
sourcepub fn get_header_name(&self) -> &Option<String>
pub fn get_header_name(&self) -> &Option<String>
The name of a header that you want CloudFront to send to your origin. For more information, see Adding Custom Headers to Origin Requests in the Amazon CloudFront Developer Guide.
sourcepub fn header_value(self, input: impl Into<String>) -> Self
pub fn header_value(self, input: impl Into<String>) -> Self
The value for the header that you specified in the HeaderName field.
sourcepub fn set_header_value(self, input: Option<String>) -> Self
pub fn set_header_value(self, input: Option<String>) -> Self
The value for the header that you specified in the HeaderName field.
sourcepub fn get_header_value(&self) -> &Option<String>
pub fn get_header_value(&self) -> &Option<String>
The value for the header that you specified in the HeaderName field.
sourcepub fn build(self) -> Result<OriginCustomHeader, BuildError>
pub fn build(self) -> Result<OriginCustomHeader, BuildError>
Consumes the builder and constructs a OriginCustomHeader.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for OriginCustomHeaderBuilder
impl Clone for OriginCustomHeaderBuilder
source§fn clone(&self) -> OriginCustomHeaderBuilder
fn clone(&self) -> OriginCustomHeaderBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for OriginCustomHeaderBuilder
impl Debug for OriginCustomHeaderBuilder
source§impl Default for OriginCustomHeaderBuilder
impl Default for OriginCustomHeaderBuilder
source§fn default() -> OriginCustomHeaderBuilder
fn default() -> OriginCustomHeaderBuilder
impl StructuralPartialEq for OriginCustomHeaderBuilder
Auto Trait Implementations§
impl Freeze for OriginCustomHeaderBuilder
impl RefUnwindSafe for OriginCustomHeaderBuilder
impl Send for OriginCustomHeaderBuilder
impl Sync for OriginCustomHeaderBuilder
impl Unpin for OriginCustomHeaderBuilder
impl UnwindSafe for OriginCustomHeaderBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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