public class AlterRoleRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.alterRole(AlterRoleRequest)
.
Alters a Role.
Modifier and Type | Class and Description |
---|---|
static class |
AlterRoleRequest.Action
Modification operation to be applied to the role.
|
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() |
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() |
Map<String,String> |
getOptions() |
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getValue() |
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) |
AlterRoleRequest |
setName(String name) |
AlterRoleRequest |
setOptions(Map<String,String> options) |
AlterRoleRequest |
setValue(String value) |
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_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()
public AlterRoleRequest setName(String name)
name
- Name of the role to be altered. Must be an existing role.this
to mimic the builder pattern.public String getAction()
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.
public AlterRoleRequest setAction(String action)
action
- Modification operation to be applied to the role.
Supported values:
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.
this
to mimic the builder pattern.public String getValue()
action
.public AlterRoleRequest setValue(String value)
value
- The value of the modification, depending on action
.this
to mimic the builder pattern.public Map<String,String> getOptions()
Map
.public AlterRoleRequest setOptions(Map<String,String> options)
options
- Optional parameters. The default value is an empty
Map
.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 © 2020. All rights reserved.