Class CfnDataSource.DataSourceCredentialsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnDataSource.DataSourceCredentialsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.DataSourceCredentialsProperty>
- Enclosing interface:
CfnDataSource.DataSourceCredentialsProperty
@Stability(Stable)
public static final class CfnDataSource.DataSourceCredentialsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.DataSourceCredentialsProperty>
A builder for
CfnDataSource.DataSourceCredentialsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.copySourceArn
(String copySourceArn) Sets the value ofCfnDataSource.DataSourceCredentialsProperty.getCopySourceArn()
credentialPair
(IResolvable credentialPair) Sets the value ofCfnDataSource.DataSourceCredentialsProperty.getCredentialPair()
credentialPair
(CfnDataSource.CredentialPairProperty credentialPair) Sets the value ofCfnDataSource.DataSourceCredentialsProperty.getCredentialPair()
Sets the value ofCfnDataSource.DataSourceCredentialsProperty.getSecretArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copySourceArn
@Stability(Stable) public CfnDataSource.DataSourceCredentialsProperty.Builder copySourceArn(String copySourceArn) Sets the value ofCfnDataSource.DataSourceCredentialsProperty.getCopySourceArn()
- Parameters:
copySourceArn
- The Amazon Resource Name (ARN) of a data source that has the credential pair that you want to use. WhenCopySourceArn
is not null, the credential pair from the data source in the ARN is used as the credentials for theDataSourceCredentials
structure.- Returns:
this
-
credentialPair
@Stability(Stable) public CfnDataSource.DataSourceCredentialsProperty.Builder credentialPair(IResolvable credentialPair) Sets the value ofCfnDataSource.DataSourceCredentialsProperty.getCredentialPair()
- Parameters:
credentialPair
- Credential pair. For more information, see[CredentialPair](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_CredentialPair.html)
.- Returns:
this
-
credentialPair
@Stability(Stable) public CfnDataSource.DataSourceCredentialsProperty.Builder credentialPair(CfnDataSource.CredentialPairProperty credentialPair) Sets the value ofCfnDataSource.DataSourceCredentialsProperty.getCredentialPair()
- Parameters:
credentialPair
- Credential pair. For more information, see[CredentialPair](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_CredentialPair.html)
.- Returns:
this
-
secretArn
@Stability(Stable) public CfnDataSource.DataSourceCredentialsProperty.Builder secretArn(String secretArn) Sets the value ofCfnDataSource.DataSourceCredentialsProperty.getSecretArn()
- Parameters:
secretArn
- The Amazon Resource Name (ARN) of the secret associated with the data source in AWS Secrets Manager .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSource.DataSourceCredentialsProperty>
- Returns:
- a new instance of
CfnDataSource.DataSourceCredentialsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-