code: public RegisterTaskDefinitionRequest withRequiresCompatibilities(String... requiresCompatibilities) {
          if (this.requiresCompatibilities == null) {
              setRequiresCompatibilities(new com.amazonaws.internal.SdkInternalList<String>(requiresCompatibilities.length));
          }
          for (String ele : requiresCompatibilities) {
              this.requiresCompatibilities.add(ele);
          }
          return this;
      }
docs: <p>
  The launch type required by the task. If no value is specified, it defaults to <code>EC2</code>.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setRequiresCompatibilities(java.util.Collection)} or
  {@link #withRequiresCompatibilities(java.util.Collection)} if you want to override the existing values.
  </p>
  
  @param requiresCompatibilities
  The launch type required by the task. If no value is specified, it defaults to <code>EC2</code>.
  @return Returns a reference to this object so that method calls can be chained together.
  @see Compatibility