public ListAliasesResult withAliases(java.util.Collection<Alias> aliases) {
        setAliases(aliases);
        return this;
    }
<p>
The list of aliases. Each alias describes the <code>KeyArn</code> contained within.
</p>

@param aliases
       The list of aliases. Each alias describes the <code>KeyArn</code> contained within.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-paymentcryptography/src/main/java/com/amazonaws/services/paymentcryptography/model/ListAliasesResult.java