Struct aws_sdk_cloudfront::operation::create_response_headers_policy::builders::CreateResponseHeadersPolicyInputBuilder
source · #[non_exhaustive]pub struct CreateResponseHeadersPolicyInputBuilder { /* private fields */ }
Expand description
A builder for CreateResponseHeadersPolicyInput
.
Implementations§
source§impl CreateResponseHeadersPolicyInputBuilder
impl CreateResponseHeadersPolicyInputBuilder
sourcepub fn response_headers_policy_config(
self,
input: ResponseHeadersPolicyConfig
) -> Self
pub fn response_headers_policy_config( self, input: ResponseHeadersPolicyConfig ) -> Self
Contains metadata about the response headers policy, and a set of configurations that specify the HTTP headers.
This field is required.sourcepub fn set_response_headers_policy_config(
self,
input: Option<ResponseHeadersPolicyConfig>
) -> Self
pub fn set_response_headers_policy_config( self, input: Option<ResponseHeadersPolicyConfig> ) -> Self
Contains metadata about the response headers policy, and a set of configurations that specify the HTTP headers.
sourcepub fn get_response_headers_policy_config(
&self
) -> &Option<ResponseHeadersPolicyConfig>
pub fn get_response_headers_policy_config( &self ) -> &Option<ResponseHeadersPolicyConfig>
Contains metadata about the response headers policy, and a set of configurations that specify the HTTP headers.
sourcepub fn build(self) -> Result<CreateResponseHeadersPolicyInput, BuildError>
pub fn build(self) -> Result<CreateResponseHeadersPolicyInput, BuildError>
Consumes the builder and constructs a CreateResponseHeadersPolicyInput
.
source§impl CreateResponseHeadersPolicyInputBuilder
impl CreateResponseHeadersPolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateResponseHeadersPolicyOutput, SdkError<CreateResponseHeadersPolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateResponseHeadersPolicyOutput, SdkError<CreateResponseHeadersPolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateResponseHeadersPolicyInputBuilder
impl Clone for CreateResponseHeadersPolicyInputBuilder
source§fn clone(&self) -> CreateResponseHeadersPolicyInputBuilder
fn clone(&self) -> CreateResponseHeadersPolicyInputBuilder
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 CreateResponseHeadersPolicyInputBuilder
impl Default for CreateResponseHeadersPolicyInputBuilder
source§fn default() -> CreateResponseHeadersPolicyInputBuilder
fn default() -> CreateResponseHeadersPolicyInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for CreateResponseHeadersPolicyInputBuilder
impl PartialEq for CreateResponseHeadersPolicyInputBuilder
source§fn eq(&self, other: &CreateResponseHeadersPolicyInputBuilder) -> bool
fn eq(&self, other: &CreateResponseHeadersPolicyInputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateResponseHeadersPolicyInputBuilder
Auto Trait Implementations§
impl Freeze for CreateResponseHeadersPolicyInputBuilder
impl RefUnwindSafe for CreateResponseHeadersPolicyInputBuilder
impl Send for CreateResponseHeadersPolicyInputBuilder
impl Sync for CreateResponseHeadersPolicyInputBuilder
impl Unpin for CreateResponseHeadersPolicyInputBuilder
impl UnwindSafe for CreateResponseHeadersPolicyInputBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.