Interface Credentials.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Credentials.Builder,Credentials>,SdkBuilder<Credentials.Builder,Credentials>,SdkPojo
- Enclosing class:
- Credentials
public static interface Credentials.Builder extends SdkPojo, CopyableBuilder<Credentials.Builder,Credentials>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Credentials.BuilderusernamePassword(Consumer<UsernamePassword.Builder> usernamePassword)The username and password that you use to connect to cluster endpoints.Credentials.BuilderusernamePassword(UsernamePassword usernamePassword)The username and password that you use to connect to cluster endpoints.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
usernamePassword
Credentials.Builder usernamePassword(UsernamePassword 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
default Credentials.Builder usernamePassword(Consumer<UsernamePassword.Builder> 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:
usernamePassword(UsernamePassword)
-
-