Class UserRole

java.lang.Object
com.couchbase.client.java.cluster.UserRole

@Uncommitted
@Public
public class UserRole
extends Object
Authorizing role for the user
Since:
2.4.4
Author:
Subhashni Balakrishnan
  • Constructor Details

    • UserRole

      public UserRole​(String role)
    • UserRole

      public UserRole​(String role, String bucket)
  • Method Details

    • role

      public String role()
      Get the role set
      Returns:
      role
    • bucket

      public String bucket()
      Get the bucket for which the role is set
      Returns:
      bucket name
    • toString

      public String toString()
      Overrides:
      toString in class Object