code: public TaskDefinition withCompatibilities(Compatibility... compatibilities) {
          com.amazonaws.internal.SdkInternalList<String> compatibilitiesCopy = new com.amazonaws.internal.SdkInternalList<String>(compatibilities.length);
          for (Compatibility value : compatibilities) {
              compatibilitiesCopy.add(value.toString());
          }
          if (getCompatibilities() == null) {
              setCompatibilities(compatibilitiesCopy);
          } else {
              getCompatibilities().addAll(compatibilitiesCopy);
          }
          return this;
      }
docs: <p>
  The launch type to use with your task. For more information, see <a
  href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html">Amazon ECS Launch Types</a>
  in the <i>Amazon Elastic Container Service Developer Guide</i>.
  </p>
  
  @param compatibilities
  The launch type to use with your task. For more information, see <a
  href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html">Amazon ECS Launch
  Types</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
  @return Returns a reference to this object so that method calls can be chained together.
  @see Compatibility