Interface RedshiftCredentials.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RedshiftCredentials.Builder,
,RedshiftCredentials> SdkBuilder<RedshiftCredentials.Builder,
,RedshiftCredentials> SdkPojo
- Enclosing class:
RedshiftCredentials
@Mutable
@NotThreadSafe
public static interface RedshiftCredentials.Builder
extends SdkPojo, CopyableBuilder<RedshiftCredentials.Builder,RedshiftCredentials>
-
Method Summary
Modifier and TypeMethodDescriptionThe secret ARN of the Amazon Redshift credentials of a connection.default RedshiftCredentials.Builder
usernamePassword
(Consumer<UsernamePassword.Builder> usernamePassword) The username and password of the Amazon Redshift credentials of a connection.usernamePassword
(UsernamePassword usernamePassword) The username and password of the Amazon Redshift credentials of a connection.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 Details
-
secretArn
The secret ARN of the Amazon Redshift credentials of a connection.
- Parameters:
secretArn
- The secret ARN of the Amazon Redshift credentials of a connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usernamePassword
The username and password of the Amazon Redshift credentials of a connection.
- Parameters:
usernamePassword
- The username and password of the Amazon Redshift credentials of a connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usernamePassword
default RedshiftCredentials.Builder usernamePassword(Consumer<UsernamePassword.Builder> usernamePassword) The username and password of the Amazon Redshift credentials of a connection.
This is a convenience method that creates an instance of theUsernamePassword.Builder
avoiding the need to create one manually viaUsernamePassword.builder()
.When the
Consumer
completes,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:
-