public class HasRoleResponse extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.hasRole.| Modifier and Type | Class and Description |
|---|---|
static class |
HasRoleResponse.HasRole
A set of string constants for the
HasRoleResponse parameter
hasRole. |
static class |
HasRoleResponse.Info
A set of string constants for the
HasRoleResponse parameter
info. |
| Constructor and Description |
|---|
HasRoleResponse()
Constructs a HasRoleResponse object with default parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Object |
get(int index)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
boolean |
getHasRole()
Indicates whether the specified user has membership in the specified
target
role. |
Map<String,String> |
getInfo()
Additional information.
|
String |
getPrincipal()
Value of
principal |
String |
getRole()
role for which
membership is being checked |
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
int |
hashCode() |
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
HasRoleResponse |
setHasRole(boolean hasRole)
Indicates whether the specified user has membership in the specified
target
role. |
HasRoleResponse |
setInfo(Map<String,String> info)
Additional information.
|
HasRoleResponse |
setPrincipal(String principal)
Value of
principal |
HasRoleResponse |
setRole(String role)
role for which
membership is being checked |
String |
toString() |
public HasRoleResponse()
public static org.apache.avro.Schema getClassSchema()
public String getPrincipal()
principalprincipal.public HasRoleResponse setPrincipal(String principal)
principalprincipal - The new value for principal.this to mimic the builder pattern.public String getRole()
role for which
membership is being checkedrole.public HasRoleResponse setRole(String role)
role for which
membership is being checkedrole - The new value for role.this to mimic the builder pattern.public boolean getHasRole()
role.
Supported values:
true: User has membership in the role
false: User does not have membership in the role
hasRole.public HasRoleResponse setHasRole(boolean hasRole)
role.
Supported values:
true: User has membership in the role
false: User does not have membership in the role
hasRole - The new value for hasRole.this to mimic the builder pattern.public Map<String,String> getInfo()
DIRECT: TRUE when
principal is directly a member of the role.
Supported values:
The default value is FALSE.
Map.info.public HasRoleResponse setInfo(Map<String,String> info)
DIRECT: TRUE when
principal is directly a member of the role.
Supported values:
The default value is FALSE.
Map.info - The new value for info.this to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainerpublic Object get(int index)
get in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to getIndexOutOfBoundsExceptionpublic void put(int index,
Object value)
put in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to setvalue - the value to setIndexOutOfBoundsExceptionCopyright © 2025. All rights reserved.