Interface CreateDeploymentRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateDeploymentRequest.Builder,
,CreateDeploymentRequest> OpsWorksRequest.Builder
,SdkBuilder<CreateDeploymentRequest.Builder,
,CreateDeploymentRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateDeploymentRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe app ID.default CreateDeploymentRequest.Builder
command
(Consumer<DeploymentCommand.Builder> command) ADeploymentCommand
object that specifies the deployment command and any associated arguments.command
(DeploymentCommand command) ADeploymentCommand
object that specifies the deployment command and any associated arguments.A user-defined comment.customJson
(String customJson) A string that contains user-defined, custom JSON.instanceIds
(String... instanceIds) The instance IDs for the deployment targets.instanceIds
(Collection<String> instanceIds) The instance IDs for the deployment targets.The layer IDs for the deployment targets.layerIds
(Collection<String> layerIds) The layer IDs for the deployment targets.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The stack ID.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.opsworks.model.OpsWorksRequest.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
-
stackId
The stack ID.
- Parameters:
stackId
- The stack ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
appId
The app ID. This parameter is required for app deployments, but not for other deployment commands.
- Parameters:
appId
- The app ID. This parameter is required for app deployments, but not for other deployment commands.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceIds
The instance IDs for the deployment targets.
- Parameters:
instanceIds
- The instance IDs for the deployment targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceIds
The instance IDs for the deployment targets.
- Parameters:
instanceIds
- The instance IDs for the deployment targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
layerIds
The layer IDs for the deployment targets.
- Parameters:
layerIds
- The layer IDs for the deployment targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
layerIds
The layer IDs for the deployment targets.
- Parameters:
layerIds
- The layer IDs for the deployment targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
command
A
DeploymentCommand
object that specifies the deployment command and any associated arguments.- Parameters:
command
- ADeploymentCommand
object that specifies the deployment command and any associated arguments.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
command
A
This is a convenience method that creates an instance of theDeploymentCommand
object that specifies the deployment command and any associated arguments.DeploymentCommand.Builder
avoiding the need to create one manually viaDeploymentCommand.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocommand(DeploymentCommand)
.- Parameters:
command
- a consumer that will call methods onDeploymentCommand.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
comment
A user-defined comment.
- Parameters:
comment
- A user-defined comment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customJson
A string that contains user-defined, custom JSON. You can use this parameter to override some corresponding default stack configuration JSON values. The string should be in the following format:
"{\"key1\": \"value1\", \"key2\": \"value2\",...}"
For more information about custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes and Overriding Attributes With Custom JSON.
- Parameters:
customJson
- A string that contains user-defined, custom JSON. You can use this parameter to override some corresponding default stack configuration JSON values. The string should be in the following format:"{\"key1\": \"value1\", \"key2\": \"value2\",...}"
For more information about custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes and Overriding Attributes With Custom JSON.
- 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.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
CreateDeploymentRequest.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.
-