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 Details

    • Builder

      public Builder()
  • Method Details

    • account

      @Stability(Stable) public Environment.Builder account(String account)
      Sets the value of Environment.getAccount()
      Parameters:
      account - The AWS account this environment deploys into. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public Environment.Builder name(String name)
      Sets the value of Environment.getName()
      Parameters:
      name - The arbitrary name of this environment (user-set, or at least user-meaningful). This parameter is required.
      Returns:
      this
    • region

      @Stability(Stable) public Environment.Builder region(String region)
      Sets the value of Environment.getRegion()
      Parameters:
      region - The AWS region name where this environment deploys into. This parameter is required.
      Returns:
      this
    • build

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