Class Ulimit.Builder

java.lang.Object
software.amazon.awscdk.services.ecs.Ulimit.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<Ulimit>
Enclosing interface:
Ulimit

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

    • Builder

      public Builder()
  • Method Details

    • hardLimit

      @Stability(Stable) public Ulimit.Builder hardLimit(Number hardLimit)
      Sets the value of Ulimit.getHardLimit()
      Parameters:
      hardLimit - The hard limit for the ulimit type. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public Ulimit.Builder name(UlimitName name)
      Sets the value of Ulimit.getName()
      Parameters:
      name - The type of the ulimit. This parameter is required. For more information, see UlimitName.
      Returns:
      this
    • softLimit

      @Stability(Stable) public Ulimit.Builder softLimit(Number softLimit)
      Sets the value of Ulimit.getSoftLimit()
      Parameters:
      softLimit - The soft limit for the ulimit type. This parameter is required.
      Returns:
      this
    • build

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