code: public ListResourcesForTagOptionResult withResourceDetails(ResourceDetail... resourceDetails) {
          if (this.resourceDetails == null) {
              setResourceDetails(new java.util.ArrayList<ResourceDetail>(resourceDetails.length));
          }
          for (ResourceDetail ele : resourceDetails) {
              this.resourceDetails.add(ele);
          }
          return this;
      }
docs: <p>
  Information about the resources.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setResourceDetails(java.util.Collection)} or {@link #withResourceDetails(java.util.Collection)} if you
  want to override the existing values.
  </p>
  
  @param resourceDetails
  Information about the resources.
  @return Returns a reference to this object so that method calls can be chained together.