public ListPeeringsResult withPeerings(Peering... peerings) {
        if (this.peerings == null) {
            setPeerings(new java.util.ArrayList<Peering>(peerings.length));
        }
        for (Peering ele : peerings) {
            this.peerings.add(ele);
        }
        return this;
    }
<p>
Lists the transit gateway peerings for the <code>ListPeerings</code> request.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPeerings(java.util.Collection)} or {@link #withPeerings(java.util.Collection)} if you want to override
the existing values.
</p>

@param peerings
       Lists the transit gateway peerings for the <code>ListPeerings</code> request.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-networkmanager/src/main/java/com/amazonaws/services/networkmanager/model/ListPeeringsResult.java