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