Class RestoreStatus

    • Method Detail

      • status

        public final String status()

        The status of the restore action. Returns starting, restoring, completed, or failed.

        Returns:
        The status of the restore action. Returns starting, restoring, completed, or failed.
      • currentRestoreRateInMegaBytesPerSecond

        public final Double currentRestoreRateInMegaBytesPerSecond()

        The number of megabytes per second being transferred from the backup storage. Returns the average rate for a completed backup. This field is only updated when you restore to DC2 and DS2 node types.

        Returns:
        The number of megabytes per second being transferred from the backup storage. Returns the average rate for a completed backup. This field is only updated when you restore to DC2 and DS2 node types.
      • snapshotSizeInMegaBytes

        public final Long snapshotSizeInMegaBytes()

        The size of the set of snapshot data used to restore the cluster. This field is only updated when you restore to DC2 and DS2 node types.

        Returns:
        The size of the set of snapshot data used to restore the cluster. This field is only updated when you restore to DC2 and DS2 node types.
      • progressInMegaBytes

        public final Long progressInMegaBytes()

        The number of megabytes that have been transferred from snapshot storage. This field is only updated when you restore to DC2 and DS2 node types.

        Returns:
        The number of megabytes that have been transferred from snapshot storage. This field is only updated when you restore to DC2 and DS2 node types.
      • elapsedTimeInSeconds

        public final Long elapsedTimeInSeconds()

        The amount of time an in-progress restore has been running, or the amount of time it took a completed restore to finish. This field is only updated when you restore to DC2 and DS2 node types.

        Returns:
        The amount of time an in-progress restore has been running, or the amount of time it took a completed restore to finish. This field is only updated when you restore to DC2 and DS2 node types.
      • estimatedTimeToCompletionInSeconds

        public final Long estimatedTimeToCompletionInSeconds()

        The estimate of the time remaining before the restore will complete. Returns 0 for a completed restore. This field is only updated when you restore to DC2 and DS2 node types.

        Returns:
        The estimate of the time remaining before the restore will complete. Returns 0 for a completed restore. This field is only updated when you restore to DC2 and DS2 node types.
      • 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)