Class CfnConnectorProfile.BasicAuthCredentialsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appflow.CfnConnectorProfile.BasicAuthCredentialsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnectorProfile.BasicAuthCredentialsProperty>
- Enclosing interface:
CfnConnectorProfile.BasicAuthCredentialsProperty
@Stability(Stable)
public static final class CfnConnectorProfile.BasicAuthCredentialsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnectorProfile.BasicAuthCredentialsProperty>
A builder for
CfnConnectorProfile.BasicAuthCredentialsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnConnectorProfile.BasicAuthCredentialsProperty.getPassword()
Sets the value ofCfnConnectorProfile.BasicAuthCredentialsProperty.getUsername()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
password
@Stability(Stable) public CfnConnectorProfile.BasicAuthCredentialsProperty.Builder password(String password) Sets the value ofCfnConnectorProfile.BasicAuthCredentialsProperty.getPassword()
- Parameters:
password
- The password to use to connect to a resource. This parameter is required.- Returns:
this
-
username
@Stability(Stable) public CfnConnectorProfile.BasicAuthCredentialsProperty.Builder username(String username) Sets the value ofCfnConnectorProfile.BasicAuthCredentialsProperty.getUsername()
- Parameters:
username
- The username to use to connect to a resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnConnectorProfile.BasicAuthCredentialsProperty>
- Returns:
- a new instance of
CfnConnectorProfile.BasicAuthCredentialsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-