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