public GlobalReplicationGroupInfo withGlobalReplicationGroupMemberRole(String globalReplicationGroupMemberRole) {
        setGlobalReplicationGroupMemberRole(globalReplicationGroupMemberRole);
        return this;
    }
<p>
The role of the replication group in a Global datastore. Can be primary or secondary.
</p>

@param globalReplicationGroupMemberRole
       The role of the replication group in a Global datastore. Can be primary or secondary.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/model/GlobalReplicationGroupInfo.java