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
PROVISIONEDandPAY_PER_REQUESTbilling 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
BillingModeSummaryresponse.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBillingModeSummary.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BillingModebillingMode()Controls how you are charged for read and write throughput and how you manage capacity.StringbillingModeAsString()Controls how you are charged for read and write throughput and how you manage capacity.static BillingModeSummary.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantlastUpdateToPayPerRequestDateTime()Represents the time whenPAY_PER_REQUESTwas last set as the read/write capacity mode.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends BillingModeSummary.Builder>serializableBuilderClass()BillingModeSummary.BuildertoBuilder()StringtoString()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 usingPROVISIONEDfor predictable workloads. -
PAY_PER_REQUEST- Sets the read/write capacity mode toPAY_PER_REQUEST. We recommend usingPAY_PER_REQUESTfor unpredictable workloads.
If the service returns an enum value that is not available in the current SDK version,
billingModewill 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 usingPROVISIONEDfor predictable workloads. -
PAY_PER_REQUEST- Sets the read/write capacity mode toPAY_PER_REQUEST. We recommend usingPAY_PER_REQUESTfor 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 usingPROVISIONEDfor predictable workloads. -
PAY_PER_REQUEST- Sets the read/write capacity mode toPAY_PER_REQUEST. We recommend usingPAY_PER_REQUESTfor unpredictable workloads.
If the service returns an enum value that is not available in the current SDK version,
billingModewill 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 usingPROVISIONEDfor predictable workloads. -
PAY_PER_REQUEST- Sets the read/write capacity mode toPAY_PER_REQUEST. We recommend usingPAY_PER_REQUESTfor unpredictable workloads.
-
- See Also:
BillingMode
-
-
lastUpdateToPayPerRequestDateTime
public final Instant lastUpdateToPayPerRequestDateTime()
Represents the time when
PAY_PER_REQUESTwas last set as the read/write capacity mode.- Returns:
- Represents the time when
PAY_PER_REQUESTwas last set as the read/write capacity mode.
-
toBuilder
public BillingModeSummary.Builder toBuilder()
- Specified by:
toBuilderin 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:
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-