Interface CreateComponentVersionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateComponentVersionRequest.Builder,
,CreateComponentVersionRequest> GreengrassV2Request.Builder
,SdkBuilder<CreateComponentVersionRequest.Builder,
,CreateComponentVersionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateComponentVersionRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) A unique, case-sensitive identifier that you can provide to ensure that the request is idempotent.inlineRecipe
(SdkBytes inlineRecipe) The recipe to use to create the component.lambdaFunction
(Consumer<LambdaFunctionRecipeSource.Builder> lambdaFunction) The parameters to create a component from a Lambda function.lambdaFunction
(LambdaFunctionRecipeSource lambdaFunction) The parameters to create a component from a Lambda function.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.A list of key-value pairs that contain metadata for the resource.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.greengrassv2.model.GreengrassV2Request.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
inlineRecipe
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
orlambdaFunction
.- Parameters:
inlineRecipe
- 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
orlambdaFunction
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lambdaFunction
The parameters to create a component from a Lambda function.
You must specify either
inlineRecipe
orlambdaFunction
.- Parameters:
lambdaFunction
- The parameters to create a component from a Lambda function.You must specify either
inlineRecipe
orlambdaFunction
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lambdaFunction
default CreateComponentVersionRequest.Builder lambdaFunction(Consumer<LambdaFunctionRecipeSource.Builder> lambdaFunction) The parameters to create a component from a Lambda function.
You must specify either
This is a convenience method that creates an instance of theinlineRecipe
orlambdaFunction
.LambdaFunctionRecipeSource.Builder
avoiding the need to create one manually viaLambdaFunctionRecipeSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolambdaFunction(LambdaFunctionRecipeSource)
.- Parameters:
lambdaFunction
- a consumer that will call methods onLambdaFunctionRecipeSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
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.
- Parameters:
clientToken
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateComponentVersionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateComponentVersionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-