Enum APIRequestAction

java.lang.Object
java.lang.Enum<APIRequestAction>
com.sanctionco.opconnect.model.apiactivity.APIRequestAction
All Implemented Interfaces:
Serializable, Comparable<APIRequestAction>, java.lang.constant.Constable

public enum APIRequestAction extends Enum<APIRequestAction>
Represents an action that occurred from an APIRequest.
  • Enum Constant Details

    • READ

      public static final APIRequestAction READ
      Represents a READ (i.e. GET) API request action.
    • CREATE

      public static final APIRequestAction CREATE
      Represents a CREATE (i.e. POST) API request action.
    • UPDATE

      public static final APIRequestAction UPDATE
      Represents an UPDATE (i.e. PUT or PATCH) API request action.
    • DELETE

      public static final APIRequestAction DELETE
      Represents a DELETE (i.e. DELETE) API request action.
  • Method Details

    • values

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