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

@param statuses
       PrincipalIdFormatStatuses description
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/PrincipalIdFormat.java