Interface UsageLimit.Builder

    • Method Detail

      • 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:
        UsageLimitBreachAction, UsageLimitBreachAction
      • 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:
        UsageLimitPeriod, UsageLimitPeriod
      • period

        UsageLimit.Builder period​(UsageLimitPeriod 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:
        UsageLimitPeriod, UsageLimitPeriod
      • 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:
        UsageLimitUsageType, UsageLimitUsageType