Class CapacityReservation

    • Method Detail

      • name

        public final String name()

        The name of the capacity reservation.

        Returns:
        The name of the capacity reservation.
      • targetDpus

        public final Integer targetDpus()

        The number of data processing units requested.

        Returns:
        The number of data processing units requested.
      • allocatedDpus

        public final Integer allocatedDpus()

        The number of data processing units currently allocated.

        Returns:
        The number of data processing units currently allocated.
      • lastAllocation

        public final CapacityAllocation lastAllocation()
        Returns the value of the LastAllocation property for this object.
        Returns:
        The value of the LastAllocation property for this object.
      • lastSuccessfulAllocationTime

        public final Instant lastSuccessfulAllocationTime()

        The time of the most recent capacity allocation that succeeded.

        Returns:
        The time of the most recent capacity allocation that succeeded.
      • creationTime

        public final Instant creationTime()

        The time in UTC epoch millis when the capacity reservation was created.

        Returns:
        The time in UTC epoch millis when the capacity reservation was created.
      • hashCode

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

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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)