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