docs: public TaskDefinition withRequiresCompatibilities(Compatibility... requiresCompatibilities) {
          com.amazonaws.internal.SdkInternalList<String> requiresCompatibilitiesCopy = new com.amazonaws.internal.SdkInternalList<String>(
                  requiresCompatibilities.length);
          for (Compatibility value : requiresCompatibilities) {
              requiresCompatibilitiesCopy.add(value.toString());
          }
          if (getRequiresCompatibilities() == null) {
              setRequiresCompatibilities(requiresCompatibilitiesCopy);
          } else {
              getRequiresCompatibilities().addAll(requiresCompatibilitiesCopy);
          }
          return this;
      }