public static final class CfnDataSource.DataSourceCredentialsProperty.Builder
extends java.lang.Object
CfnDataSource.DataSourceCredentialsProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnDataSource.DataSourceCredentialsProperty |
build()
Builds the configured instance.
|
CfnDataSource.DataSourceCredentialsProperty.Builder |
copySourceArn(java.lang.String copySourceArn)
Sets the value of
CfnDataSource.DataSourceCredentialsProperty.getCopySourceArn() |
CfnDataSource.DataSourceCredentialsProperty.Builder |
credentialPair(CfnDataSource.CredentialPairProperty credentialPair)
Sets the value of
CfnDataSource.DataSourceCredentialsProperty.getCredentialPair() |
CfnDataSource.DataSourceCredentialsProperty.Builder |
credentialPair(IResolvable credentialPair)
Sets the value of
CfnDataSource.DataSourceCredentialsProperty.getCredentialPair() |
CfnDataSource.DataSourceCredentialsProperty.Builder |
secretArn(java.lang.String secretArn)
Sets the value of
CfnDataSource.DataSourceCredentialsProperty.getSecretArn() |
public CfnDataSource.DataSourceCredentialsProperty.Builder copySourceArn(java.lang.String copySourceArn)
CfnDataSource.DataSourceCredentialsProperty.getCopySourceArn()
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.this
public CfnDataSource.DataSourceCredentialsProperty.Builder credentialPair(IResolvable credentialPair)
CfnDataSource.DataSourceCredentialsProperty.getCredentialPair()
credentialPair
- Credential pair.
For more information, see [CredentialPair](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_CredentialPair.html)
.this
public CfnDataSource.DataSourceCredentialsProperty.Builder credentialPair(CfnDataSource.CredentialPairProperty credentialPair)
CfnDataSource.DataSourceCredentialsProperty.getCredentialPair()
credentialPair
- Credential pair.
For more information, see [CredentialPair](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_CredentialPair.html)
.this
public CfnDataSource.DataSourceCredentialsProperty.Builder secretArn(java.lang.String secretArn)
CfnDataSource.DataSourceCredentialsProperty.getSecretArn()
secretArn
- The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager.this
public CfnDataSource.DataSourceCredentialsProperty build()
CfnDataSource.DataSourceCredentialsProperty
java.lang.NullPointerException
- if any required attribute was not provided