public EntityReference withIdentifier(EntityIdentifier identifier) {
        setIdentifier(identifier);
        return this;
    }
<p>
The identifier of the entity. It can consist of either an EntityType and EntityId, a principal, or a resource.
</p>

@param identifier
       The identifier of the entity. It can consist of either an EntityType and EntityId, a principal, or a
       resource.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-verifiedpermissions/src/main/java/com/amazonaws/services/verifiedpermissions/model/EntityReference.java