public NodeGroup withPrimaryEndpoint(Endpoint primaryEndpoint) {
        setPrimaryEndpoint(primaryEndpoint);
        return this;
    }
<p>
The endpoint of the primary node in this node group (shard).
</p>

@param primaryEndpoint
       The endpoint of the primary node in this node group (shard).
@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/NodeGroup.java