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