public Workgroup withCrossAccountVpcs(String... crossAccountVpcs) {
        if (this.crossAccountVpcs == null) {
            setCrossAccountVpcs(new java.util.ArrayList<String>(crossAccountVpcs.length));
        }
        for (String ele : crossAccountVpcs) {
            this.crossAccountVpcs.add(ele);
        }
        return this;
    }
<p>
A list of VPCs. Each entry is the unique identifier of a virtual private cloud with access to Amazon Redshift
Serverless. If all of the VPCs for the grantee are allowed, it shows an asterisk.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCrossAccountVpcs(java.util.Collection)} or {@link #withCrossAccountVpcs(java.util.Collection)} if you
want to override the existing values.
</p>

@param crossAccountVpcs
       A list of VPCs. Each entry is the unique identifier of a virtual private cloud with access to Amazon
       Redshift Serverless. If all of the VPCs for the grantee are allowed, it shows an asterisk.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-redshiftserverless/src/main/java/com/amazonaws/services/redshiftserverless/model/Workgroup.java