public ServerCertificateConfiguration withScopes(ServerCertificateScope... scopes) {
        if (this.scopes == null) {
            setScopes(new java.util.ArrayList<ServerCertificateScope>(scopes.length));
        }
        for (ServerCertificateScope ele : scopes) {
            this.scopes.add(ele);
        }
        return this;
    }
<p>
A list of scopes.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setScopes(java.util.Collection)} or {@link #withScopes(java.util.Collection)} if you want to override the
existing values.
</p>

@param scopes
       A list of scopes.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-networkfirewall/src/main/java/com/amazonaws/services/networkfirewall/model/ServerCertificateConfiguration.java