JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.793

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.redshiftserverless.model

Class CreateUsageLimitRequest

    • Constructor Detail

      • CreateUsageLimitRequest

        public CreateUsageLimitRequest()
    • Method Detail

      • setAmount

        public void setAmount(Long amount)

        The limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing. The value must be a positive number.

        Parameters:
        amount - The limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing. The value must be a positive number.
      • getAmount

        public Long getAmount()

        The limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing. The value must be a positive number.

        Returns:
        The limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing. The value must be a positive number.
      • withAmount

        public CreateUsageLimitRequest withAmount(Long amount)

        The limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing. The value must be a positive number.

        Parameters:
        amount - The limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing. The value must be a positive number.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setBreachAction

        public void setBreachAction(String breachAction)

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

        Parameters:
        breachAction - The action that Amazon Redshift Serverless takes when the limit is reached. The default is log.
        See Also:
        UsageLimitBreachAction
      • getBreachAction

        public String getBreachAction()

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

        Returns:
        The action that Amazon Redshift Serverless takes when the limit is reached. The default is log.
        See Also:
        UsageLimitBreachAction
      • withBreachAction

        public CreateUsageLimitRequest withBreachAction(String breachAction)

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

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

        public CreateUsageLimitRequest withBreachAction(UsageLimitBreachAction breachAction)

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

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

        public void setPeriod(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.
        See Also:
        UsageLimitPeriod
      • getPeriod

        public String getPeriod()

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

        Returns:
        The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.
        See Also:
        UsageLimitPeriod
      • withPeriod

        public CreateUsageLimitRequest withPeriod(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
      • withPeriod

        public CreateUsageLimitRequest withPeriod(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
      • setResourceArn

        public void setResourceArn(String resourceArn)

        The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for.

        Parameters:
        resourceArn - The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for.
      • getResourceArn

        public String getResourceArn()

        The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for.

        Returns:
        The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for.
      • withResourceArn

        public CreateUsageLimitRequest withResourceArn(String resourceArn)

        The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for.

        Parameters:
        resourceArn - The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setUsageType

        public void setUsageType(String usageType)

        The type of Amazon Redshift Serverless usage to create a usage limit for.

        Parameters:
        usageType - The type of Amazon Redshift Serverless usage to create a usage limit for.
        See Also:
        UsageLimitUsageType
      • getUsageType

        public String getUsageType()

        The type of Amazon Redshift Serverless usage to create a usage limit for.

        Returns:
        The type of Amazon Redshift Serverless usage to create a usage limit for.
        See Also:
        UsageLimitUsageType
      • withUsageType

        public CreateUsageLimitRequest withUsageType(String usageType)

        The type of Amazon Redshift Serverless usage to create a usage limit for.

        Parameters:
        usageType - The type of Amazon Redshift Serverless usage to create a usage limit for.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        UsageLimitUsageType
      • withUsageType

        public CreateUsageLimitRequest withUsageType(UsageLimitUsageType usageType)

        The type of Amazon Redshift Serverless usage to create a usage limit for.

        Parameters:
        usageType - The type of Amazon Redshift Serverless usage to create a usage limit for.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        UsageLimitUsageType
      • toString

        public String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /