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.redshift.model

Class CreateUsageLimitRequest

    • Constructor Detail

      • CreateUsageLimitRequest

        public CreateUsageLimitRequest()
    • Method Detail

      • setClusterIdentifier

        public void setClusterIdentifier(String clusterIdentifier)

        The identifier of the cluster that you want to limit usage.

        Parameters:
        clusterIdentifier - The identifier of the cluster that you want to limit usage.
      • getClusterIdentifier

        public String getClusterIdentifier()

        The identifier of the cluster that you want to limit usage.

        Returns:
        The identifier of the cluster that you want to limit usage.
      • withClusterIdentifier

        public CreateUsageLimitRequest withClusterIdentifier(String clusterIdentifier)

        The identifier of the cluster that you want to limit usage.

        Parameters:
        clusterIdentifier - The identifier of the cluster that you want to limit usage.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setFeatureType

        public void setFeatureType(String featureType)

        The Amazon Redshift feature that you want to limit.

        Parameters:
        featureType - The Amazon Redshift feature that you want to limit.
        See Also:
        UsageLimitFeatureType
      • getFeatureType

        public String getFeatureType()

        The Amazon Redshift feature that you want to limit.

        Returns:
        The Amazon Redshift feature that you want to limit.
        See Also:
        UsageLimitFeatureType
      • withFeatureType

        public CreateUsageLimitRequest withFeatureType(String featureType)

        The Amazon Redshift feature that you want to limit.

        Parameters:
        featureType - The Amazon Redshift feature that you want to limit.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        UsageLimitFeatureType
      • withFeatureType

        public CreateUsageLimitRequest withFeatureType(UsageLimitFeatureType featureType)

        The Amazon Redshift feature that you want to limit.

        Parameters:
        featureType - The Amazon Redshift feature that you want to limit.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        UsageLimitFeatureType
      • setLimitType

        public void setLimitType(String limitType)

        The type of limit. Depending on the feature type, this can be based on a time duration or data size. If FeatureType is spectrum, then LimitType must be data-scanned. If FeatureType is concurrency-scaling, then LimitType must be time. If FeatureType is cross-region-datasharing, then LimitType must be data-scanned.

        Parameters:
        limitType - The type of limit. Depending on the feature type, this can be based on a time duration or data size. If FeatureType is spectrum, then LimitType must be data-scanned. If FeatureType is concurrency-scaling, then LimitType must be time. If FeatureType is cross-region-datasharing, then LimitType must be data-scanned.
        See Also:
        UsageLimitLimitType
      • getLimitType

        public String getLimitType()

        The type of limit. Depending on the feature type, this can be based on a time duration or data size. If FeatureType is spectrum, then LimitType must be data-scanned. If FeatureType is concurrency-scaling, then LimitType must be time. If FeatureType is cross-region-datasharing, then LimitType must be data-scanned.

        Returns:
        The type of limit. Depending on the feature type, this can be based on a time duration or data size. If FeatureType is spectrum, then LimitType must be data-scanned. If FeatureType is concurrency-scaling, then LimitType must be time. If FeatureType is cross-region-datasharing, then LimitType must be data-scanned.
        See Also:
        UsageLimitLimitType
      • withLimitType

        public CreateUsageLimitRequest withLimitType(String limitType)

        The type of limit. Depending on the feature type, this can be based on a time duration or data size. If FeatureType is spectrum, then LimitType must be data-scanned. If FeatureType is concurrency-scaling, then LimitType must be time. If FeatureType is cross-region-datasharing, then LimitType must be data-scanned.

        Parameters:
        limitType - The type of limit. Depending on the feature type, this can be based on a time duration or data size. If FeatureType is spectrum, then LimitType must be data-scanned. If FeatureType is concurrency-scaling, then LimitType must be time. If FeatureType is cross-region-datasharing, then LimitType must be data-scanned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        UsageLimitLimitType
      • withLimitType

        public CreateUsageLimitRequest withLimitType(UsageLimitLimitType limitType)

        The type of limit. Depending on the feature type, this can be based on a time duration or data size. If FeatureType is spectrum, then LimitType must be data-scanned. If FeatureType is concurrency-scaling, then LimitType must be time. If FeatureType is cross-region-datasharing, then LimitType must be data-scanned.

        Parameters:
        limitType - The type of limit. Depending on the feature type, this can be based on a time duration or data size. If FeatureType is spectrum, then LimitType must be data-scanned. If FeatureType is concurrency-scaling, then LimitType must be time. If FeatureType is cross-region-datasharing, then LimitType must be data-scanned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        UsageLimitLimitType
      • setAmount

        public void setAmount(Long amount)

        The limit amount. If time-based, this amount is in minutes. 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 minutes. If data-based, this amount is in terabytes (TB). The value must be a positive number.
      • getAmount

        public Long getAmount()

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

        Returns:
        The limit amount. If time-based, this amount is in minutes. If data-based, this amount is in terabytes (TB). The value must be a positive number.
      • withAmount

        public CreateUsageLimitRequest withAmount(Long amount)

        The limit amount. If time-based, this amount is in minutes. 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 minutes. 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.
      • 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
      • setBreachAction

        public void setBreachAction(String breachAction)

        The action that Amazon Redshift takes when the limit is reached. The default is log. For more information about this parameter, see UsageLimit.

        Parameters:
        breachAction - The action that Amazon Redshift takes when the limit is reached. The default is log. For more information about this parameter, see UsageLimit.
        See Also:
        UsageLimitBreachAction
      • getBreachAction

        public String getBreachAction()

        The action that Amazon Redshift takes when the limit is reached. The default is log. For more information about this parameter, see UsageLimit.

        Returns:
        The action that Amazon Redshift takes when the limit is reached. The default is log. For more information about this parameter, see UsageLimit.
        See Also:
        UsageLimitBreachAction
      • withBreachAction

        public CreateUsageLimitRequest withBreachAction(String breachAction)

        The action that Amazon Redshift takes when the limit is reached. The default is log. For more information about this parameter, see UsageLimit.

        Parameters:
        breachAction - The action that Amazon Redshift takes when the limit is reached. The default is log. For more information about this parameter, see UsageLimit.
        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 takes when the limit is reached. The default is log. For more information about this parameter, see UsageLimit.

        Parameters:
        breachAction - The action that Amazon Redshift takes when the limit is reached. The default is log. For more information about this parameter, see UsageLimit.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        UsageLimitBreachAction
      • getTags

        public List<Tag> getTags()

        A list of tag instances.

        Returns:
        A list of tag instances.
      • setTags

        public void setTags(Collection<Tag> tags)

        A list of tag instances.

        Parameters:
        tags - A list of tag instances.
      • withTags

        public CreateUsageLimitRequest withTags(Collection<Tag> tags)

        A list of tag instances.

        Parameters:
        tags - A list of tag instances.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • 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 によって変換されたページ (->オリジナル) /