Class GetClusterCredentialsResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.redshift.model.RedshiftResponse
-
- software.amazon.awssdk.services.redshift.model.GetClusterCredentialsResponse
-
- All Implemented Interfaces:
SdkPojo
,ToCopyableBuilder<GetClusterCredentialsResponse.Builder,GetClusterCredentialsResponse>
@Generated("software.amazon.awssdk:codegen") public final class GetClusterCredentialsResponse extends RedshiftResponse implements ToCopyableBuilder<GetClusterCredentialsResponse.Builder,GetClusterCredentialsResponse>
Temporary credentials with authorization to log on to an Amazon Redshift database.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
GetClusterCredentialsResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetClusterCredentialsResponse.Builder
builder()
String
dbPassword()
A temporary password that authorizes the user name returned byDbUser
to log on to the databaseDbName
.String
dbUser()
A database user name that is authorized to log on to the databaseDbName
using the passwordDbPassword
.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
Instant
expiration()
The date and time the password inDbPassword
expires.<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
List<SdkField<?>>
sdkFields()
static Class<? extends GetClusterCredentialsResponse.Builder>
serializableBuilderClass()
GetClusterCredentialsResponse.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.services.redshift.model.RedshiftResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
dbUser
public final String dbUser()
A database user name that is authorized to log on to the database
DbName
using the passwordDbPassword
. If the specified DbUser exists in the database, the new user name has the same database permissions as the the user named in DbUser. By default, the user is added to PUBLIC. If theDbGroups
parameter is specifed,DbUser
is added to the listed groups for any sessions created using these credentials.- Returns:
- A database user name that is authorized to log on to the database
DbName
using the passwordDbPassword
. If the specified DbUser exists in the database, the new user name has the same database permissions as the the user named in DbUser. By default, the user is added to PUBLIC. If theDbGroups
parameter is specifed,DbUser
is added to the listed groups for any sessions created using these credentials.
-
dbPassword
public final String dbPassword()
A temporary password that authorizes the user name returned by
DbUser
to log on to the databaseDbName
.- Returns:
- A temporary password that authorizes the user name returned by
DbUser
to log on to the databaseDbName
.
-
expiration
public final Instant expiration()
The date and time the password in
DbPassword
expires.- Returns:
- The date and time the password in
DbPassword
expires.
-
toBuilder
public GetClusterCredentialsResponse.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<GetClusterCredentialsResponse.Builder,GetClusterCredentialsResponse>
- Specified by:
toBuilder
in classAwsResponse
-
builder
public static GetClusterCredentialsResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetClusterCredentialsResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equals
in classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForField
in classSdkResponse
-
-