Class Alias.Builder

java.lang.Object
software.amazon.awscdk.services.gamelift.alpha.Alias.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<Alias>
Enclosing class:
Alias

@Stability(Experimental) public static final class Alias.Builder extends Object implements software.amazon.jsii.Builder<Alias>
(experimental) A fluent builder for Alias.
  • Method Details

    • create

      @Stability(Experimental) public static Alias.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of Alias.Builder.
    • aliasName

      @Stability(Experimental) public Alias.Builder aliasName(String aliasName)
      (experimental) Name of this alias.

      Parameters:
      aliasName - Name of this alias. This parameter is required.
      Returns:
      this
    • description

      @Stability(Experimental) public Alias.Builder description(String description)
      (experimental) A human-readable description of the alias.

      Default: no description

      Parameters:
      description - A human-readable description of the alias. This parameter is required.
      Returns:
      this
    • fleet

      @Stability(Experimental) public Alias.Builder fleet(IFleet fleet)
      (experimental) A fleet that the alias points to. If specified, the alias resolves to one specific fleet.

      At least one of fleet and terminalMessage must be provided.

      Default: no fleet that the alias points to.

      Parameters:
      fleet - A fleet that the alias points to. If specified, the alias resolves to one specific fleet. This parameter is required.
      Returns:
      this
    • terminalMessage

      @Stability(Experimental) public Alias.Builder terminalMessage(String terminalMessage)
      (experimental) The message text to be used with a terminal routing strategy.

      At least one of fleet and terminalMessage must be provided.

      Default: no terminal message

      Parameters:
      terminalMessage - The message text to be used with a terminal routing strategy. This parameter is required.
      Returns:
      this
    • build

      @Stability(Experimental) public Alias build()
      Specified by:
      build in interface software.amazon.jsii.Builder<Alias>
      Returns:
      a newly built instance of Alias.