#[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.
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 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 build(self) -> OriginCustomHeader
pub fn build(self) -> OriginCustomHeader
Consumes the builder and constructs a OriginCustomHeader
.
Trait Implementations§
source§impl Clone for OriginCustomHeaderBuilder
impl Clone for OriginCustomHeaderBuilder
source§fn clone(&self) -> OriginCustomHeaderBuilder
fn clone(&self) -> OriginCustomHeaderBuilder
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 Debug for OriginCustomHeaderBuilder
impl Debug for OriginCustomHeaderBuilder
source§impl Default for OriginCustomHeaderBuilder
impl Default for OriginCustomHeaderBuilder
source§fn default() -> OriginCustomHeaderBuilder
fn default() -> OriginCustomHeaderBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<OriginCustomHeaderBuilder> for OriginCustomHeaderBuilder
impl PartialEq<OriginCustomHeaderBuilder> for OriginCustomHeaderBuilder
source§fn eq(&self, other: &OriginCustomHeaderBuilder) -> bool
fn eq(&self, other: &OriginCustomHeaderBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.