public class AlterUserRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.alterUser
.
Alters a user.
Modifier and Type | Class and Description |
---|---|
static class |
AlterUserRequest.Action
A set of string constants for the
AlterUserRequest parameter
action . |
Constructor and Description |
---|
AlterUserRequest()
Constructs an AlterUserRequest object with default parameters.
|
AlterUserRequest(String name,
String action,
String value,
Map<String,String> options)
Constructs an AlterUserRequest 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 user.
|
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 user 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.
|
AlterUserRequest |
setAction(String action)
Modification operation to be applied to the user.
|
AlterUserRequest |
setName(String name)
Name of the user to be altered.
|
AlterUserRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
AlterUserRequest |
setValue(String value)
The value of the modification, depending on
action . |
String |
toString() |
public AlterUserRequest()
public AlterUserRequest(String name, String action, String value, Map<String,String> options)
name
- Name of the user to be altered. Must be an existing user.action
- Modification operation to be applied to the user.
Supported values:
SET_ACTIVATED
: Is
the user allowed to login.
TRUE
: User may login
FALSE
: User may not login
SET_COMMENT
: Sets the
comment for an internal user.
SET_DEFAULT_SCHEMA
: Set the default_schema for
an internal user. An empty string means the user
will have no default schema.
SET_PASSWORD
: Sets
the password of the user. The user must be an
internal user.
SET_RESOURCE_GROUP
: Sets the resource group for
an internal user. The resource group must exist,
otherwise, an empty string assigns the user 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 AlterUserRequest setName(String name)
name
- The new value for name
.this
to mimic the builder pattern.public String getAction()
SET_ACTIVATED
: Is the user allowed
to login.
TRUE
: User may login
FALSE
: User may not login
SET_COMMENT
: Sets the comment for an
internal user.
SET_DEFAULT_SCHEMA
: Set the
default_schema for an internal user. An empty string means the
user will have no default schema.
SET_PASSWORD
: Sets the password of
the user. The user must be an internal user.
SET_RESOURCE_GROUP
: Sets the
resource group for an internal user. The resource group must
exist, otherwise, an empty string assigns the user to the
default resource group.
action
.public AlterUserRequest setAction(String action)
SET_ACTIVATED
: Is the user allowed
to login.
TRUE
: User may login
FALSE
: User may not login
SET_COMMENT
: Sets the comment for an
internal user.
SET_DEFAULT_SCHEMA
: Set the
default_schema for an internal user. An empty string means the
user will have no default schema.
SET_PASSWORD
: Sets the password of
the user. The user must be an internal user.
SET_RESOURCE_GROUP
: Sets the
resource group for an internal user. The resource group must
exist, otherwise, an empty string assigns the user to the
default resource group.
action
- The new value for action
.this
to mimic the builder pattern.public String getValue()
action
.value
.public AlterUserRequest setValue(String value)
action
.value
- The new value for value
.this
to mimic the builder pattern.public Map<String,String> getOptions()
Map
.options
.public AlterUserRequest 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.