@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetClusterCredentialsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Temporary credentials with authorization to log on 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 the password in
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 the password in
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 the password in
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 specified DbUser exists in the database, the new user name has the same database
privileges as the the user named in DbUser. By default, the user is added to PUBLIC. If the DbGroups
parameter is specifed, DbUser
is added to the listed groups for any sessions created using these
credentials.
dbUser
- A database user name that is authorized to log on to the database DbName
using the password
DbPassword
. If the specified DbUser exists in the database, the new user name has the same
database privileges as the the user named in DbUser. By default, the user is added to PUBLIC. If the
DbGroups
parameter is specifed, DbUser
is added to the listed groups for any
sessions created using these credentials.public String getDbUser()
A database user name that is authorized to log on to the database DbName
using the password
DbPassword
. If the specified DbUser exists in the database, the new user name has the same database
privileges as the the user named in DbUser. By default, the user is added to PUBLIC. If the DbGroups
parameter is specifed, DbUser
is added to the listed groups for any sessions created using these
credentials.
DbName
using the password
DbPassword
. If the specified DbUser exists in the database, the new user name has the same
database privileges as the the user named in DbUser. By default, the user is added to PUBLIC. If the
DbGroups
parameter is specifed, DbUser
is added to the listed groups for any
sessions created using these credentials.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 specified DbUser exists in the database, the new user name has the same database
privileges as the the user named in DbUser. By default, the user is added to PUBLIC. If the DbGroups
parameter is specifed, DbUser
is added to the listed groups for any sessions created using these
credentials.
dbUser
- A database user name that is authorized to log on to the database DbName
using the password
DbPassword
. If the specified DbUser exists in the database, the new user name has the same
database privileges as the the user named in DbUser. By default, the user is added to PUBLIC. If the
DbGroups
parameter is specifed, DbUser
is added to the listed groups for any
sessions created using these credentials.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 the password in DbPassword
expires.
expiration
- The date and time the password in DbPassword
expires.public Date getExpiration()
The date and time the password in DbPassword
expires.
DbPassword
expires.public GetClusterCredentialsResult withExpiration(Date expiration)
The date and time the password in DbPassword
expires.
expiration
- The date and time the password in DbPassword
expires.public String toString()
toString
in class Object
Object.toString()
public GetClusterCredentialsResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.