code: public TaskDefinition withCompatibilities(String... compatibilities) {
          if (this.compatibilities == null) {
              setCompatibilities(new com.amazonaws.internal.SdkInternalList<String>(compatibilities.length));
          }
          for (String ele : compatibilities) {
              this.compatibilities.add(ele);
          }
          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>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setCompatibilities(java.util.Collection)} or {@link #withCompatibilities(java.util.Collection)} if you
  want to override the existing values.
  </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