Struct aws_sdk_greengrassv2::operation::create_component_version::builders::CreateComponentVersionInputBuilder
source · #[non_exhaustive]pub struct CreateComponentVersionInputBuilder { /* private fields */ }
Expand description
A builder for CreateComponentVersionInput
.
Implementations§
source§impl CreateComponentVersionInputBuilder
impl CreateComponentVersionInputBuilder
sourcepub fn inline_recipe(self, input: Blob) -> Self
pub fn inline_recipe(self, input: Blob) -> Self
The recipe to use to create the component. The recipe defines the component's metadata, parameters, dependencies, lifecycle, artifacts, and platform compatibility.
You must specify either inlineRecipe
or lambdaFunction
.
sourcepub fn set_inline_recipe(self, input: Option<Blob>) -> Self
pub fn set_inline_recipe(self, input: Option<Blob>) -> Self
The recipe to use to create the component. The recipe defines the component's metadata, parameters, dependencies, lifecycle, artifacts, and platform compatibility.
You must specify either inlineRecipe
or lambdaFunction
.
sourcepub fn get_inline_recipe(&self) -> &Option<Blob>
pub fn get_inline_recipe(&self) -> &Option<Blob>
The recipe to use to create the component. The recipe defines the component's metadata, parameters, dependencies, lifecycle, artifacts, and platform compatibility.
You must specify either inlineRecipe
or lambdaFunction
.
sourcepub fn lambda_function(self, input: LambdaFunctionRecipeSource) -> Self
pub fn lambda_function(self, input: LambdaFunctionRecipeSource) -> Self
The parameters to create a component from a Lambda function.
You must specify either inlineRecipe
or lambdaFunction
.
sourcepub fn set_lambda_function(
self,
input: Option<LambdaFunctionRecipeSource>,
) -> Self
pub fn set_lambda_function( self, input: Option<LambdaFunctionRecipeSource>, ) -> Self
The parameters to create a component from a Lambda function.
You must specify either inlineRecipe
or lambdaFunction
.
sourcepub fn get_lambda_function(&self) -> &Option<LambdaFunctionRecipeSource>
pub fn get_lambda_function(&self) -> &Option<LambdaFunctionRecipeSource>
The parameters to create a component from a Lambda function.
You must specify either inlineRecipe
or lambdaFunction
.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the IoT Greengrass V2 Developer Guide.
A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the IoT Greengrass V2 Developer Guide.
A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the IoT Greengrass V2 Developer Guide.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
A unique, case-sensitive identifier that you can provide to ensure that the request is idempotent. Idempotency means that the request is successfully processed only once, even if you send the request multiple times. When a request succeeds, and you specify the same client token for subsequent successful requests, the IoT Greengrass V2 service returns the successful response that it caches from the previous request. IoT Greengrass V2 caches successful responses for idempotent requests for up to 8 hours.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
A unique, case-sensitive identifier that you can provide to ensure that the request is idempotent. Idempotency means that the request is successfully processed only once, even if you send the request multiple times. When a request succeeds, and you specify the same client token for subsequent successful requests, the IoT Greengrass V2 service returns the successful response that it caches from the previous request. IoT Greengrass V2 caches successful responses for idempotent requests for up to 8 hours.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
A unique, case-sensitive identifier that you can provide to ensure that the request is idempotent. Idempotency means that the request is successfully processed only once, even if you send the request multiple times. When a request succeeds, and you specify the same client token for subsequent successful requests, the IoT Greengrass V2 service returns the successful response that it caches from the previous request. IoT Greengrass V2 caches successful responses for idempotent requests for up to 8 hours.
sourcepub fn build(self) -> Result<CreateComponentVersionInput, BuildError>
pub fn build(self) -> Result<CreateComponentVersionInput, BuildError>
Consumes the builder and constructs a CreateComponentVersionInput
.
source§impl CreateComponentVersionInputBuilder
impl CreateComponentVersionInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateComponentVersionOutput, SdkError<CreateComponentVersionError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateComponentVersionOutput, SdkError<CreateComponentVersionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateComponentVersionInputBuilder
impl Clone for CreateComponentVersionInputBuilder
source§fn clone(&self) -> CreateComponentVersionInputBuilder
fn clone(&self) -> CreateComponentVersionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateComponentVersionInputBuilder
impl Default for CreateComponentVersionInputBuilder
source§fn default() -> CreateComponentVersionInputBuilder
fn default() -> CreateComponentVersionInputBuilder
source§impl PartialEq for CreateComponentVersionInputBuilder
impl PartialEq for CreateComponentVersionInputBuilder
source§fn eq(&self, other: &CreateComponentVersionInputBuilder) -> bool
fn eq(&self, other: &CreateComponentVersionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateComponentVersionInputBuilder
Auto Trait Implementations§
impl Freeze for CreateComponentVersionInputBuilder
impl RefUnwindSafe for CreateComponentVersionInputBuilder
impl Send for CreateComponentVersionInputBuilder
impl Sync for CreateComponentVersionInputBuilder
impl Unpin for CreateComponentVersionInputBuilder
impl UnwindSafe for CreateComponentVersionInputBuilder
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