Enum ExpirationActions

java.lang.Object
java.lang.Enum<ExpirationActions>
com.easypost.easyvcr.ExpirationActions
All Implemented Interfaces:
Serializable, Comparable<ExpirationActions>

public enum ExpirationActions extends Enum<ExpirationActions>
Enums representing different actions to take when a recording is expired.
  • Enum Constant Details

    • Warn

      public static final ExpirationActions Warn
      Warn that the recorded interaction is expired, but proceed as normal.
    • ThrowException

      public static final ExpirationActions ThrowException
      Throw an exception that the recorded interaction is expired.
    • RecordAgain

      public static final ExpirationActions RecordAgain
      Automatically re-record the recorded interaction. This cannot be used with Mode.Replay.
  • Method Details

    • values

      public static ExpirationActions[] 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 ExpirationActions 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