code: public AvailableCapacity withAvailableInstanceCapacity(InstanceCapacity... availableInstanceCapacity) {
          if (this.availableInstanceCapacity == null) {
              setAvailableInstanceCapacity(new com.amazonaws.internal.SdkInternalList<InstanceCapacity>(availableInstanceCapacity.length));
          }
          for (InstanceCapacity ele : availableInstanceCapacity) {
              this.availableInstanceCapacity.add(ele);
          }
          return this;
      }
docs: <p>
  The total number of instances supported by the Dedicated Host.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setAvailableInstanceCapacity(java.util.Collection)} or
  {@link #withAvailableInstanceCapacity(java.util.Collection)} if you want to override the existing values.
  </p>
  
  @param availableInstanceCapacity
  The total number of instances supported by the Dedicated Host.
  @return Returns a reference to this object so that method calls can be chained together.