public class ShowSecurityResponse extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.showSecurity
.Modifier and Type | Class and Description |
---|---|
static class |
ShowSecurityResponse.Types
A set of string constants for the
ShowSecurityResponse parameter
types . |
Constructor and Description |
---|
ShowSecurityResponse()
Constructs a ShowSecurityResponse 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.
|
Map<String,String> |
getInfo()
Additional information.
|
Map<String,List<Map<String,String>>> |
getPermissions()
Map of user/role name to a list of permissions directly granted to that
user/role.
|
Map<String,String> |
getResourceGroups()
Map of user name to resource group name.
|
Map<String,List<String>> |
getRoles()
Map of user/role name to a list of names of roles of which that
user/role is a member.
|
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
Map<String,String> |
getTypes()
Map of user/role name to the type of that user/role.
|
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.
|
ShowSecurityResponse |
setInfo(Map<String,String> info)
Additional information.
|
ShowSecurityResponse |
setPermissions(Map<String,List<Map<String,String>>> permissions)
Map of user/role name to a list of permissions directly granted to that
user/role.
|
ShowSecurityResponse |
setResourceGroups(Map<String,String> resourceGroups)
Map of user name to resource group name.
|
ShowSecurityResponse |
setRoles(Map<String,List<String>> roles)
Map of user/role name to a list of names of roles of which that
user/role is a member.
|
ShowSecurityResponse |
setTypes(Map<String,String> types)
Map of user/role name to the type of that user/role.
|
String |
toString() |
public ShowSecurityResponse()
public static org.apache.avro.Schema getClassSchema()
public Map<String,String> getTypes()
INTERNAL_USER
: A user whose
credentials are managed by the database system.
EXTERNAL_USER
: A user whose
credentials are managed by an external LDAP.
ROLE
: A role.
types
.public ShowSecurityResponse setTypes(Map<String,String> types)
INTERNAL_USER
: A user whose
credentials are managed by the database system.
EXTERNAL_USER
: A user whose
credentials are managed by an external LDAP.
ROLE
: A role.
types
- The new value for types
.this
to mimic the builder pattern.public Map<String,List<String>> getRoles()
roles
.public ShowSecurityResponse setRoles(Map<String,List<String>> roles)
roles
- The new value for roles
.this
to mimic the builder pattern.public Map<String,List<Map<String,String>>> getPermissions()
permissions
.public ShowSecurityResponse setPermissions(Map<String,List<Map<String,String>>> permissions)
permissions
- The new value for permissions
.this
to mimic the builder pattern.public Map<String,String> getResourceGroups()
resourceGroups
.public ShowSecurityResponse setResourceGroups(Map<String,String> resourceGroups)
resourceGroups
- The new value for resourceGroups
.this
to mimic the builder pattern.public Map<String,String> getInfo()
info
.public ShowSecurityResponse setInfo(Map<String,String> info)
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.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
Copyright © 2025. All rights reserved.