Class GetCredentialsResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.redshiftserverless.model.RedshiftServerlessResponse
-
- software.amazon.awssdk.services.redshiftserverless.model.GetCredentialsResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetCredentialsResponse.Builder,GetCredentialsResponse>
@Generated("software.amazon.awssdk:codegen") public final class GetCredentialsResponse extends RedshiftServerlessResponse implements ToCopyableBuilder<GetCredentialsResponse.Builder,GetCredentialsResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetCredentialsResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetCredentialsResponse.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()InstantnextRefreshTime()The date and time of when theDbUserandDbPasswordauthorization refreshes.List<SdkField<?>>sdkFields()static Class<? extends GetCredentialsResponse.Builder>serializableBuilderClass()GetCredentialsResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.services.redshiftserverless.model.RedshiftServerlessResponse
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
-
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.
-
dbUser
public final String dbUser()
A database user name that is authorized to log on to the database
DbNameusing the passwordDbPassword. If the specifiedDbUserexists in the database, the new user name has the same database privileges as the the user named inDbUser. By default, the user is added to PUBLIC.- Returns:
- A database user name that is authorized to log on to the database
DbNameusing the passwordDbPassword. If the specifiedDbUserexists in the database, the new user name has the same database privileges as the the user named inDbUser. By default, the user is added to PUBLIC.
-
expiration
public final Instant expiration()
The date and time the password in
DbPasswordexpires.- Returns:
- The date and time the password in
DbPasswordexpires.
-
nextRefreshTime
public final Instant nextRefreshTime()
The date and time of when the
DbUserandDbPasswordauthorization refreshes.- Returns:
- The date and time of when the
DbUserandDbPasswordauthorization refreshes.
-
toBuilder
public GetCredentialsResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetCredentialsResponse.Builder,GetCredentialsResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static GetCredentialsResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetCredentialsResponse.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
-
-