code: public RegisterContainerInstanceRequest withTotalResources(Resource... totalResources) {
          if (this.totalResources == null) {
              setTotalResources(new com.amazonaws.internal.SdkInternalList<Resource>(totalResources.length));
          }
          for (Resource ele : totalResources) {
              this.totalResources.add(ele);
          }
          return this;
      }
docs: <p>
  The resources available on the instance.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setTotalResources(java.util.Collection)} or {@link #withTotalResources(java.util.Collection)} if you want
  to override the existing values.
  </p>
  
  @param totalResources
  The resources available on the instance.
  @return Returns a reference to this object so that method calls can be chained together.