Class CfnBranch.BasicAuthConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.amplify.CfnBranch.BasicAuthConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBranch.BasicAuthConfigProperty>
- Enclosing interface:
CfnBranch.BasicAuthConfigProperty
@Stability(Stable)
public static final class CfnBranch.BasicAuthConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBranch.BasicAuthConfigProperty>
A builder for
CfnBranch.BasicAuthConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.enableBasicAuth(Boolean enableBasicAuth) Sets the value ofCfnBranch.BasicAuthConfigProperty.getEnableBasicAuth()enableBasicAuth(IResolvable enableBasicAuth) Sets the value ofCfnBranch.BasicAuthConfigProperty.getEnableBasicAuth()Sets the value ofCfnBranch.BasicAuthConfigProperty.getPassword()Sets the value ofCfnBranch.BasicAuthConfigProperty.getUsername()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
password
Sets the value ofCfnBranch.BasicAuthConfigProperty.getPassword()- Parameters:
password- The password for basic authorization. This parameter is required.- Returns:
this
-
username
Sets the value ofCfnBranch.BasicAuthConfigProperty.getUsername()- Parameters:
username- the value to be set. This parameter is required.- Returns:
this
-
enableBasicAuth
@Stability(Stable) public CfnBranch.BasicAuthConfigProperty.Builder enableBasicAuth(Boolean enableBasicAuth) Sets the value ofCfnBranch.BasicAuthConfigProperty.getEnableBasicAuth()- Parameters:
enableBasicAuth- Enables basic authorization for the branch.- Returns:
this
-
enableBasicAuth
@Stability(Stable) public CfnBranch.BasicAuthConfigProperty.Builder enableBasicAuth(IResolvable enableBasicAuth) Sets the value ofCfnBranch.BasicAuthConfigProperty.getEnableBasicAuth()- Parameters:
enableBasicAuth- Enables basic authorization for the branch.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBranch.BasicAuthConfigProperty>- Returns:
- a new instance of
CfnBranch.BasicAuthConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-