Class CfnDataSource.CredentialPairProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnDataSource.CredentialPairProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.CredentialPairProperty>
- Enclosing interface:
CfnDataSource.CredentialPairProperty
@Stability(Stable)
public static final class CfnDataSource.CredentialPairProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.CredentialPairProperty>
A builder for
CfnDataSource.CredentialPairProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalternateDataSourceParameters
(List<? extends Object> alternateDataSourceParameters) Sets the value ofCfnDataSource.CredentialPairProperty.getAlternateDataSourceParameters()
alternateDataSourceParameters
(IResolvable alternateDataSourceParameters) Sets the value ofCfnDataSource.CredentialPairProperty.getAlternateDataSourceParameters()
build()
Builds the configured instance.Sets the value ofCfnDataSource.CredentialPairProperty.getPassword()
Sets the value ofCfnDataSource.CredentialPairProperty.getUsername()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
password
Sets the value ofCfnDataSource.CredentialPairProperty.getPassword()
- Parameters:
password
- Password. This parameter is required.- Returns:
this
-
username
Sets the value ofCfnDataSource.CredentialPairProperty.getUsername()
- Parameters:
username
- User name. This parameter is required.- Returns:
this
-
alternateDataSourceParameters
@Stability(Stable) public CfnDataSource.CredentialPairProperty.Builder alternateDataSourceParameters(IResolvable alternateDataSourceParameters) Sets the value ofCfnDataSource.CredentialPairProperty.getAlternateDataSourceParameters()
- Parameters:
alternateDataSourceParameters
- A set of alternate data source parameters that you want to share for these credentials. The credentials are applied in tandem with the data source parameters when you copy a data source by using a create or update request. The API operation compares theDataSourceParameters
structure that's in the request with the structures in theAlternateDataSourceParameters
allow list. If the structures are an exact match, the request is allowed to use the new data source with the existing credentials. If theAlternateDataSourceParameters
list is null, theDataSourceParameters
originally used with theseCredentials
is automatically allowed.- Returns:
this
-
alternateDataSourceParameters
@Stability(Stable) public CfnDataSource.CredentialPairProperty.Builder alternateDataSourceParameters(List<? extends Object> alternateDataSourceParameters) Sets the value ofCfnDataSource.CredentialPairProperty.getAlternateDataSourceParameters()
- Parameters:
alternateDataSourceParameters
- A set of alternate data source parameters that you want to share for these credentials. The credentials are applied in tandem with the data source parameters when you copy a data source by using a create or update request. The API operation compares theDataSourceParameters
structure that's in the request with the structures in theAlternateDataSourceParameters
allow list. If the structures are an exact match, the request is allowed to use the new data source with the existing credentials. If theAlternateDataSourceParameters
list is null, theDataSourceParameters
originally used with theseCredentials
is automatically allowed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSource.CredentialPairProperty>
- Returns:
- a new instance of
CfnDataSource.CredentialPairProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-