Class ResourceEnvironment.Builder
java.lang.Object
software.amazon.awscdk.interfaces.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
Constructors -
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'sAWS::AccountIdintrinsic), make sure to useToken.compareStrings()instead of comparing the values with direct string 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'sAWS::Regionintrinsic), make sure to useToken.compareStrings()instead of comparing the values with direct string equality.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ResourceEnvironment>- Returns:
- a new instance of
ResourceEnvironment - Throws:
NullPointerException- if any required attribute was not provided
-