docs: public ContainerInstance withRegisteredResources(Resource... registeredResources) {
          if (this.registeredResources == null) {
              setRegisteredResources(new com.amazonaws.internal.SdkInternalList<Resource>(registeredResources.length));
          }
          for (Resource ele : registeredResources) {
              this.registeredResources.add(ele);
          }
          return this;
      }