Interface GetDeploymentTargetResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CodeDeployResponse.Builder
,CopyableBuilder<GetDeploymentTargetResponse.Builder,
,GetDeploymentTargetResponse> SdkBuilder<GetDeploymentTargetResponse.Builder,
,GetDeploymentTargetResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetDeploymentTargetResponse
-
Method Summary
Modifier and TypeMethodDescriptiondeploymentTarget
(Consumer<DeploymentTarget.Builder> deploymentTarget) A deployment target that contains information about a deployment such as its status, lifecycle events, and when it was last updated.deploymentTarget
(DeploymentTarget deploymentTarget) A deployment target that contains information about a deployment such as its status, lifecycle events, and when it was last updated.Methods inherited from interface software.amazon.awssdk.services.codedeploy.model.CodeDeployResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
deploymentTarget
A deployment target that contains information about a deployment such as its status, lifecycle events, and when it was last updated. It also contains metadata about the deployment target. The deployment target metadata depends on the deployment target's type (
instanceTarget
,lambdaTarget
, orecsTarget
).- Parameters:
deploymentTarget
- A deployment target that contains information about a deployment such as its status, lifecycle events, and when it was last updated. It also contains metadata about the deployment target. The deployment target metadata depends on the deployment target's type (instanceTarget
,lambdaTarget
, orecsTarget
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deploymentTarget
default GetDeploymentTargetResponse.Builder deploymentTarget(Consumer<DeploymentTarget.Builder> deploymentTarget) A deployment target that contains information about a deployment such as its status, lifecycle events, and when it was last updated. It also contains metadata about the deployment target. The deployment target metadata depends on the deployment target's type (
This is a convenience method that creates an instance of theinstanceTarget
,lambdaTarget
, orecsTarget
).DeploymentTarget.Builder
avoiding the need to create one manually viaDeploymentTarget.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todeploymentTarget(DeploymentTarget)
.- Parameters:
deploymentTarget
- a consumer that will call methods onDeploymentTarget.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-