Class CfnDataSourcePropsMixin.CredentialPairProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.quicksight.mixins.CfnDataSourcePropsMixin.CredentialPairProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSourcePropsMixin.CredentialPairProperty>
- Enclosing interface:
CfnDataSourcePropsMixin.CredentialPairProperty
@Stability(Stable)
public static final class CfnDataSourcePropsMixin.CredentialPairProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSourcePropsMixin.CredentialPairProperty>
A builder for
CfnDataSourcePropsMixin.CredentialPairProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalternateDataSourceParameters(List<? extends Object> alternateDataSourceParameters) alternateDataSourceParameters(IResolvable alternateDataSourceParameters) build()Builds the configured instance.Sets the value ofCfnDataSourcePropsMixin.CredentialPairProperty.getPassword()Sets the value ofCfnDataSourcePropsMixin.CredentialPairProperty.getUsername()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alternateDataSourceParameters
@Stability(Stable) public CfnDataSourcePropsMixin.CredentialPairProperty.Builder alternateDataSourceParameters(IResolvable alternateDataSourceParameters) - 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 theDataSourceParametersstructure that's in the request with the structures in theAlternateDataSourceParametersallow list. If the structures are an exact match, the request is allowed to use the new data source with the existing credentials. If theAlternateDataSourceParameterslist is null, theDataSourceParametersoriginally used with theseCredentialsis automatically allowed.- Returns:
this
-
alternateDataSourceParameters
@Stability(Stable) public CfnDataSourcePropsMixin.CredentialPairProperty.Builder alternateDataSourceParameters(List<? extends Object> alternateDataSourceParameters) - 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 theDataSourceParametersstructure that's in the request with the structures in theAlternateDataSourceParametersallow list. If the structures are an exact match, the request is allowed to use the new data source with the existing credentials. If theAlternateDataSourceParameterslist is null, theDataSourceParametersoriginally used with theseCredentialsis automatically allowed.- Returns:
this
-
password
@Stability(Stable) public CfnDataSourcePropsMixin.CredentialPairProperty.Builder password(String password) Sets the value ofCfnDataSourcePropsMixin.CredentialPairProperty.getPassword()- Parameters:
password- Password.- Returns:
this
-
username
@Stability(Stable) public CfnDataSourcePropsMixin.CredentialPairProperty.Builder username(String username) Sets the value ofCfnDataSourcePropsMixin.CredentialPairProperty.getUsername()- Parameters:
username- User name.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataSourcePropsMixin.CredentialPairProperty>- Returns:
- a new instance of
CfnDataSourcePropsMixin.CredentialPairProperty - Throws:
NullPointerException- if any required attribute was not provided
-