Interface Credentials.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Credentials.Builder,,Credentials> SdkBuilder<Credentials.Builder,,Credentials> SdkPojo
- Enclosing class:
Credentials
@Mutable
@NotThreadSafe
public static interface Credentials.Builder
extends SdkPojo, CopyableBuilder<Credentials.Builder,Credentials>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Credentials.BuilderusernamePassword(Consumer<UsernamePassword.Builder> usernamePassword) The username and password that you use to connect to cluster endpoints.usernamePassword(UsernamePassword usernamePassword) The username and password that you use to connect to cluster endpoints.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
usernamePassword
The username and password that you use to connect to cluster endpoints.
- Parameters:
usernamePassword- The username and password that you use to connect to cluster endpoints.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usernamePassword
The username and password that you use to connect to cluster endpoints.
This is a convenience method that creates an instance of theUsernamePassword.Builderavoiding the need to create one manually viaUsernamePassword.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tousernamePassword(UsernamePassword).- Parameters:
usernamePassword- a consumer that will call methods onUsernamePassword.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-