public class RedshiftDatabaseCredentials extends Object implements Serializable, Cloneable
Describes the database credentials for connecting to a database on an Amazon Redshift cluster.
Constructor and Description |
---|
RedshiftDatabaseCredentials() |
Modifier and Type | Method and Description |
---|---|
RedshiftDatabaseCredentials |
clone() |
boolean |
equals(Object obj) |
String |
getPassword()
A password to be used by Amazon ML to connect to a database on an
Amazon Redshift cluster.
|
String |
getUsername()
A username to be used by Amazon Machine Learning (Amazon ML)to connect
to a database on an Amazon Redshift cluster.
|
int |
hashCode() |
void |
setPassword(String password)
A password to be used by Amazon ML to connect to a database on an
Amazon Redshift cluster.
|
void |
setUsername(String username)
A username to be used by Amazon Machine Learning (Amazon ML)to connect
to a database on an Amazon Redshift cluster.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RedshiftDatabaseCredentials |
withPassword(String password)
A password to be used by Amazon ML to connect to a database on an
Amazon Redshift cluster.
|
RedshiftDatabaseCredentials |
withUsername(String username)
A username to be used by Amazon Machine Learning (Amazon ML)to connect
to a database on an Amazon Redshift cluster.
|
public String getUsername()
RedshiftSelectSqlQuery
query. The username should be
valid for an Amazon Redshift USER.
Constraints:
Length: 1 - 128
RedshiftSelectSqlQuery
query. The username should be
valid for an Amazon Redshift USER.public void setUsername(String username)
RedshiftSelectSqlQuery
query. The username should be
valid for an Amazon Redshift USER.
Constraints:
Length: 1 - 128
username
- A username to be used by Amazon Machine Learning (Amazon ML)to connect
to a database on an Amazon Redshift cluster. The username should have
sufficient permissions to execute the
RedshiftSelectSqlQuery
query. The username should be
valid for an Amazon Redshift USER.public RedshiftDatabaseCredentials withUsername(String username)
RedshiftSelectSqlQuery
query. The username should be
valid for an Amazon Redshift USER.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
username
- A username to be used by Amazon Machine Learning (Amazon ML)to connect
to a database on an Amazon Redshift cluster. The username should have
sufficient permissions to execute the
RedshiftSelectSqlQuery
query. The username should be
valid for an Amazon Redshift USER.public String getPassword()
RedshiftSelectSqlQuery
query.
The password should be valid for an Amazon Redshift USER.
Constraints:
Length: 8 - 64
RedshiftSelectSqlQuery
query.
The password should be valid for an Amazon Redshift USER.public void setPassword(String password)
RedshiftSelectSqlQuery
query.
The password should be valid for an Amazon Redshift USER.
Constraints:
Length: 8 - 64
password
- A password to be used by Amazon ML to connect to a database on an
Amazon Redshift cluster. The password should have sufficient
permissions to execute a RedshiftSelectSqlQuery
query.
The password should be valid for an Amazon Redshift USER.public RedshiftDatabaseCredentials withPassword(String password)
RedshiftSelectSqlQuery
query.
The password should be valid for an Amazon Redshift USER.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 8 - 64
password
- A password to be used by Amazon ML to connect to a database on an
Amazon Redshift cluster. The password should have sufficient
permissions to execute a RedshiftSelectSqlQuery
query.
The password should be valid for an Amazon Redshift USER.public String toString()
toString
in class Object
Object.toString()
public RedshiftDatabaseCredentials clone()
Copyright © 2015. All rights reserved.