public Address withLocality(String locality) {
        setLocality(locality);
        return this;
    }
<p>
A string of the address locality.
</p>

@param locality
       A string of the address locality.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-identitystore/src/main/java/com/amazonaws/services/identitystore/model/Address.java