@Generated(value="software.amazon.awssdk:codegen") public final class CreateUsageLimitRequest extends RedshiftServerlessRequest implements ToCopyableBuilder<CreateUsageLimitRequest.Builder,CreateUsageLimitRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateUsageLimitRequest.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 CreateUsageLimitRequest.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) of the Amazon Redshift Serverless resource to create the usage limit for.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateUsageLimitRequest.Builder> |
serializableBuilderClass() |
CreateUsageLimitRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
UsageLimitUsageType |
usageType()
The type of Amazon Redshift Serverless usage to create a usage limit for.
|
String |
usageTypeAsString()
The type of Amazon Redshift Serverless usage to create a usage limit for.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
public final UsageLimitBreachAction breachAction()
The action that Amazon Redshift Serverless takes when the limit is reached. The default is log.
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. The default is log.
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) of the Amazon Redshift Serverless resource to create the usage limit for.
public final UsageLimitUsageType usageType()
The type of Amazon Redshift Serverless usage to create a usage limit for.
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 type of Amazon Redshift Serverless usage to create a usage limit for.
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 CreateUsageLimitRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateUsageLimitRequest.Builder,CreateUsageLimitRequest>toBuilder in class RedshiftServerlessRequestpublic static CreateUsageLimitRequest.Builder builder()
public static Class<? extends CreateUsageLimitRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2022. All rights reserved.