#[non_exhaustive]pub struct OriginRequestPolicyConfigBuilder { /* private fields */ }
Expand description
A builder for OriginRequestPolicyConfig
.
Implementations§
source§impl OriginRequestPolicyConfigBuilder
impl OriginRequestPolicyConfigBuilder
sourcepub fn comment(self, input: impl Into<String>) -> Self
pub fn comment(self, input: impl Into<String>) -> Self
A comment to describe the origin request policy. The comment cannot be longer than 128 characters.
sourcepub fn set_comment(self, input: Option<String>) -> Self
pub fn set_comment(self, input: Option<String>) -> Self
A comment to describe the origin request policy. The comment cannot be longer than 128 characters.
sourcepub fn get_comment(&self) -> &Option<String>
pub fn get_comment(&self) -> &Option<String>
A comment to describe the origin request policy. The comment cannot be longer than 128 characters.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A unique name to identify the origin request policy.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A unique name to identify the origin request policy.
sourcepub fn headers_config(self, input: OriginRequestPolicyHeadersConfig) -> Self
pub fn headers_config(self, input: OriginRequestPolicyHeadersConfig) -> Self
The HTTP headers to include in origin requests. These can include headers from viewer requests and additional headers added by CloudFront.
This field is required.sourcepub fn set_headers_config(
self,
input: Option<OriginRequestPolicyHeadersConfig>
) -> Self
pub fn set_headers_config( self, input: Option<OriginRequestPolicyHeadersConfig> ) -> Self
The HTTP headers to include in origin requests. These can include headers from viewer requests and additional headers added by CloudFront.
sourcepub fn get_headers_config(&self) -> &Option<OriginRequestPolicyHeadersConfig>
pub fn get_headers_config(&self) -> &Option<OriginRequestPolicyHeadersConfig>
The HTTP headers to include in origin requests. These can include headers from viewer requests and additional headers added by CloudFront.
The cookies from viewer requests to include in origin requests.
This field is required.The cookies from viewer requests to include in origin requests.
The cookies from viewer requests to include in origin requests.
sourcepub fn query_strings_config(
self,
input: OriginRequestPolicyQueryStringsConfig
) -> Self
pub fn query_strings_config( self, input: OriginRequestPolicyQueryStringsConfig ) -> Self
The URL query strings from viewer requests to include in origin requests.
This field is required.sourcepub fn set_query_strings_config(
self,
input: Option<OriginRequestPolicyQueryStringsConfig>
) -> Self
pub fn set_query_strings_config( self, input: Option<OriginRequestPolicyQueryStringsConfig> ) -> Self
The URL query strings from viewer requests to include in origin requests.
sourcepub fn get_query_strings_config(
&self
) -> &Option<OriginRequestPolicyQueryStringsConfig>
pub fn get_query_strings_config( &self ) -> &Option<OriginRequestPolicyQueryStringsConfig>
The URL query strings from viewer requests to include in origin requests.
sourcepub fn build(self) -> Result<OriginRequestPolicyConfig, BuildError>
pub fn build(self) -> Result<OriginRequestPolicyConfig, BuildError>
Consumes the builder and constructs a OriginRequestPolicyConfig
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for OriginRequestPolicyConfigBuilder
impl Clone for OriginRequestPolicyConfigBuilder
source§fn clone(&self) -> OriginRequestPolicyConfigBuilder
fn clone(&self) -> OriginRequestPolicyConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for OriginRequestPolicyConfigBuilder
impl Default for OriginRequestPolicyConfigBuilder
source§fn default() -> OriginRequestPolicyConfigBuilder
fn default() -> OriginRequestPolicyConfigBuilder
source§impl PartialEq for OriginRequestPolicyConfigBuilder
impl PartialEq for OriginRequestPolicyConfigBuilder
source§fn eq(&self, other: &OriginRequestPolicyConfigBuilder) -> bool
fn eq(&self, other: &OriginRequestPolicyConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OriginRequestPolicyConfigBuilder
Auto Trait Implementations§
impl Freeze for OriginRequestPolicyConfigBuilder
impl RefUnwindSafe for OriginRequestPolicyConfigBuilder
impl Send for OriginRequestPolicyConfigBuilder
impl Sync for OriginRequestPolicyConfigBuilder
impl Unpin for OriginRequestPolicyConfigBuilder
impl UnwindSafe for OriginRequestPolicyConfigBuilder
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