@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UsageLimit extends Object implements Serializable, Cloneable, StructuredPojo
The usage limit object.
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 Serverless takes when the limit is reached.
|
String |
getPeriod()
The time period that the amount applies to.
|
String |
getResourceArn()
The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource.
|
String |
getUsageLimitArn()
The Amazon Resource Name (ARN) of the resource associated with the usage limit.
|
String |
getUsageLimitId()
The identifier of the usage limit.
|
String |
getUsageType()
The Amazon Redshift Serverless feature to limit.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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) that identifies the Amazon Redshift Serverless resource.
|
void |
setUsageLimitArn(String usageLimitArn)
The Amazon Resource Name (ARN) of the resource associated with the usage limit.
|
void |
setUsageLimitId(String usageLimitId)
The identifier of the usage limit.
|
void |
setUsageType(String usageType)
The Amazon Redshift Serverless feature to 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 Serverless takes when the limit is reached.
|
UsageLimit |
withBreachAction(UsageLimitBreachAction breachAction)
The action that Amazon Redshift Serverless takes when the limit is reached.
|
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 |
withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource.
|
UsageLimit |
withUsageLimitArn(String usageLimitArn)
The Amazon Resource Name (ARN) of the resource associated with the usage limit.
|
UsageLimit |
withUsageLimitId(String usageLimitId)
The identifier of the usage limit.
|
UsageLimit |
withUsageType(String usageType)
The Amazon Redshift Serverless feature to limit.
|
UsageLimit |
withUsageType(UsageLimitUsageType usageType)
The Amazon Redshift Serverless feature to limit.
|
public void setAmount(Long amount)
The limit amount. If time-based, this amount is in RPUs consumed per hour. 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 RPUs consumed per hour. 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 RPUs consumed per hour. If data-based, this amount is in terabytes (TB). The value must be a positive number.
public UsageLimit withAmount(Long amount)
The limit amount. If time-based, this amount is in RPUs consumed per hour. 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 RPUs consumed per hour. If data-based, this amount is
in terabytes (TB). The value must be a positive number.public void setBreachAction(String breachAction)
The action that Amazon Redshift Serverless takes when the limit is reached.
breachAction
- The action that Amazon Redshift Serverless takes when the limit is reached.UsageLimitBreachAction
public String getBreachAction()
The action that Amazon Redshift Serverless takes when the limit is reached.
UsageLimitBreachAction
public UsageLimit withBreachAction(String breachAction)
The action that Amazon Redshift Serverless takes when the limit is reached.
breachAction
- The action that Amazon Redshift Serverless takes when the limit is reached.UsageLimitBreachAction
public UsageLimit withBreachAction(UsageLimitBreachAction breachAction)
The action that Amazon Redshift Serverless takes when the limit is reached.
breachAction
- The action that Amazon Redshift Serverless takes when the limit is reached.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 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 setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource.
resourceArn
- The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource.public String getResourceArn()
The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource.
public UsageLimit withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource.
resourceArn
- The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource.public void setUsageLimitArn(String usageLimitArn)
The Amazon Resource Name (ARN) of the resource associated with the usage limit.
usageLimitArn
- The Amazon Resource Name (ARN) of the resource associated with the usage limit.public String getUsageLimitArn()
The Amazon Resource Name (ARN) of the resource associated with the usage limit.
public UsageLimit withUsageLimitArn(String usageLimitArn)
The Amazon Resource Name (ARN) of the resource associated with the usage limit.
usageLimitArn
- The Amazon Resource Name (ARN) of the resource associated with 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 setUsageType(String usageType)
The Amazon Redshift Serverless feature to limit.
usageType
- The Amazon Redshift Serverless feature to limit.UsageLimitUsageType
public String getUsageType()
The Amazon Redshift Serverless feature to limit.
UsageLimitUsageType
public UsageLimit withUsageType(String usageType)
The Amazon Redshift Serverless feature to limit.
usageType
- The Amazon Redshift Serverless feature to limit.UsageLimitUsageType
public UsageLimit withUsageType(UsageLimitUsageType usageType)
The Amazon Redshift Serverless feature to limit.
usageType
- The Amazon Redshift Serverless feature to limit.UsageLimitUsageType
public String toString()
toString
in class Object
Object.toString()
public UsageLimit clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.