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