code: public ContainerDefinition withResourceRequirements(ResourceRequirement... resourceRequirements) {
          if (this.resourceRequirements == null) {
              setResourceRequirements(new com.amazonaws.internal.SdkInternalList<ResourceRequirement>(resourceRequirements.length));
          }
          for (ResourceRequirement ele : resourceRequirements) {
              this.resourceRequirements.add(ele);
          }
          return this;
      }
docs: <p>
  The type and amount of a resource to assign to a container. The only supported resource is a GPU.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setResourceRequirements(java.util.Collection)} or {@link #withResourceRequirements(java.util.Collection)}
  if you want to override the existing values.
  </p>
  
  @param resourceRequirements
  The type and amount of a resource to assign to a container. The only supported resource is a GPU.
  @return Returns a reference to this object so that method calls can be chained together.