java.lang.Object
com.sanctionco.opconnect.model.apiactivity.Resource

public class Resource extends Object
Represents a resource that was specified in an APIRequest.
  • Method Details

    • getType

      public ResourceType getType()
      Get the type of the resource.
      Returns:
      the type of the resource requested
    • getVault

      public VaultId getVault()
      Get the ID of the of the vault requested.
      Returns:
      an object containing the ID of the vault requested
    • getItem

      public ItemId getItem()
      Get the ID of the item requested.
      Returns:
      an object containing the ID of the item requested
    • getItemVersion

      public Integer getItemVersion()
      Get the version of the item requested.
      Returns:
      the version of the item requested
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object