Class BillingModeSummary
- java.lang.Object
-
- software.amazon.awssdk.services.dynamodb.model.BillingModeSummary
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<BillingModeSummary.Builder,BillingModeSummary>
@Generated("software.amazon.awssdk:codegen") public final class BillingModeSummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BillingModeSummary.Builder,BillingModeSummary>
Contains the details for the read/write capacity mode. This page talks about
PROVISIONED
andPAY_PER_REQUEST
billing modes. For more information about these modes, see Read/write capacity mode.You may need to switch to on-demand mode at least once in order to return a
BillingModeSummary
response.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
BillingModeSummary.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BillingMode
billingMode()
Controls how you are charged for read and write throughput and how you manage capacity.String
billingModeAsString()
Controls how you are charged for read and write throughput and how you manage capacity.static BillingModeSummary.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Instant
lastUpdateToPayPerRequestDateTime()
Represents the time whenPAY_PER_REQUEST
was last set as the read/write capacity mode.List<SdkField<?>>
sdkFields()
static Class<? extends BillingModeSummary.Builder>
serializableBuilderClass()
BillingModeSummary.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
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
-
billingMode
public final BillingMode billingMode()
Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.
-
PROVISIONED
- Sets the read/write capacity mode toPROVISIONED
. We recommend usingPROVISIONED
for predictable workloads. -
PAY_PER_REQUEST
- Sets the read/write capacity mode toPAY_PER_REQUEST
. We recommend usingPAY_PER_REQUEST
for unpredictable workloads.
If the service returns an enum value that is not available in the current SDK version,
billingMode
will returnBillingMode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frombillingModeAsString()
.- Returns:
- Controls how you are charged for read and write throughput and how you manage capacity. This setting can
be changed later.
-
PROVISIONED
- Sets the read/write capacity mode toPROVISIONED
. We recommend usingPROVISIONED
for predictable workloads. -
PAY_PER_REQUEST
- Sets the read/write capacity mode toPAY_PER_REQUEST
. We recommend usingPAY_PER_REQUEST
for unpredictable workloads.
-
- See Also:
BillingMode
-
-
billingModeAsString
public final String billingModeAsString()
Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.
-
PROVISIONED
- Sets the read/write capacity mode toPROVISIONED
. We recommend usingPROVISIONED
for predictable workloads. -
PAY_PER_REQUEST
- Sets the read/write capacity mode toPAY_PER_REQUEST
. We recommend usingPAY_PER_REQUEST
for unpredictable workloads.
If the service returns an enum value that is not available in the current SDK version,
billingMode
will returnBillingMode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frombillingModeAsString()
.- Returns:
- Controls how you are charged for read and write throughput and how you manage capacity. This setting can
be changed later.
-
PROVISIONED
- Sets the read/write capacity mode toPROVISIONED
. We recommend usingPROVISIONED
for predictable workloads. -
PAY_PER_REQUEST
- Sets the read/write capacity mode toPAY_PER_REQUEST
. We recommend usingPAY_PER_REQUEST
for unpredictable workloads.
-
- See Also:
BillingMode
-
-
lastUpdateToPayPerRequestDateTime
public final Instant lastUpdateToPayPerRequestDateTime()
Represents the time when
PAY_PER_REQUEST
was last set as the read/write capacity mode.- Returns:
- Represents the time when
PAY_PER_REQUEST
was last set as the read/write capacity mode.
-
toBuilder
public BillingModeSummary.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<BillingModeSummary.Builder,BillingModeSummary>
-
builder
public static BillingModeSummary.Builder builder()
-
serializableBuilderClass
public static Class<? extends BillingModeSummary.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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.
-
-