public ReplicationInstance withVpcSecurityGroups(VpcSecurityGroupMembership... vpcSecurityGroups) {
        if (this.vpcSecurityGroups == null) {
            setVpcSecurityGroups(new java.util.ArrayList<VpcSecurityGroupMembership>(vpcSecurityGroups.length));
        }
        for (VpcSecurityGroupMembership ele : vpcSecurityGroups) {
            this.vpcSecurityGroups.add(ele);
        }
        return this;
    }
public ReplicationInstance withVpcSecurityGroups ( VpcSecurityGroupMembership ... vpcSecurityGroups ) { if ( this . vpcSecurityGroups == null ) { setVpcSecurityGroups ( new java . util . ArrayList < VpcSecurityGroupMembership > ( vpcSecurityGroups . length ) ) ; } for ( VpcSecurityGroupMembership ele : vpcSecurityGroups ) { this . vpcSecurityGroups . add ( ele ) ; } return this ; }
<p>
The VPC security group for the instance.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setVpcSecurityGroups(java.util.Collection)} or {@link #withVpcSecurityGroups(java.util.Collection)} if
you want to override the existing values.
</p>

@param vpcSecurityGroups
The VPC security group for the instance.
@return Returns a reference to this object so that method calls can be chained together.