Interface UsageLimit.Builder

All Superinterfaces:
Buildable, CopyableBuilder<UsageLimit.Builder,UsageLimit>, SdkBuilder<UsageLimit.Builder,UsageLimit>, SdkPojo
Enclosing class:
UsageLimit

public static interface UsageLimit.Builder extends SdkPojo, CopyableBuilder<UsageLimit.Builder,UsageLimit>
  • Method Details

    • amount

      UsageLimit.Builder amount(Long amount)

      The limit amount. If time-based, this amount is in RPUs consumed per hour. If data-based, this amount is in terabytes (TB). The value must be a positive number.

      Parameters:
      amount - The limit amount. If time-based, this amount is in RPUs consumed per hour. If data-based, this amount is in terabytes (TB). The value must be a positive number.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • breachAction

      UsageLimit.Builder breachAction(String breachAction)

      The action that Amazon Redshift Serverless takes when the limit is reached.

      Parameters:
      breachAction - The action that Amazon Redshift Serverless takes when the limit is reached.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • breachAction

      UsageLimit.Builder breachAction(UsageLimitBreachAction breachAction)

      The action that Amazon Redshift Serverless takes when the limit is reached.

      Parameters:
      breachAction - The action that Amazon Redshift Serverless takes when the limit is reached.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • period

      UsageLimit.Builder period(String period)

      The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.

      Parameters:
      period - The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • period

      The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.

      Parameters:
      period - The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resourceArn

      UsageLimit.Builder resourceArn(String resourceArn)

      The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource.

      Parameters:
      resourceArn - The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usageLimitArn

      UsageLimit.Builder usageLimitArn(String usageLimitArn)

      The Amazon Resource Name (ARN) of the resource associated with the usage limit.

      Parameters:
      usageLimitArn - The Amazon Resource Name (ARN) of the resource associated with the usage limit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usageLimitId

      UsageLimit.Builder usageLimitId(String usageLimitId)

      The identifier of the usage limit.

      Parameters:
      usageLimitId - The identifier of the usage limit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usageType

      UsageLimit.Builder usageType(String usageType)

      The Amazon Redshift Serverless feature to limit.

      Parameters:
      usageType - The Amazon Redshift Serverless feature to limit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • usageType

      The Amazon Redshift Serverless feature to limit.

      Parameters:
      usageType - The Amazon Redshift Serverless feature to limit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: