#[non_exhaustive]pub struct CreateFunctionInputBuilder { /* private fields */ }
Expand description
A builder for CreateFunctionInput
.
Implementations§
source§impl CreateFunctionInputBuilder
impl CreateFunctionInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A name to identify the function.
This field is required.sourcepub fn function_config(self, input: FunctionConfig) -> Self
pub fn function_config(self, input: FunctionConfig) -> Self
Configuration information about the function, including an optional comment and the function's runtime.
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, including an optional comment and the function's runtime.
sourcepub fn get_function_config(&self) -> &Option<FunctionConfig>
pub fn get_function_config(&self) -> &Option<FunctionConfig>
Configuration information about the function, including an optional comment and the function's runtime.
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<CreateFunctionInput, BuildError>
pub fn build(self) -> Result<CreateFunctionInput, BuildError>
Consumes the builder and constructs a CreateFunctionInput
.
source§impl CreateFunctionInputBuilder
impl CreateFunctionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateFunctionOutput, SdkError<CreateFunctionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateFunctionOutput, SdkError<CreateFunctionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateFunctionInputBuilder
impl Clone for CreateFunctionInputBuilder
source§fn clone(&self) -> CreateFunctionInputBuilder
fn clone(&self) -> CreateFunctionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateFunctionInputBuilder
impl Debug for CreateFunctionInputBuilder
source§impl Default for CreateFunctionInputBuilder
impl Default for CreateFunctionInputBuilder
source§fn default() -> CreateFunctionInputBuilder
fn default() -> CreateFunctionInputBuilder
source§impl PartialEq for CreateFunctionInputBuilder
impl PartialEq for CreateFunctionInputBuilder
source§fn eq(&self, other: &CreateFunctionInputBuilder) -> bool
fn eq(&self, other: &CreateFunctionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateFunctionInputBuilder
Auto Trait Implementations§
impl Freeze for CreateFunctionInputBuilder
impl RefUnwindSafe for CreateFunctionInputBuilder
impl Send for CreateFunctionInputBuilder
impl Sync for CreateFunctionInputBuilder
impl Unpin for CreateFunctionInputBuilder
impl UnwindSafe for CreateFunctionInputBuilder
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