Interface CreateDeploymentRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateDeploymentRequest.Builder,,CreateDeploymentRequest> GreengrassV2Request.Builder,SdkBuilder<CreateDeploymentRequest.Builder,,CreateDeploymentRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateDeploymentRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier that you can provide to ensure that the request is idempotent.components(Map<String, ComponentDeploymentSpecification> components) The components to deploy.deploymentName(String deploymentName) The name of the deployment.default CreateDeploymentRequest.BuilderdeploymentPolicies(Consumer<DeploymentPolicies.Builder> deploymentPolicies) The deployment policies for the deployment.deploymentPolicies(DeploymentPolicies deploymentPolicies) The deployment policies for the deployment.default CreateDeploymentRequest.BuilderiotJobConfiguration(Consumer<DeploymentIoTJobConfiguration.Builder> iotJobConfiguration) The job configuration for the deployment configuration.iotJobConfiguration(DeploymentIoTJobConfiguration iotJobConfiguration) The job configuration for the deployment configuration.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.parentTargetArn(String parentTargetArn) The parent deployment's target ARN within a subdeployment.A list of key-value pairs that contain metadata for the resource.The ARN of the target IoT thing or thing group.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.greengrassv2.model.GreengrassV2Request.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
targetArn
The ARN of the target IoT thing or thing group. When creating a subdeployment, the targetARN can only be a thing group.
- Parameters:
targetArn- The ARN of the target IoT thing or thing group. When creating a subdeployment, the targetARN can only be a thing group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deploymentName
The name of the deployment.
- Parameters:
deploymentName- The name of the deployment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
components
The components to deploy. This is a dictionary, where each key is the name of a component, and each key's value is the version and configuration to deploy for that component.
- Parameters:
components- The components to deploy. This is a dictionary, where each key is the name of a component, and each key's value is the version and configuration to deploy for that component.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iotJobConfiguration
CreateDeploymentRequest.Builder iotJobConfiguration(DeploymentIoTJobConfiguration iotJobConfiguration) The job configuration for the deployment configuration. The job configuration specifies the rollout, timeout, and stop configurations for the deployment configuration.
- Parameters:
iotJobConfiguration- The job configuration for the deployment configuration. The job configuration specifies the rollout, timeout, and stop configurations for the deployment configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iotJobConfiguration
default CreateDeploymentRequest.Builder iotJobConfiguration(Consumer<DeploymentIoTJobConfiguration.Builder> iotJobConfiguration) The job configuration for the deployment configuration. The job configuration specifies the rollout, timeout, and stop configurations for the deployment configuration.
This is a convenience method that creates an instance of theDeploymentIoTJobConfiguration.Builderavoiding the need to create one manually viaDeploymentIoTJobConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toiotJobConfiguration(DeploymentIoTJobConfiguration).- Parameters:
iotJobConfiguration- a consumer that will call methods onDeploymentIoTJobConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
deploymentPolicies
The deployment policies for the deployment. These policies define how the deployment updates components and handles failure.
- Parameters:
deploymentPolicies- The deployment policies for the deployment. These policies define how the deployment updates components and handles failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deploymentPolicies
default CreateDeploymentRequest.Builder deploymentPolicies(Consumer<DeploymentPolicies.Builder> deploymentPolicies) The deployment policies for the deployment. These policies define how the deployment updates components and handles failure.
This is a convenience method that creates an instance of theDeploymentPolicies.Builderavoiding the need to create one manually viaDeploymentPolicies.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todeploymentPolicies(DeploymentPolicies).- Parameters:
deploymentPolicies- a consumer that will call methods onDeploymentPolicies.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
parentTargetArn
-
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
CreateDeploymentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateDeploymentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-