Package software.amazon.awscdk
Class ResourceEnvironment.Builder
java.lang.Object
software.amazon.awscdk.ResourceEnvironment.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ResourceEnvironment>
- Enclosing interface:
ResourceEnvironment
@Stability(Stable)
public static final class ResourceEnvironment.Builder
extends Object
implements software.amazon.jsii.Builder<ResourceEnvironment>
A builder for
ResourceEnvironment
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofResourceEnvironment.getAccount()
build()
Builds the configured instance.Sets the value ofResourceEnvironment.getRegion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
account
Sets the value ofResourceEnvironment.getAccount()
- Parameters:
account
- The AWS account ID that this resource belongs to. This parameter is required. Since this can be a Token (for example, when the account is CloudFormation's AWS::AccountId intrinsic), make sure to use Token.compareStrings() instead of just comparing the values for equality.- Returns:
this
-
region
Sets the value ofResourceEnvironment.getRegion()
- Parameters:
region
- The AWS region that this resource belongs to. This parameter is required. Since this can be a Token (for example, when the region is CloudFormation's AWS::Region intrinsic), make sure to use Token.compareStrings() instead of just comparing the values for equality.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ResourceEnvironment>
- Returns:
- a new instance of
ResourceEnvironment
- Throws:
NullPointerException
- if any required attribute was not provided
-