public DescribeTransitGatewayPeeringAttachmentsResult withTransitGatewayPeeringAttachments(
            TransitGatewayPeeringAttachment... transitGatewayPeeringAttachments) {
        if (this.transitGatewayPeeringAttachments == null) {
            setTransitGatewayPeeringAttachments(new com.amazonaws.internal.SdkInternalList<TransitGatewayPeeringAttachment>(
                    transitGatewayPeeringAttachments.length));
        }
        for (TransitGatewayPeeringAttachment ele : transitGatewayPeeringAttachments) {
            this.transitGatewayPeeringAttachments.add(ele);
        }
        return this;
    }
<p>
The transit gateway peering attachments.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTransitGatewayPeeringAttachments(java.util.Collection)} or
{@link #withTransitGatewayPeeringAttachments(java.util.Collection)} if you want to override the existing values.
</p>

@param transitGatewayPeeringAttachments
       The transit gateway peering attachments.
@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/DescribeTransitGatewayPeeringAttachmentsResult.java