code: public void setTargetGroups(java.util.Collection<TargetGroupInfo> targetGroups) {
          if (targetGroups == null) {
              this.targetGroups = null;
              return;
          }
  
          this.targetGroups = new com.amazonaws.internal.SdkInternalList<TargetGroupInfo>(targetGroups);
      }
docs: <p>
  One pair of target groups. One is associated with the original task set. The second is associated with the task
  set that serves traffic after the deployment is complete.
  </p>
  
  @param targetGroups
  One pair of target groups. One is associated with the original task set. The second is associated with the
  task set that serves traffic after the deployment is complete.