@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ModifyUsageLimitResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Describes a usage limit object for a cluster.
| Constructor and Description |
|---|
ModifyUsageLimitResult() |
| Modifier and Type | Method and Description |
|---|---|
ModifyUsageLimitResult |
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.
|
ModifyUsageLimitResult |
withAmount(Long amount)
The limit amount.
|
ModifyUsageLimitResult |
withBreachAction(String breachAction)
The action that Amazon Redshift takes when the limit is reached.
|
ModifyUsageLimitResult |
withBreachAction(UsageLimitBreachAction breachAction)
The action that Amazon Redshift takes when the limit is reached.
|
ModifyUsageLimitResult |
withClusterIdentifier(String clusterIdentifier)
The identifier of the cluster with a usage limit.
|
ModifyUsageLimitResult |
withFeatureType(String featureType)
The Amazon Redshift feature to which the limit applies.
|
ModifyUsageLimitResult |
withFeatureType(UsageLimitFeatureType featureType)
The Amazon Redshift feature to which the limit applies.
|
ModifyUsageLimitResult |
withLimitType(String limitType)
The type of limit.
|
ModifyUsageLimitResult |
withLimitType(UsageLimitLimitType limitType)
The type of limit.
|
ModifyUsageLimitResult |
withPeriod(String period)
The time period that the amount applies to.
|
ModifyUsageLimitResult |
withPeriod(UsageLimitPeriod period)
The time period that the amount applies to.
|
ModifyUsageLimitResult |
withTags(Collection<Tag> tags)
A list of tag instances.
|
ModifyUsageLimitResult |
withTags(Tag... tags)
A list of tag instances.
|
ModifyUsageLimitResult |
withUsageLimitId(String usageLimitId)
The identifier of the usage limit.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic 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 ModifyUsageLimitResult 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 ModifyUsageLimitResult 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.UsageLimitFeatureTypepublic String getFeatureType()
The Amazon Redshift feature to which the limit applies.
UsageLimitFeatureTypepublic ModifyUsageLimitResult withFeatureType(String featureType)
The Amazon Redshift feature to which the limit applies.
featureType - The Amazon Redshift feature to which the limit applies.UsageLimitFeatureTypepublic ModifyUsageLimitResult withFeatureType(UsageLimitFeatureType featureType)
The Amazon Redshift feature to which the limit applies.
featureType - The Amazon Redshift feature to which the limit applies.UsageLimitFeatureTypepublic 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.UsageLimitLimitTypepublic String getLimitType()
The type of limit. Depending on the feature type, this can be based on a time duration or data size.
UsageLimitLimitTypepublic ModifyUsageLimitResult 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.UsageLimitLimitTypepublic ModifyUsageLimitResult 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.UsageLimitLimitTypepublic 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 ModifyUsageLimitResult 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.UsageLimitPeriodpublic 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.UsageLimitPeriodpublic ModifyUsageLimitResult 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.UsageLimitPeriodpublic ModifyUsageLimitResult 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.UsageLimitPeriodpublic 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.
UsageLimitBreachActionpublic 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.
UsageLimitBreachActionpublic ModifyUsageLimitResult 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.
UsageLimitBreachActionpublic ModifyUsageLimitResult 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.
UsageLimitBreachActionpublic void setTags(Collection<Tag> tags)
A list of tag instances.
tags - A list of tag instances.public ModifyUsageLimitResult 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 ModifyUsageLimitResult withTags(Collection<Tag> tags)
A list of tag instances.
tags - A list of tag instances.public String toString()
toString in class ObjectObject.toString()public ModifyUsageLimitResult clone()