@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UsageLimit extends Object implements Serializable, Cloneable
Describes a usage limit object for a cluster.
Constructor and Description |
---|
UsageLimit() |
Modifier and Type | Method and Description |
---|---|
UsageLimit |
clone() |
boolean |
equals(Object obj) |
Long |
getAmount()
The limit amount.
|
String |
getBreachAction()
The action that Amazon Redshift takes when the limit is reached.
|
String |
getClusterIdentifier()
The identifier of the cluster with a usage limit.
|
String |
getFeatureType()
The Amazon Redshift feature to which the limit applies.
|
String |
getLimitType()
The type of limit.
|
String |
getPeriod()
The time period that the amount applies to.
|
List<Tag> |
getTags()
A list of tag instances.
|
String |
getUsageLimitId()
The identifier of the usage limit.
|
int |
hashCode() |
void |
setAmount(Long amount)
The limit amount.
|
void |
setBreachAction(String breachAction)
The action that Amazon Redshift takes when the limit is reached.
|
void |
setClusterIdentifier(String clusterIdentifier)
The identifier of the cluster with a usage limit.
|
void |
setFeatureType(String featureType)
The Amazon Redshift feature to which the limit applies.
|
void |
setLimitType(String limitType)
The type of limit.
|
void |
setPeriod(String period)
The time period that the amount applies to.
|
void |
setTags(Collection<Tag> tags)
A list of tag instances.
|
void |
setUsageLimitId(String usageLimitId)
The identifier of the usage limit.
|
String |
toString()
Returns a string representation of this object.
|
UsageLimit |
withAmount(Long amount)
The limit amount.
|
UsageLimit |
withBreachAction(String breachAction)
The action that Amazon Redshift takes when the limit is reached.
|
UsageLimit |
withBreachAction(UsageLimitBreachAction breachAction)
The action that Amazon Redshift takes when the limit is reached.
|
UsageLimit |
withClusterIdentifier(String clusterIdentifier)
The identifier of the cluster with a usage limit.
|
UsageLimit |
withFeatureType(String featureType)
The Amazon Redshift feature to which the limit applies.
|
UsageLimit |
withFeatureType(UsageLimitFeatureType featureType)
The Amazon Redshift feature to which the limit applies.
|
UsageLimit |
withLimitType(String limitType)
The type of limit.
|
UsageLimit |
withLimitType(UsageLimitLimitType limitType)
The type of limit.
|
UsageLimit |
withPeriod(String period)
The time period that the amount applies to.
|
UsageLimit |
withPeriod(UsageLimitPeriod period)
The time period that the amount applies to.
|
UsageLimit |
withTags(Collection<Tag> tags)
A list of tag instances.
|
UsageLimit |
withTags(Tag... tags)
A list of tag instances.
|
UsageLimit |
withUsageLimitId(String usageLimitId)
The identifier of the usage limit.
|
public void setUsageLimitId(String usageLimitId)
The identifier of the usage limit.
usageLimitId
- The identifier of the usage limit.public String getUsageLimitId()
The identifier of the usage limit.
public UsageLimit withUsageLimitId(String usageLimitId)
The identifier of the usage limit.
usageLimitId
- The identifier of the usage limit.public void setClusterIdentifier(String clusterIdentifier)
The identifier of the cluster with a usage limit.
clusterIdentifier
- The identifier of the cluster with a usage limit.public String getClusterIdentifier()
The identifier of the cluster with a usage limit.
public UsageLimit withClusterIdentifier(String clusterIdentifier)
The identifier of the cluster with a usage limit.
clusterIdentifier
- The identifier of the cluster with a usage limit.public void setFeatureType(String featureType)
The Amazon Redshift feature to which the limit applies.
featureType
- The Amazon Redshift feature to which the limit applies.UsageLimitFeatureType
public String getFeatureType()
The Amazon Redshift feature to which the limit applies.
UsageLimitFeatureType
public UsageLimit withFeatureType(String featureType)
The Amazon Redshift feature to which the limit applies.
featureType
- The Amazon Redshift feature to which the limit applies.UsageLimitFeatureType
public UsageLimit withFeatureType(UsageLimitFeatureType featureType)
The Amazon Redshift feature to which the limit applies.
featureType
- The Amazon Redshift feature to which the limit applies.UsageLimitFeatureType
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.
limitType
- The type of limit. Depending on the feature type, this can be based on a time duration or data size.UsageLimitLimitType
public String getLimitType()
The type of limit. Depending on the feature type, this can be based on a time duration or data size.
UsageLimitLimitType
public UsageLimit withLimitType(String limitType)
The type of limit. Depending on the feature type, this can be based on a time duration or data size.
limitType
- The type of limit. Depending on the feature type, this can be based on a time duration or data size.UsageLimitLimitType
public UsageLimit withLimitType(UsageLimitLimitType limitType)
The type of limit. Depending on the feature type, this can be based on a time duration or data size.
limitType
- The type of limit. Depending on the feature type, this can be based on a time duration or data size.UsageLimitLimitType
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).
amount
- The limit amount. If time-based, this amount is in minutes. If data-based, this amount is in terabytes
(TB).public Long getAmount()
The limit amount. If time-based, this amount is in minutes. If data-based, this amount is in terabytes (TB).
public UsageLimit withAmount(Long amount)
The limit amount. If time-based, this amount is in minutes. If data-based, this amount is in terabytes (TB).
amount
- The limit amount. If time-based, this amount is in minutes. If data-based, this amount is in terabytes
(TB).public void setPeriod(String period)
The time period that the amount applies to. A weekly
period begins on Sunday. The default is
monthly
.
period
- The time period that the amount applies to. A weekly
period begins on Sunday. The default is
monthly
.UsageLimitPeriod
public String getPeriod()
The time period that the amount applies to. A weekly
period begins on Sunday. The default is
monthly
.
weekly
period begins on Sunday. The default is
monthly
.UsageLimitPeriod
public UsageLimit withPeriod(String period)
The time period that the amount applies to. A weekly
period begins on Sunday. The default is
monthly
.
period
- The time period that the amount applies to. A weekly
period begins on Sunday. The default is
monthly
.UsageLimitPeriod
public UsageLimit withPeriod(UsageLimitPeriod period)
The time period that the amount applies to. A weekly
period begins on Sunday. The default is
monthly
.
period
- The time period that the amount applies to. A weekly
period begins on Sunday. The default is
monthly
.UsageLimitPeriod
public void setBreachAction(String breachAction)
The action that Amazon Redshift takes when the limit is reached. Possible values are:
log - To log an event in a system table. The default is log.
emit-metric - To emit CloudWatch metrics.
disable - To disable the feature until the next usage period begins.
breachAction
- The action that Amazon Redshift takes when the limit is reached. Possible values are:
log - To log an event in a system table. The default is log.
emit-metric - To emit CloudWatch metrics.
disable - To disable the feature until the next usage period begins.
UsageLimitBreachAction
public String getBreachAction()
The action that Amazon Redshift takes when the limit is reached. Possible values are:
log - To log an event in a system table. The default is log.
emit-metric - To emit CloudWatch metrics.
disable - To disable the feature until the next usage period begins.
log - To log an event in a system table. The default is log.
emit-metric - To emit CloudWatch metrics.
disable - To disable the feature until the next usage period begins.
UsageLimitBreachAction
public UsageLimit withBreachAction(String breachAction)
The action that Amazon Redshift takes when the limit is reached. Possible values are:
log - To log an event in a system table. The default is log.
emit-metric - To emit CloudWatch metrics.
disable - To disable the feature until the next usage period begins.
breachAction
- The action that Amazon Redshift takes when the limit is reached. Possible values are:
log - To log an event in a system table. The default is log.
emit-metric - To emit CloudWatch metrics.
disable - To disable the feature until the next usage period begins.
UsageLimitBreachAction
public UsageLimit withBreachAction(UsageLimitBreachAction breachAction)
The action that Amazon Redshift takes when the limit is reached. Possible values are:
log - To log an event in a system table. The default is log.
emit-metric - To emit CloudWatch metrics.
disable - To disable the feature until the next usage period begins.
breachAction
- The action that Amazon Redshift takes when the limit is reached. Possible values are:
log - To log an event in a system table. The default is log.
emit-metric - To emit CloudWatch metrics.
disable - To disable the feature until the next usage period begins.
UsageLimitBreachAction
public void setTags(Collection<Tag> tags)
A list of tag instances.
tags
- A list of tag instances.public UsageLimit withTags(Tag... tags)
A list of tag instances.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- A list of tag instances.public UsageLimit withTags(Collection<Tag> tags)
A list of tag instances.
tags
- A list of tag instances.public String toString()
toString
in class Object
Object.toString()
public UsageLimit clone()