public Address withPrimary(Boolean primary) {
        setPrimary(primary);
        return this;
    }
<p>
A Boolean value representing whether this is the primary address for the associated resource.
</p>

@param primary
       A Boolean value representing whether this is the primary address for the associated resource.
@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