public class CreateCredentialRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.createCredential(CreateCredentialRequest).
Create a new credential.
| Modifier and Type | Class and Description |
|---|---|
static class |
CreateCredentialRequest.Type
Type of the credential to be created.
|
| Constructor and Description |
|---|
CreateCredentialRequest()
Constructs a CreateCredentialRequest object with default parameters.
|
CreateCredentialRequest(String credentialName,
String type,
String identity,
String secret,
Map<String,String> options)
Constructs a CreateCredentialRequest 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.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getCredentialName() |
String |
getIdentity() |
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 |
getSecret() |
String |
getType() |
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.
|
CreateCredentialRequest |
setCredentialName(String credentialName) |
CreateCredentialRequest |
setIdentity(String identity) |
CreateCredentialRequest |
setOptions(Map<String,String> options) |
CreateCredentialRequest |
setSecret(String secret) |
CreateCredentialRequest |
setType(String type) |
String |
toString() |
public CreateCredentialRequest()
public CreateCredentialRequest(String credentialName, String type, String identity, String secret, Map<String,String> options)
credentialName - Name of the credential to be created. Must
contain only letters, digits, and underscores,
and cannot begin with a digit. Must not match an
existing credential name.type - Type of the credential to be created.
Supported values:
identity - User of the credential to be created.secret - Password of the credential to be created.options - Optional parameters. The default value is an empty
Map.public static org.apache.avro.Schema getClassSchema()
public String getCredentialName()
public CreateCredentialRequest setCredentialName(String credentialName)
credentialName - Name of the credential to be created. Must
contain only letters, digits, and underscores,
and cannot begin with a digit. Must not match an
existing credential name.this to mimic the builder pattern.public String getType()
public CreateCredentialRequest setType(String type)
type - Type of the credential to be created.
Supported values:
this to mimic the builder pattern.public String getIdentity()
public CreateCredentialRequest setIdentity(String identity)
identity - User of the credential to be created.this to mimic the builder pattern.public String getSecret()
public CreateCredentialRequest setSecret(String secret)
secret - Password of the credential to be created.this to mimic the builder pattern.public Map<String,String> getOptions()
Map.public CreateCredentialRequest 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.GenericContainerpublic Object get(int index)
get in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to getIndexOutOfBoundsExceptionpublic void put(int index,
Object value)
put in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to setvalue - the value to setIndexOutOfBoundsExceptionCopyright © 2024. All rights reserved.