Class ScalableInstanceCount.Builder

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

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

    • create

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

      @Stability(Stable) public ScalableInstanceCount.Builder maxCapacity(Number maxCapacity)
      Maximum capacity to scale to.

      Parameters:
      maxCapacity - Maximum capacity to scale to. This parameter is required.
      Returns:
      this
    • minCapacity

      @Stability(Stable) public ScalableInstanceCount.Builder minCapacity(Number minCapacity)
      Minimum capacity to scale to.

      Default: 1

      Parameters:
      minCapacity - Minimum capacity to scale to. This parameter is required.
      Returns:
      this
    • dimension

      @Stability(Stable) public ScalableInstanceCount.Builder dimension(String dimension)
      Scalable dimension of the attribute.

      Parameters:
      dimension - Scalable dimension of the attribute. This parameter is required.
      Returns:
      this
    • resourceId

      @Stability(Stable) public ScalableInstanceCount.Builder resourceId(String resourceId)
      Resource ID of the attribute.

      Parameters:
      resourceId - Resource ID of the attribute. This parameter is required.
      Returns:
      this
    • role

      @Stability(Stable) public ScalableInstanceCount.Builder role(IRole role)
      Role to use for scaling.

      Parameters:
      role - Role to use for scaling. This parameter is required.
      Returns:
      this
    • serviceNamespace

      @Stability(Stable) public ScalableInstanceCount.Builder serviceNamespace(ServiceNamespace serviceNamespace)
      Service namespace of the scalable attribute.

      Parameters:
      serviceNamespace - Service namespace of the scalable attribute. This parameter is required.
      Returns:
      this
    • build

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