Package software.amazon.awscdk.cxapi
Class Environment.Builder
java.lang.Object
software.amazon.awscdk.cxapi.Environment.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Environment>
- Enclosing interface:
Environment
@Stability(Stable)
public static final class Environment.Builder
extends Object
implements software.amazon.jsii.Builder<Environment>
A builder for
Environment
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofEnvironment.getAccount()
build()
Builds the configured instance.Sets the value ofEnvironment.getName()
Sets the value ofEnvironment.getRegion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
account
Sets the value ofEnvironment.getAccount()
- Parameters:
account
- The AWS account this environment deploys into. This parameter is required.- Returns:
this
-
name
Sets the value ofEnvironment.getName()
- Parameters:
name
- The arbitrary name of this environment (user-set, or at least user-meaningful). This parameter is required.- Returns:
this
-
region
Sets the value ofEnvironment.getRegion()
- Parameters:
region
- The AWS region name where this environment deploys into. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<Environment>
- Returns:
- a new instance of
Environment
- Throws:
NullPointerException
- if any required attribute was not provided
-