@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetClusterCredentialsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Temporary credentials with authorization to log in to an Amazon Redshift database.
Constructor and Description |
---|
GetClusterCredentialsResult() |
Modifier and Type | Method and Description |
---|---|
GetClusterCredentialsResult |
clone() |
boolean |
equals(Object obj) |
String |
getDbPassword()
A temporary password that authorizes the user name returned by
DbUser to log on to the database
DbName . |
String |
getDbUser()
A database user name that is authorized to log on to the database
DbName using the password
DbPassword . |
Date |
getExpiration()
The date and time
DbPassword expires. |
int |
hashCode() |
void |
setDbPassword(String dbPassword)
A temporary password that authorizes the user name returned by
DbUser to log on to the database
DbName . |
void |
setDbUser(String dbUser)
A database user name that is authorized to log on to the database
DbName using the password
DbPassword . |
void |
setExpiration(Date expiration)
The date and time
DbPassword expires. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
GetClusterCredentialsResult |
withDbPassword(String dbPassword)
A temporary password that authorizes the user name returned by
DbUser to log on to the database
DbName . |
GetClusterCredentialsResult |
withDbUser(String dbUser)
A database user name that is authorized to log on to the database
DbName using the password
DbPassword . |
GetClusterCredentialsResult |
withExpiration(Date expiration)
The date and time
DbPassword expires. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setDbUser(String dbUser)
A database user name that is authorized to log on to the database DbName
using the password
DbPassword
. If the DbGroups
parameter is specifed, DbUser
is added to the
listed groups for the current session. The user name is prefixed with IAM:
for an existing user name
or IAMA:
if the user was auto-created.
dbUser
- A database user name that is authorized to log on to the database DbName
using the password
DbPassword
. If the DbGroups
parameter is specifed, DbUser
is added
to the listed groups for the current session. The user name is prefixed with IAM:
for an
existing user name or IAMA:
if the user was auto-created.public String getDbUser()
A database user name that is authorized to log on to the database DbName
using the password
DbPassword
. If the DbGroups
parameter is specifed, DbUser
is added to the
listed groups for the current session. The user name is prefixed with IAM:
for an existing user name
or IAMA:
if the user was auto-created.
DbName
using the password
DbPassword
. If the DbGroups
parameter is specifed, DbUser
is added
to the listed groups for the current session. The user name is prefixed with IAM:
for an
existing user name or IAMA:
if the user was auto-created.public GetClusterCredentialsResult withDbUser(String dbUser)
A database user name that is authorized to log on to the database DbName
using the password
DbPassword
. If the DbGroups
parameter is specifed, DbUser
is added to the
listed groups for the current session. The user name is prefixed with IAM:
for an existing user name
or IAMA:
if the user was auto-created.
dbUser
- A database user name that is authorized to log on to the database DbName
using the password
DbPassword
. If the DbGroups
parameter is specifed, DbUser
is added
to the listed groups for the current session. The user name is prefixed with IAM:
for an
existing user name or IAMA:
if the user was auto-created.public void setDbPassword(String dbPassword)
A temporary password that authorizes the user name returned by DbUser
to log on to the database
DbName
.
dbPassword
- A temporary password that authorizes the user name returned by DbUser
to log on to the
database DbName
.public String getDbPassword()
A temporary password that authorizes the user name returned by DbUser
to log on to the database
DbName
.
DbUser
to log on to the
database DbName
.public GetClusterCredentialsResult withDbPassword(String dbPassword)
A temporary password that authorizes the user name returned by DbUser
to log on to the database
DbName
.
dbPassword
- A temporary password that authorizes the user name returned by DbUser
to log on to the
database DbName
.public void setExpiration(Date expiration)
The date and time DbPassword
expires.
expiration
- The date and time DbPassword
expires.public Date getExpiration()
The date and time DbPassword
expires.
DbPassword
expires.public GetClusterCredentialsResult withExpiration(Date expiration)
The date and time DbPassword
expires.
expiration
- The date and time DbPassword
expires.public String toString()
toString
in class Object
Object.toString()
public GetClusterCredentialsResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.