code: public AssignPrivateIpAddressesRequest withPrivateIpAddresses(String... privateIpAddresses) {
          if (this.privateIpAddresses == null) {
              setPrivateIpAddresses(new com.amazonaws.internal.SdkInternalList<String>(privateIpAddresses.length));
          }
          for (String ele : privateIpAddresses) {
              this.privateIpAddresses.add(ele);
          }
          return this;
      }
docs: <p>
  One or more IP addresses to be assigned as a secondary private IP address to the network interface. You can't
  specify this parameter when also specifying a number of secondary IP addresses.
  </p>
  <p>
  If you don't specify an IP address, Amazon EC2 automatically selects an IP address within the subnet range.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setPrivateIpAddresses(java.util.Collection)} or {@link #withPrivateIpAddresses(java.util.Collection)} if
  you want to override the existing values.
  </p>
  
  @param privateIpAddresses
  One or more IP addresses to be assigned as a secondary private IP address to the network interface. You
  can't specify this parameter when also specifying a number of secondary IP addresses.</p>
  <p>
  If you don't specify an IP address, Amazon EC2 automatically selects an IP address within the subnet
  range.
  @return Returns a reference to this object so that method calls can be chained together.