Class BranchDatabaseUsage

java.lang.Object
software.amazon.awssdk.services.amplifygen3.model.BranchDatabaseUsage
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<BranchDatabaseUsage.Builder,BranchDatabaseUsage>

@Generated("software.amazon.awssdk:codegen") public final class BranchDatabaseUsage extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BranchDatabaseUsage.Builder,BranchDatabaseUsage>

The usage of a branch's database, sampled once per sampling window of a few minutes. Sampling stops while the backend is paused. A member is absent when its value isn't reported.

See Also:
  • Method Details

    • storageBytes

      public final Long storageBytes()

      The size of the database, in bytes. The database's storage limit applies to this size.

      Returns:
      The size of the database, in bytes. The database's storage limit applies to this size.
    • connections

      public final Integer connections()

      The number of sessions, including idle sessions, that were connected to the database at the time of SampledAt.

      Returns:
      The number of sessions, including idle sessions, that were connected to the database at the time of SampledAt.
    • lastUsedAt

      public final Instant lastUsedAt()

      The end of the most recent sampling window in which the database was used, either by a new connection or by load on an existing connection. The value is in ISO-8601 format.

      Returns:
      The end of the most recent sampling window in which the database was used, either by a new connection or by load on an existing connection. The value is in ISO-8601 format.
    • sampledAt

      public final Instant sampledAt()

      The end of the most recent sampling window in which one of these values changed. For a branch with steady usage, this time can be old even though the values are current. The value is in ISO-8601 format.

      Returns:
      The end of the most recent sampling window in which one of these values changed. For a branch with steady usage, this time can be old even though the values are current. The value is in ISO-8601 format.
    • monthlyBackendCapacityUnitHours

      public final Double monthlyBackendCapacityUnitHours()

      The backend capacity unit hours (BCU-hours) that the branch's database used in the current calendar month (UTC). This value is the branch's share of the backend's MonthlyBackendCapacityUnitHours and is counted the same way. The value is 0 when the database used none this month, resets to 0 at 00:00 UTC on the first day of each month, and lags actual use by about one hour. It is absent when the value can't be read.

      Returns:
      The backend capacity unit hours (BCU-hours) that the branch's database used in the current calendar month (UTC). This value is the branch's share of the backend's MonthlyBackendCapacityUnitHours and is counted the same way. The value is 0 when the database used none this month, resets to 0 at 00:00 UTC on the first day of each month, and lags actual use by about one hour. It is absent when the value can't be read.
    • toBuilder

      public BranchDatabaseUsage.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<BranchDatabaseUsage.Builder,BranchDatabaseUsage>
      Returns:
      a builder for type T
    • builder

      public static BranchDatabaseUsage.Builder builder()
    • serializableBuilderClass

      public static Class<? extends BranchDatabaseUsage.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)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.