@Generated(value="software.amazon.awssdk:codegen") public final class UsageLimit extends Object implements SdkPojo, Serializable, ToCopyableBuilder<UsageLimit.Builder,UsageLimit>
The usage limit object.
| Modifier and Type | Class and Description |
|---|---|
static interface |
UsageLimit.Builder |
| Modifier and Type | Method and Description |
|---|---|
Long |
amount()
The limit amount.
|
UsageLimitBreachAction |
breachAction()
The action that Amazon Redshift Serverless takes when the limit is reached.
|
String |
breachActionAsString()
The action that Amazon Redshift Serverless takes when the limit is reached.
|
static UsageLimit.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
UsageLimitPeriod |
period()
The time period that the amount applies to.
|
String |
periodAsString()
The time period that the amount applies to.
|
String |
resourceArn()
The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends UsageLimit.Builder> |
serializableBuilderClass() |
UsageLimit.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
usageLimitArn()
The Amazon Resource Name (ARN) of the resource associated with the usage limit.
|
String |
usageLimitId()
The identifier of the usage limit.
|
UsageLimitUsageType |
usageType()
The Amazon Redshift Serverless feature to limit.
|
String |
usageTypeAsString()
The Amazon Redshift Serverless feature to limit.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
public final UsageLimitBreachAction breachAction()
The action that Amazon Redshift Serverless takes when the limit is reached.
If the service returns an enum value that is not available in the current SDK version, breachAction will
return UsageLimitBreachAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from breachActionAsString().
UsageLimitBreachActionpublic final String breachActionAsString()
The action that Amazon Redshift Serverless takes when the limit is reached.
If the service returns an enum value that is not available in the current SDK version, breachAction will
return UsageLimitBreachAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from breachActionAsString().
UsageLimitBreachActionpublic final UsageLimitPeriod period()
The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.
If the service returns an enum value that is not available in the current SDK version, period will
return UsageLimitPeriod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
periodAsString().
UsageLimitPeriodpublic final String periodAsString()
The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.
If the service returns an enum value that is not available in the current SDK version, period will
return UsageLimitPeriod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
periodAsString().
UsageLimitPeriodpublic final String resourceArn()
The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource.
public final String usageLimitArn()
The Amazon Resource Name (ARN) of the resource associated with the usage limit.
public final String usageLimitId()
The identifier of the usage limit.
public final UsageLimitUsageType usageType()
The Amazon Redshift Serverless feature to limit.
If the service returns an enum value that is not available in the current SDK version, usageType will
return UsageLimitUsageType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from usageTypeAsString().
UsageLimitUsageTypepublic final String usageTypeAsString()
The Amazon Redshift Serverless feature to limit.
If the service returns an enum value that is not available in the current SDK version, usageType will
return UsageLimitUsageType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from usageTypeAsString().
UsageLimitUsageTypepublic UsageLimit.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UsageLimit.Builder,UsageLimit>public static UsageLimit.Builder builder()
public static Class<? extends UsageLimit.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.