docs: 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;
      }