@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateUsageLimitRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateUsageLimitRequest() |
Modifier and Type | Method and Description |
---|---|
CreateUsageLimitRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
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 that you want to limit usage.
|
String |
getFeatureType()
The Amazon Redshift feature that you want to limit.
|
String |
getLimitType()
The type of limit.
|
String |
getPeriod()
The time period that the amount applies to.
|
List<Tag> |
getTags()
A list of tag instances.
|
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 that you want to limit usage.
|
void |
setFeatureType(String featureType)
The Amazon Redshift feature that you want to limit.
|
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.
|
String |
toString()
Returns a string representation of this object.
|
CreateUsageLimitRequest |
withAmount(Long amount)
The limit amount.
|
CreateUsageLimitRequest |
withBreachAction(String breachAction)
The action that Amazon Redshift takes when the limit is reached.
|
CreateUsageLimitRequest |
withBreachAction(UsageLimitBreachAction breachAction)
The action that Amazon Redshift takes when the limit is reached.
|
CreateUsageLimitRequest |
withClusterIdentifier(String clusterIdentifier)
The identifier of the cluster that you want to limit usage.
|
CreateUsageLimitRequest |
withFeatureType(String featureType)
The Amazon Redshift feature that you want to limit.
|
CreateUsageLimitRequest |
withFeatureType(UsageLimitFeatureType featureType)
The Amazon Redshift feature that you want to limit.
|
CreateUsageLimitRequest |
withLimitType(String limitType)
The type of limit.
|
CreateUsageLimitRequest |
withLimitType(UsageLimitLimitType limitType)
The type of limit.
|
CreateUsageLimitRequest |
withPeriod(String period)
The time period that the amount applies to.
|
CreateUsageLimitRequest |
withPeriod(UsageLimitPeriod period)
The time period that the amount applies to.
|
CreateUsageLimitRequest |
withTags(Collection<Tag> tags)
A list of tag instances.
|
CreateUsageLimitRequest |
withTags(Tag... tags)
A list of tag instances.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setClusterIdentifier(String clusterIdentifier)
The identifier of the cluster that you want to limit usage.
clusterIdentifier
- The identifier of the cluster that you want to limit usage.public String getClusterIdentifier()
The identifier of the cluster that you want to limit usage.
public CreateUsageLimitRequest withClusterIdentifier(String clusterIdentifier)
The identifier of the cluster that you want to limit usage.
clusterIdentifier
- The identifier of the cluster that you want to limit usage.public void setFeatureType(String featureType)
The Amazon Redshift feature that you want to limit.
featureType
- The Amazon Redshift feature that you want to limit.UsageLimitFeatureType
public String getFeatureType()
The Amazon Redshift feature that you want to limit.
UsageLimitFeatureType
public CreateUsageLimitRequest withFeatureType(String featureType)
The Amazon Redshift feature that you want to limit.
featureType
- The Amazon Redshift feature that you want to limit.UsageLimitFeatureType
public CreateUsageLimitRequest withFeatureType(UsageLimitFeatureType featureType)
The Amazon Redshift feature that you want to limit.
featureType
- The Amazon Redshift feature that you want to limit.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. 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
.
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
.UsageLimitLimitType
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
.
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
.UsageLimitLimitType
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
.
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
.UsageLimitLimitType
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
.
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
.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). The value must be a positive number.
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.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.
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.
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.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 CreateUsageLimitRequest 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 CreateUsageLimitRequest 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. The default is log. For more information about this parameter, see UsageLimit.
breachAction
- The action that Amazon Redshift takes when the limit is reached. The default is log. For more information
about this parameter, see UsageLimit.UsageLimitBreachAction
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.
UsageLimitBreachAction
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.
breachAction
- The action that Amazon Redshift takes when the limit is reached. The default is log. For more information
about this parameter, see UsageLimit.UsageLimitBreachAction
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.
breachAction
- The action that Amazon Redshift takes when the limit is reached. The default is log. For more information
about this parameter, see UsageLimit.UsageLimitBreachAction
public void setTags(Collection<Tag> tags)
A list of tag instances.
tags
- A list of tag instances.public CreateUsageLimitRequest 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 CreateUsageLimitRequest 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 CreateUsageLimitRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()