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 interfaceGetClusterCredentialsResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetClusterCredentialsResponse.Builderbuilder()StringdbPassword()A temporary password that authorizes the user name returned byDbUserto log on to the databaseDbName.StringdbUser()A database user name that is authorized to log on to the databaseDbNameusing the passwordDbPassword.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Instantexpiration()The date and time the password inDbPasswordexpires.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends GetClusterCredentialsResponse.Builder>serializableBuilderClass()GetClusterCredentialsResponse.BuildertoBuilder()StringtoString()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
DbNameusing 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 theDbGroupsparameter is specifed,DbUseris 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
DbNameusing 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 theDbGroupsparameter is specifed,DbUseris 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
DbUserto log on to the databaseDbName.- Returns:
- A temporary password that authorizes the user name returned by
DbUserto log on to the databaseDbName.
-
expiration
public final Instant expiration()
The date and time the password in
DbPasswordexpires.- Returns:
- The date and time the password in
DbPasswordexpires.
-
toBuilder
public GetClusterCredentialsResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetClusterCredentialsResponse.Builder,GetClusterCredentialsResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static GetClusterCredentialsResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetClusterCredentialsResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin 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:
getValueForFieldin classSdkResponse
-
-