code: public DescribeTransitGatewayVpcAttachmentsResult withTransitGatewayVpcAttachments(TransitGatewayVpcAttachment... transitGatewayVpcAttachments) {
          if (this.transitGatewayVpcAttachments == null) {
              setTransitGatewayVpcAttachments(new com.amazonaws.internal.SdkInternalList<TransitGatewayVpcAttachment>(transitGatewayVpcAttachments.length));
          }
          for (TransitGatewayVpcAttachment ele : transitGatewayVpcAttachments) {
              this.transitGatewayVpcAttachments.add(ele);
          }
          return this;
      }
docs: <p>
  Information about the VPC attachments.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setTransitGatewayVpcAttachments(java.util.Collection)} or
  {@link #withTransitGatewayVpcAttachments(java.util.Collection)} if you want to override the existing values.
  </p>
  
  @param transitGatewayVpcAttachments
  Information about the VPC attachments.
  @return Returns a reference to this object so that method calls can be chained together.