Class UsageLimit
- java.lang.Object
-
- software.amazon.awssdk.services.redshiftserverless.model.UsageLimit
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<UsageLimit.Builder,UsageLimit>
@Generated("software.amazon.awssdk:codegen") public final class UsageLimit extends Object implements SdkPojo, Serializable, ToCopyableBuilder<UsageLimit.Builder,UsageLimit>
The usage limit object.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUsageLimit.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Longamount()The limit amount.UsageLimitBreachActionbreachAction()The action that Amazon Redshift Serverless takes when the limit is reached.StringbreachActionAsString()The action that Amazon Redshift Serverless takes when the limit is reached.static UsageLimit.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()UsageLimitPeriodperiod()The time period that the amount applies to.StringperiodAsString()The time period that the amount applies to.StringresourceArn()The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource.List<SdkField<?>>sdkFields()static Class<? extends UsageLimit.Builder>serializableBuilderClass()UsageLimit.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringusageLimitArn()The Amazon Resource Name (ARN) of the resource associated with the usage limit.StringusageLimitId()The identifier of the usage limit.UsageLimitUsageTypeusageType()The Amazon Redshift Serverless feature to limit.StringusageTypeAsString()The Amazon Redshift Serverless feature to limit.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
amount
public 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.
- Returns:
- 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.
-
breachAction
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,
breachActionwill returnUsageLimitBreachAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frombreachActionAsString().- Returns:
- The action that Amazon Redshift Serverless takes when the limit is reached.
- See Also:
UsageLimitBreachAction
-
breachActionAsString
public 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,
breachActionwill returnUsageLimitBreachAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frombreachActionAsString().- Returns:
- The action that Amazon Redshift Serverless takes when the limit is reached.
- See Also:
UsageLimitBreachAction
-
period
public 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,
periodwill returnUsageLimitPeriod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromperiodAsString().- Returns:
- The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.
- See Also:
UsageLimitPeriod
-
periodAsString
public 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,
periodwill returnUsageLimitPeriod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromperiodAsString().- Returns:
- The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.
- See Also:
UsageLimitPeriod
-
resourceArn
public final String resourceArn()
The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource.
- Returns:
- The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource.
-
usageLimitArn
public final String usageLimitArn()
The Amazon Resource Name (ARN) of the resource associated with the usage limit.
- Returns:
- The Amazon Resource Name (ARN) of the resource associated with the usage limit.
-
usageLimitId
public final String usageLimitId()
The identifier of the usage limit.
- Returns:
- The identifier of the usage limit.
-
usageType
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,
usageTypewill returnUsageLimitUsageType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromusageTypeAsString().- Returns:
- The Amazon Redshift Serverless feature to limit.
- See Also:
UsageLimitUsageType
-
usageTypeAsString
public 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,
usageTypewill returnUsageLimitUsageType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromusageTypeAsString().- Returns:
- The Amazon Redshift Serverless feature to limit.
- See Also:
UsageLimitUsageType
-
toBuilder
public UsageLimit.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UsageLimit.Builder,UsageLimit>
-
builder
public static UsageLimit.Builder builder()
-
serializableBuilderClass
public static Class<? extends UsageLimit.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-