public DescribeHapgResult withHsmsPendingRegistration(String... hsmsPendingRegistration) {
        if (this.hsmsPendingRegistration == null) {
            setHsmsPendingRegistration(new com.amazonaws.internal.SdkInternalList<String>(hsmsPendingRegistration.length));
        }
        for (String ele : hsmsPendingRegistration) {
            this.hsmsPendingRegistration.add(ele);
        }
        return this;
    }
<p/>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setHsmsPendingRegistration(java.util.Collection)} or
{@link #withHsmsPendingRegistration(java.util.Collection)} if you want to override the existing values.
</p>

@param hsmsPendingRegistration
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudhsm/src/main/java/com/amazonaws/services/cloudhsm/model/DescribeHapgResult.java