Interface DataSourceCredentials.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DataSourceCredentials.Builder,,DataSourceCredentials> SdkBuilder<DataSourceCredentials.Builder,,DataSourceCredentials> SdkPojo
- Enclosing class:
DataSourceCredentials
public static interface DataSourceCredentials.Builder
extends SdkPojo, CopyableBuilder<DataSourceCredentials.Builder,DataSourceCredentials>
-
Method Summary
Modifier and TypeMethodDescriptioncopySourceArn(String copySourceArn) The Amazon Resource Name (ARN) of a data source that has the credential pair that you want to use.default DataSourceCredentials.BuildercredentialPair(Consumer<CredentialPair.Builder> credentialPair) Credential pair.credentialPair(CredentialPair credentialPair) Credential pair.The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager.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, sdkFields
-
Method Details
-
credentialPair
Credential pair. For more information, see
CredentialPair.- Parameters:
credentialPair- Credential pair. For more information, seeCredentialPair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
credentialPair
default DataSourceCredentials.Builder credentialPair(Consumer<CredentialPair.Builder> credentialPair) Credential pair. For more information, see
This is a convenience method that creates an instance of theCredentialPair.CredentialPair.Builderavoiding the need to create one manually viaCredentialPair.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocredentialPair(CredentialPair).- Parameters:
credentialPair- a consumer that will call methods onCredentialPair.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
copySourceArn
The Amazon Resource Name (ARN) of a data source that has the credential pair that you want to use. When
CopySourceArnis not null, the credential pair from the data source in the ARN is used as the credentials for theDataSourceCredentialsstructure.- Parameters:
copySourceArn- The Amazon Resource Name (ARN) of a data source that has the credential pair that you want to use. WhenCopySourceArnis not null, the credential pair from the data source in the ARN is used as the credentials for theDataSourceCredentialsstructure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secretArn
The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager.
- Parameters:
secretArn- The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-