Class AliasProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • aliasName

      @Stability(Experimental) public AliasProps.Builder aliasName(String aliasName)
      Sets the value of AliasProps.getAliasName()
      Parameters:
      aliasName - Name of this alias. This parameter is required.
      Returns:
      this
    • description

      @Stability(Experimental) public AliasProps.Builder description(String description)
      Sets the value of AliasProps.getDescription()
      Parameters:
      description - A human-readable description of the alias.
      Returns:
      this
    • fleet

      @Stability(Experimental) public AliasProps.Builder fleet(IFleet fleet)
      Sets the value of AliasProps.getFleet()
      Parameters:
      fleet - 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.
      Returns:
      this
    • terminalMessage

      @Stability(Experimental) public AliasProps.Builder terminalMessage(String terminalMessage)
      Parameters:
      terminalMessage - The message text to be used with a terminal routing strategy. At least one of fleet and terminalMessage must be provided.
      Returns:
      this
    • build

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