code: public void setDeploymentTargets(java.util.Collection<DeploymentTarget> deploymentTargets) {
          if (deploymentTargets == null) {
              this.deploymentTargets = null;
              return;
          }
  
          this.deploymentTargets = new com.amazonaws.internal.SdkInternalList<DeploymentTarget>(deploymentTargets);
      }
docs: <p>
  A list of target objects for a deployment. Each target object contains details about the target, such as its
  status and lifecycle events. The type of the target objects depends on the deployment' compute platform.
  </p>
  <ul>
  <li>
  <p>
  <b>EC2/On-premises</b>: Each target object is an EC2 or on-premises instance.
  </p>
  </li>
  <li>
  <p>
  <b>AWS Lambda</b>: The target object is a specific version of an AWS Lambda function.
  </p>
  </li>
  <li>
  <p>
  <b>Amazon ECS</b>: The target object is an Amazon ECS service.
  </p>
  </li>
  </ul>
  
  @param deploymentTargets
  A list of target objects for a deployment. Each target object contains details about the target, such as
  its status and lifecycle events. The type of the target objects depends on the deployment' compute
  platform. </p>
  <ul>
  <li>
  <p>
  <b>EC2/On-premises</b>: Each target object is an EC2 or on-premises instance.
  </p>
  </li>
  <li>
  <p>
  <b>AWS Lambda</b>: The target object is a specific version of an AWS Lambda function.
  </p>
  </li>
  <li>
  <p>
  <b>Amazon ECS</b>: The target object is an Amazon ECS service.
  </p>
  </li>