public class AlterRoleRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.alterRole
.
Alters a Role.
Modifier and Type | Class and Description |
---|---|
static class |
AlterRoleRequest.Action
A set of string constants for the
AlterRoleRequest parameter
action . |
Constructor and Description |
---|
AlterRoleRequest()
Constructs an AlterRoleRequest object with default parameters.
|
AlterRoleRequest(String name,
String action,
String value,
Map<String,String> options)
Constructs an AlterRoleRequest object with the specified 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.
|
String |
getAction()
Modification operation to be applied to the role.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getName()
Name of the role to be altered.
|
Map<String,String> |
getOptions()
Optional parameters.
|
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getValue()
The value of the modification, depending on
action . |
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.
|
AlterRoleRequest |
setAction(String action)
Modification operation to be applied to the role.
|
AlterRoleRequest |
setName(String name)
Name of the role to be altered.
|
AlterRoleRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
AlterRoleRequest |
setValue(String value)
The value of the modification, depending on
action . |
String |
toString() |
public AlterRoleRequest()
public AlterRoleRequest(String name, String action, String value, Map<String,String> options)
name
- Name of the role to be altered. Must be an existing role.action
- Modification operation to be applied to the role.
Supported values:
SET_COMMENT
: Sets the
comment for an internal role.
SET_RESOURCE_GROUP
: Sets the resource group for
an internal role. The resource group must exist,
otherwise, an empty string assigns the role to
the default resource group.
value
- The value of the modification, depending on action
.options
- Optional parameters. The default value is an empty
Map
.public static org.apache.avro.Schema getClassSchema()
public String getName()
name
.public AlterRoleRequest setName(String name)
name
- The new value for name
.this
to mimic the builder pattern.public String getAction()
SET_COMMENT
: Sets the comment for an
internal role.
SET_RESOURCE_GROUP
: Sets the
resource group for an internal role. The resource group must
exist, otherwise, an empty string assigns the role to the
default resource group.
action
.public AlterRoleRequest setAction(String action)
SET_COMMENT
: Sets the comment for an
internal role.
SET_RESOURCE_GROUP
: Sets the
resource group for an internal role. The resource group must
exist, otherwise, an empty string assigns the role to the
default resource group.
action
- The new value for action
.this
to mimic the builder pattern.public String getValue()
action
.value
.public AlterRoleRequest setValue(String value)
action
.value
- The new value for value
.this
to mimic the builder pattern.public Map<String,String> getOptions()
Map
.options
.public AlterRoleRequest setOptions(Map<String,String> options)
Map
.options
- The new value for options
.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.