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 Details

    • credentialPair

      DataSourceCredentials.Builder credentialPair(CredentialPair credentialPair)

      Credential pair. For more information, see CredentialPair .

      Parameters:
      credentialPair - Credential pair. For more information, see CredentialPair .
      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 CredentialPair .

      This is a convenience method that creates an instance of the CredentialPair.Builder avoiding the need to create one manually via CredentialPair.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to credentialPair(CredentialPair).

      Parameters:
      credentialPair - a consumer that will call methods on CredentialPair.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • copySourceArn

      DataSourceCredentials.Builder copySourceArn(String copySourceArn)

      The Amazon Resource Name (ARN) of a data source that has the credential pair that you want to use. When CopySourceArn is not null, the credential pair from the data source in the ARN is used as the credentials for the DataSourceCredentials structure.

      Parameters:
      copySourceArn - The Amazon Resource Name (ARN) of a data source that has the credential pair that you want to use. When CopySourceArn is not null, the credential pair from the data source in the ARN is used as the credentials for the DataSourceCredentials structure.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • secretArn

      DataSourceCredentials.Builder secretArn(String 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.