public SortCondition withName(ListDomainsAttributeName name) {
        this.name = name.toString();
        return this;
    }
<p>
Field to be used for sorting the list of domains. It can be either the name or the expiration for a domain. Note
that if <code>filterCondition</code> is used in the same <a
href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains__ListDomains.html">ListDomains</a>
call, the field used for sorting has to be the same as the field used for filtering.
</p>

@param name
       Field to be used for sorting the list of domains. It can be either the name or the expiration for a
       domain. Note that if <code>filterCondition</code> is used in the same <a
       href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains__ListDomains.html"
       >ListDomains</a> call, the field used for sorting has to be the same as the field used for filtering.
@return Returns a reference to this object so that method calls can be chained together.
@see ListDomainsAttributeName
aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53domains/model/SortCondition.java