Interface GetDeploymentTargetResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CodeDeployResponse.Builder, CopyableBuilder<GetDeploymentTargetResponse.Builder,GetDeploymentTargetResponse>, SdkBuilder<GetDeploymentTargetResponse.Builder,GetDeploymentTargetResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
GetDeploymentTargetResponse

public static interface GetDeploymentTargetResponse.Builder extends CodeDeployResponse.Builder, SdkPojo, CopyableBuilder<GetDeploymentTargetResponse.Builder,GetDeploymentTargetResponse>
  • Method Details

    • deploymentTarget

      GetDeploymentTargetResponse.Builder deploymentTarget(DeploymentTarget 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, or ecsTarget).

      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, or ecsTarget).
      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 (instanceTarget, lambdaTarget, or ecsTarget).

      This is a convenience method that creates an instance of the DeploymentTarget.Builder avoiding the need to create one manually via DeploymentTarget.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to deploymentTarget(DeploymentTarget).

      Parameters:
      deploymentTarget - a consumer that will call methods on DeploymentTarget.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: