Enum PauseStatus

java.lang.Object
java.lang.Enum<PauseStatus>
com.amazonaws.services.s3.transfer.PauseStatus
All Implemented Interfaces:
Serializable, Comparable<PauseStatus>, java.lang.constant.Constable

public enum PauseStatus extends Enum<PauseStatus>
The status of a pause operation initiated on a Upload/ Download.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    pause is not possible while transfer is already in progress AND cancel was requested; so we cancel it
    pause is not yet applicable since transfer has not started AND cancel was requested; so we cancel it
    pause is not possible while transfer is already in progress; so no action taken
    pause is not yet applicable since transfer has not started; so no action taken
    transfer successfully paused (and therefore the return information can be used to resume the transfer later on)
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the transfer is cancelled else false.
    boolean
    Returns true if the transfer is paused else false.
    boolean
    Returns true if the transfer is not started or the pause operation has no effect on the transfer.
    Returns the enum constant of this type with the specified name.
    static PauseStatus[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • SUCCESS

      public static final PauseStatus SUCCESS
      transfer successfully paused (and therefore the return information can be used to resume the transfer later on)
    • NOT_STARTED

      public static final PauseStatus NOT_STARTED
      pause is not yet applicable since transfer has not started; so no action taken
    • CANCELLED_BEFORE_START

      public static final PauseStatus CANCELLED_BEFORE_START
      pause is not yet applicable since transfer has not started AND cancel was requested; so we cancel it
    • NO_EFFECT

      public static final PauseStatus NO_EFFECT
      pause is not possible while transfer is already in progress; so no action taken
    • CANCELLED

      public static final PauseStatus CANCELLED
      pause is not possible while transfer is already in progress AND cancel was requested; so we cancel it
  • Method Details

    • values

      public static PauseStatus[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PauseStatus valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • isPaused

      public boolean isPaused()
      Returns true if the transfer is paused else false.
    • isCancelled

      public boolean isCancelled()
      Returns true if the transfer is cancelled else false.
    • unchanged

      public boolean unchanged()
      Returns true if the transfer is not started or the pause operation has no effect on the transfer.