@Generated(value="software.amazon.awssdk:codegen") public final class Credentials extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Credentials.Builder,Credentials>
The credentials that you can use to connect to cluster endpoints. Credentials consist of a username and a password.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Credentials.Builder |
static class |
Credentials.Type |
| Modifier and Type | Method and Description |
|---|---|
static Credentials.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static Credentials |
fromUsernamePassword(Consumer<UsernamePassword.Builder> usernamePassword)
Create an instance of this class with
usernamePassword() initialized to the given value. |
static Credentials |
fromUsernamePassword(UsernamePassword usernamePassword)
Create an instance of this class with
usernamePassword() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Credentials.Builder> |
serializableBuilderClass() |
Credentials.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Credentials.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
UsernamePassword |
usernamePassword()
The username and password that you use to connect to cluster endpoints.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final UsernamePassword usernamePassword()
The username and password that you use to connect to cluster endpoints.
public Credentials.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Credentials.Builder,Credentials>public static Credentials.Builder builder()
public static Class<? extends Credentials.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static Credentials fromUsernamePassword(UsernamePassword usernamePassword)
usernamePassword() initialized to the given value.
The username and password that you use to connect to cluster endpoints.
usernamePassword - The username and password that you use to connect to cluster endpoints.public static Credentials fromUsernamePassword(Consumer<UsernamePassword.Builder> usernamePassword)
usernamePassword() initialized to the given value.
The username and password that you use to connect to cluster endpoints.
usernamePassword - The username and password that you use to connect to cluster endpoints.public Credentials.Type type()
Credentials.Type.UNKNOWN_TO_SDK_VERSION if the
service returned a member that is only known to a newer SDK version.
When this class is created directly in your code, this will be Credentials.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.