public class CreateCredentialRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.createCredential
.
Create a new credential.
Modifier and Type | Class and Description |
---|---|
static class |
CreateCredentialRequest.Type
A set of string constants for the
CreateCredentialRequest
parameter type . |
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()
Name of the credential to be created.
|
String |
getIdentity()
User of the credential to be created.
|
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 |
getSecret()
Password of the credential to be created.
|
String |
getType()
Type of the credential to be created.
|
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)
Name of the credential to be created.
|
CreateCredentialRequest |
setIdentity(String identity)
User of the credential to be created.
|
CreateCredentialRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
CreateCredentialRequest |
setSecret(String secret)
Password of the credential to be created.
|
CreateCredentialRequest |
setType(String type)
Type of the credential to be created.
|
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()
credentialName
.public CreateCredentialRequest setCredentialName(String credentialName)
credentialName
- The new value for credentialName
.this
to mimic the builder pattern.public String getType()
type
.public CreateCredentialRequest setType(String type)
type
- The new value for type
.this
to mimic the builder pattern.public String getIdentity()
identity
.public CreateCredentialRequest setIdentity(String identity)
identity
- The new value for identity
.this
to mimic the builder pattern.public String getSecret()
secret
.public CreateCredentialRequest setSecret(String secret)
secret
- The new value for secret
.this
to mimic the builder pattern.public Map<String,String> getOptions()
Map
.options
.public CreateCredentialRequest 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.