@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateUsageLimitResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Describes a usage limit object for a cluster.
Constructor and Description |
---|
CreateUsageLimitResult() |
Modifier and Type | Method and Description |
---|---|
CreateUsageLimitResult |
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.
|
CreateUsageLimitResult |
withAmount(Long amount)
The limit amount.
|
CreateUsageLimitResult |
withBreachAction(String breachAction)
The action that Amazon Redshift takes when the limit is reached.
|
CreateUsageLimitResult |
withBreachAction(UsageLimitBreachAction breachAction)
The action that Amazon Redshift takes when the limit is reached.
|
CreateUsageLimitResult |
withClusterIdentifier(String clusterIdentifier)
The identifier of the cluster with a usage limit.
|
CreateUsageLimitResult |
withFeatureType(String featureType)
The Amazon Redshift feature to which the limit applies.
|
CreateUsageLimitResult |
withFeatureType(UsageLimitFeatureType featureType)
The Amazon Redshift feature to which the limit applies.
|
CreateUsageLimitResult |
withLimitType(String limitType)
The type of limit.
|
CreateUsageLimitResult |
withLimitType(UsageLimitLimitType limitType)
The type of limit.
|
CreateUsageLimitResult |
withPeriod(String period)
The time period that the amount applies to.
|
CreateUsageLimitResult |
withPeriod(UsageLimitPeriod period)
The time period that the amount applies to.
|
CreateUsageLimitResult |
withTags(Collection<Tag> tags)
A list of tag instances.
|
CreateUsageLimitResult |
withTags(Tag... tags)
A list of tag instances.
|
CreateUsageLimitResult |
withUsageLimitId(String usageLimitId)
The identifier of the usage limit.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
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 CreateUsageLimitResult 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 CreateUsageLimitResult 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 CreateUsageLimitResult withFeatureType(String featureType)
The Amazon Redshift feature to which the limit applies.
featureType
- The Amazon Redshift feature to which the limit applies.UsageLimitFeatureType
public CreateUsageLimitResult 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 CreateUsageLimitResult 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 CreateUsageLimitResult 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 CreateUsageLimitResult 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 CreateUsageLimitResult 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 CreateUsageLimitResult 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 CreateUsageLimitResult 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 CreateUsageLimitResult 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 CreateUsageLimitResult 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 CreateUsageLimitResult 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 CreateUsageLimitResult clone()