@Generated(value="software.amazon.awssdk:codegen") public class GetClusterCredentialsResponse extends RedshiftResponse implements ToCopyableBuilder<GetClusterCredentialsResponse.Builder,GetClusterCredentialsResponse>
Temporary credentials with authorization to log on to an Amazon Redshift database.
| Modifier and Type | Class and Description |
|---|---|
static interface |
GetClusterCredentialsResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static GetClusterCredentialsResponse.Builder |
builder() |
String |
dbPassword()
A temporary password that authorizes the user name returned by
DbUser to log on to the database
DbName. |
String |
dbUser()
A database user name that is authorized to log on to the database
DbName using the password
DbPassword. |
boolean |
equals(Object obj) |
Instant |
expiration()
The date and time the password in
DbPassword expires. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkResponse. |
int |
hashCode() |
static Class<? extends GetClusterCredentialsResponse.Builder> |
serializableBuilderClass() |
GetClusterCredentialsResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
sdkHttpResponsecopypublic 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.
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 dbPassword()
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 Instant expiration()
The date and time the password in DbPassword expires.
DbPassword expires.public GetClusterCredentialsResponse.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<GetClusterCredentialsResponse.Builder,GetClusterCredentialsResponse>toBuilder in class AwsResponsepublic static GetClusterCredentialsResponse.Builder builder()
public static Class<? extends GetClusterCredentialsResponse.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkResponseSdkResponse. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class) method will
again be available.getValueForField in class SdkResponsefieldName - The name of the member to be retrieved.clazz - The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.