Class ResourceEnvironment.Builder

java.lang.Object
software.amazon.awscdk.core.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 Details

    • Builder

      public Builder()
  • Method Details

    • account

      @Stability(Stable) public ResourceEnvironment.Builder account(String account)
      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

      @Stability(Stable) public ResourceEnvironment.Builder region(String region)
      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

      @Stability(Stable) public ResourceEnvironment build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<ResourceEnvironment>
      Returns:
      a new instance of ResourceEnvironment
      Throws:
      NullPointerException - if any required attribute was not provided