code: public VpnGateway withVpcAttachments(VpcAttachment... vpcAttachments) {
          if (this.vpcAttachments == null) {
              setVpcAttachments(new com.amazonaws.internal.SdkInternalList<VpcAttachment>(vpcAttachments.length));
          }
          for (VpcAttachment ele : vpcAttachments) {
              this.vpcAttachments.add(ele);
          }
          return this;
      }
docs: <p>
  Any VPCs attached to the virtual private gateway.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setVpcAttachments(java.util.Collection)} or {@link #withVpcAttachments(java.util.Collection)} if you want
  to override the existing values.
  </p>
  
  @param vpcAttachments
  Any VPCs attached to the virtual private gateway.
  @return Returns a reference to this object so that method calls can be chained together.