Interface CreateComponentVersionRequest.Builder

    • Method Detail

      • inlineRecipe

        CreateComponentVersionRequest.Builder inlineRecipe​(SdkBytes 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 or lambdaFunction.

        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 or lambdaFunction.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lambdaFunction

        CreateComponentVersionRequest.Builder lambdaFunction​(LambdaFunctionRecipeSource lambdaFunction)

        The parameters to create a component from a Lambda function.

        You must specify either inlineRecipe or lambdaFunction.

        Parameters:
        lambdaFunction - The parameters to create a component from a Lambda function.

        You must specify either inlineRecipe or lambdaFunction.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateComponentVersionRequest.Builder tags​(Map<String,​String> 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

        CreateComponentVersionRequest.Builder clientToken​(String 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.