public GetDeploymentTargetResult withDeploymentTarget(DeploymentTarget deploymentTarget) {
        setDeploymentTarget(deploymentTarget);
        return this;
    }
<p>
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 (<code>instanceTarget</code>, <code>lambdaTarget</code>, or
<code>ecsTarget</code>).
</p>

@param 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 (<code>instanceTarget</code>, <code>lambdaTarget</code>,
       or <code>ecsTarget</code>).
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/model/GetDeploymentTargetResult.java