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 and PAY_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:
  • Method Details

    • 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 to PROVISIONED. We recommend using PROVISIONED for predictable workloads.

      • PAY_PER_REQUEST - Sets the read/write capacity mode to PAY_PER_REQUEST. We recommend using PAY_PER_REQUEST for unpredictable workloads.

      If the service returns an enum value that is not available in the current SDK version, billingMode will return BillingMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from billingModeAsString().

      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 to PROVISIONED. We recommend using PROVISIONED for predictable workloads.

      • PAY_PER_REQUEST - Sets the read/write capacity mode to PAY_PER_REQUEST. We recommend using PAY_PER_REQUEST for unpredictable workloads.

      See Also:
    • 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 to PROVISIONED. We recommend using PROVISIONED for predictable workloads.

      • PAY_PER_REQUEST - Sets the read/write capacity mode to PAY_PER_REQUEST. We recommend using PAY_PER_REQUEST for unpredictable workloads.

      If the service returns an enum value that is not available in the current SDK version, billingMode will return BillingMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from billingModeAsString().

      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 to PROVISIONED. We recommend using PROVISIONED for predictable workloads.

      • PAY_PER_REQUEST - Sets the read/write capacity mode to PAY_PER_REQUEST. We recommend using PAY_PER_REQUEST for unpredictable workloads.

      See Also:
    • 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 interface ToCopyableBuilder<BillingModeSummary.Builder,BillingModeSummary>
    • builder

      public static BillingModeSummary.Builder builder()
    • serializableBuilderClass

      public static Class<? extends BillingModeSummary.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo