public void setTransitGatewayPeeringAttachments(java.util.Collection<TransitGatewayPeeringAttachment> transitGatewayPeeringAttachments) {
        if (transitGatewayPeeringAttachments == null) {
            this.transitGatewayPeeringAttachments = null;
            return;
        }

        this.transitGatewayPeeringAttachments = new com.amazonaws.internal.SdkInternalList<TransitGatewayPeeringAttachment>(transitGatewayPeeringAttachments);
    }
<p>
The transit gateway peering attachments.
</p>

@param transitGatewayPeeringAttachments
       The transit gateway peering attachments.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/DescribeTransitGatewayPeeringAttachmentsResult.java