@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 Serverless takes when the limit is reached.
|
String |
getPeriod()
The time period that the amount applies to.
|
String |
getResourceArn()
The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for.
|
String |
getUsageType()
The type of Amazon Redshift Serverless usage to create a usage limit for.
|
int |
hashCode() |
void |
setAmount(Long amount)
The limit amount.
|
void |
setBreachAction(String breachAction)
The action that Amazon Redshift Serverless takes when the limit is reached.
|
void |
setPeriod(String period)
The time period that the amount applies to.
|
void |
setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for.
|
void |
setUsageType(String usageType)
The type of Amazon Redshift Serverless usage to create a usage limit for.
|
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 Serverless takes when the limit is reached.
|
CreateUsageLimitRequest |
withBreachAction(UsageLimitBreachAction breachAction)
The action that Amazon Redshift Serverless takes when the limit is reached.
|
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 |
withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for.
|
CreateUsageLimitRequest |
withUsageType(String usageType)
The type of Amazon Redshift Serverless usage to create a usage limit for.
|
CreateUsageLimitRequest |
withUsageType(UsageLimitUsageType usageType)
The type of Amazon Redshift Serverless usage to create a usage limit for.
|
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 setAmount(Long amount)
The limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing. The value must be a positive number.
amount
- The limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If
data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing.
The value must be a positive number.public Long getAmount()
The limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing. The value must be a positive number.
public CreateUsageLimitRequest withAmount(Long amount)
The limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing. The value must be a positive number.
amount
- The limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If
data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing.
The value must be a positive number.public void setBreachAction(String breachAction)
The action that Amazon Redshift Serverless takes when the limit is reached. The default is log.
breachAction
- The action that Amazon Redshift Serverless takes when the limit is reached. The default is log.UsageLimitBreachAction
public String getBreachAction()
The action that Amazon Redshift Serverless takes when the limit is reached. The default is log.
UsageLimitBreachAction
public CreateUsageLimitRequest withBreachAction(String breachAction)
The action that Amazon Redshift Serverless takes when the limit is reached. The default is log.
breachAction
- The action that Amazon Redshift Serverless takes when the limit is reached. The default is log.UsageLimitBreachAction
public CreateUsageLimitRequest withBreachAction(UsageLimitBreachAction breachAction)
The action that Amazon Redshift Serverless takes when the limit is reached. The default is log.
breachAction
- The action that Amazon Redshift Serverless takes when the limit is reached. The default is log.UsageLimitBreachAction
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.
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 setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for.
resourceArn
- The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for.public String getResourceArn()
The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for.
public CreateUsageLimitRequest withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for.
resourceArn
- The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for.public void setUsageType(String usageType)
The type of Amazon Redshift Serverless usage to create a usage limit for.
usageType
- The type of Amazon Redshift Serverless usage to create a usage limit for.UsageLimitUsageType
public String getUsageType()
The type of Amazon Redshift Serverless usage to create a usage limit for.
UsageLimitUsageType
public CreateUsageLimitRequest withUsageType(String usageType)
The type of Amazon Redshift Serverless usage to create a usage limit for.
usageType
- The type of Amazon Redshift Serverless usage to create a usage limit for.UsageLimitUsageType
public CreateUsageLimitRequest withUsageType(UsageLimitUsageType usageType)
The type of Amazon Redshift Serverless usage to create a usage limit for.
usageType
- The type of Amazon Redshift Serverless usage to create a usage limit for.UsageLimitUsageType
public String toString()
toString
in class Object
Object.toString()
public CreateUsageLimitRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()