Class CodeConfigurationValues.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.CodeConfigurationValues.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CodeConfigurationValues>
- Enclosing interface:
CodeConfigurationValues
@Stability(Experimental)
public static final class CodeConfigurationValues.Builder
extends Object
implements software.amazon.jsii.Builder<CodeConfigurationValues>
A builder for
CodeConfigurationValues
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.buildCommand
(String buildCommand) Sets the value ofCodeConfigurationValues.getBuildCommand()
environment
(Map<String, String> environment) Sets the value ofCodeConfigurationValues.getEnvironment()
Sets the value ofCodeConfigurationValues.getPort()
Sets the value ofCodeConfigurationValues.getRuntime()
startCommand
(String startCommand) Sets the value ofCodeConfigurationValues.getStartCommand()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
runtime
Sets the value ofCodeConfigurationValues.getRuntime()
- Parameters:
runtime
- A runtime environment type for building and running an App Runner service. This parameter is required. It represents a programming language runtime.- Returns:
this
-
buildCommand
Sets the value ofCodeConfigurationValues.getBuildCommand()
- Parameters:
buildCommand
- The command App Runner runs to build your application.- Returns:
this
-
environment
@Stability(Experimental) public CodeConfigurationValues.Builder environment(Map<String, String> environment) Sets the value ofCodeConfigurationValues.getEnvironment()
- Parameters:
environment
- The environment variables that are available to your running App Runner service.- Returns:
this
-
port
Sets the value ofCodeConfigurationValues.getPort()
- Parameters:
port
- The port that your application listens to in the container.- Returns:
this
-
startCommand
Sets the value ofCodeConfigurationValues.getStartCommand()
- Parameters:
startCommand
- The command App Runner runs to start your application.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CodeConfigurationValues>
- Returns:
- a new instance of
CodeConfigurationValues
- Throws:
NullPointerException
- if any required attribute was not provided
-