public class AlterUserRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.alterUser(AlterUserRequest)
.
Alters a user.
Modifier and Type | Class and Description |
---|---|
static class |
AlterUserRequest.Action
Modification operation to be applied to the user.
|
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() |
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.
|
AlterUserRequest |
setAction(String action) |
AlterUserRequest |
setName(String name) |
AlterUserRequest |
setOptions(Map<String,String> options) |
AlterUserRequest |
setValue(String value) |
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_PASSWORD
: Sets the password of the user. The user
must be an internal user.
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 AlterUserRequest setName(String name)
name
- Name of the user to be altered. Must be an existing user.this
to mimic the builder pattern.public String getAction()
SET_PASSWORD
: Sets the password of the user. The user must be
an internal user.
public AlterUserRequest setAction(String action)
action
- Modification operation to be applied to the user.
Supported values:
SET_PASSWORD
: Sets the password of the user. The user
must be an internal user.
this
to mimic the builder pattern.public String getValue()
action
.public AlterUserRequest 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 AlterUserRequest 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 © 2019. All rights reserved.