#[non_exhaustive]pub struct UpdateFunctionInputBuilder { /* private fields */ }
Expand description
A builder for UpdateFunctionInput
.
Implementations§
source§impl UpdateFunctionInputBuilder
impl UpdateFunctionInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the function that you are updating.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the function that you are updating.
sourcepub fn if_match(self, input: impl Into<String>) -> Self
pub fn if_match(self, input: impl Into<String>) -> Self
The current version (ETag
value) of the function that you are updating, which you can get using DescribeFunction
.
sourcepub fn set_if_match(self, input: Option<String>) -> Self
pub fn set_if_match(self, input: Option<String>) -> Self
The current version (ETag
value) of the function that you are updating, which you can get using DescribeFunction
.
sourcepub fn get_if_match(&self) -> &Option<String>
pub fn get_if_match(&self) -> &Option<String>
The current version (ETag
value) of the function that you are updating, which you can get using DescribeFunction
.
sourcepub fn function_config(self, input: FunctionConfig) -> Self
pub fn function_config(self, input: FunctionConfig) -> Self
Configuration information about the function.
This field is required.sourcepub fn set_function_config(self, input: Option<FunctionConfig>) -> Self
pub fn set_function_config(self, input: Option<FunctionConfig>) -> Self
Configuration information about the function.
sourcepub fn get_function_config(&self) -> &Option<FunctionConfig>
pub fn get_function_config(&self) -> &Option<FunctionConfig>
Configuration information about the function.
sourcepub fn function_code(self, input: Blob) -> Self
pub fn function_code(self, input: Blob) -> Self
The function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide.
This field is required.sourcepub fn set_function_code(self, input: Option<Blob>) -> Self
pub fn set_function_code(self, input: Option<Blob>) -> Self
The function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide.
sourcepub fn get_function_code(&self) -> &Option<Blob>
pub fn get_function_code(&self) -> &Option<Blob>
The function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide.
sourcepub fn build(self) -> Result<UpdateFunctionInput, BuildError>
pub fn build(self) -> Result<UpdateFunctionInput, BuildError>
Consumes the builder and constructs a UpdateFunctionInput
.
source§impl UpdateFunctionInputBuilder
impl UpdateFunctionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateFunctionOutput, SdkError<UpdateFunctionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateFunctionOutput, SdkError<UpdateFunctionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateFunctionInputBuilder
impl Clone for UpdateFunctionInputBuilder
source§fn clone(&self) -> UpdateFunctionInputBuilder
fn clone(&self) -> UpdateFunctionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateFunctionInputBuilder
impl Debug for UpdateFunctionInputBuilder
source§impl Default for UpdateFunctionInputBuilder
impl Default for UpdateFunctionInputBuilder
source§fn default() -> UpdateFunctionInputBuilder
fn default() -> UpdateFunctionInputBuilder
source§impl PartialEq for UpdateFunctionInputBuilder
impl PartialEq for UpdateFunctionInputBuilder
source§fn eq(&self, other: &UpdateFunctionInputBuilder) -> bool
fn eq(&self, other: &UpdateFunctionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateFunctionInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateFunctionInputBuilder
impl RefUnwindSafe for UpdateFunctionInputBuilder
impl Send for UpdateFunctionInputBuilder
impl Sync for UpdateFunctionInputBuilder
impl Unpin for UpdateFunctionInputBuilder
impl UnwindSafe for UpdateFunctionInputBuilder
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