public DescribeHapgResult withPartitionSerialList(String... partitionSerialList) {
        if (this.partitionSerialList == null) {
            setPartitionSerialList(new com.amazonaws.internal.SdkInternalList<String>(partitionSerialList.length));
        }
        for (String ele : partitionSerialList) {
            this.partitionSerialList.add(ele);
        }
        return this;
    }
public DescribeHapgResult withPartitionSerialList ( String ... partitionSerialList ) { if ( this . partitionSerialList == null ) { setPartitionSerialList ( new com . amazonaws . internal . SdkInternalList < String > ( partitionSerialList . length ) ) ; } for ( String ele : partitionSerialList ) { this . partitionSerialList . add ( ele ) ; } return this ; }
<p>
The list of partition serial numbers that belong to the high-availability partition group.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPartitionSerialList(java.util.Collection)} or {@link #withPartitionSerialList(java.util.Collection)}
if you want to override the existing values.
</p>

@param partitionSerialList
The list of partition serial numbers that belong to the high-availability partition group.
@return Returns a reference to this object so that method calls can be chained together.