Class ListKeysResponse

java.lang.Object
ai.shipeasy.admin.model.ListKeysResponse

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class ListKeysResponse extends Object
One page of API keys plus a keyset `next_cursor` (ordered `created_at desc, id desc`).
  • Field Details

  • Constructor Details

    • ListKeysResponse

      public ListKeysResponse()
  • Method Details

    • data

      public ListKeysResponse data(@Nonnull List<KeyRecord> data)
    • addDataItem

      public ListKeysResponse addDataItem(KeyRecord dataItem)
    • getData

      @Nonnull public List<KeyRecord> getData()
      Get data
      Returns:
      data
    • setData

      public void setData(@Nonnull List<KeyRecord> data)
    • nextCursor

      public ListKeysResponse nextCursor(@Nullable String nextCursor)
    • getNextCursor

      @Nullable public String getNextCursor()
      Opaque cursor for the next page, or `null` on the last page. Pass it back as the `cursor` query parameter.
      Returns:
      nextCursor
    • setNextCursor

      public void setNextCursor(@Nullable String nextCursor)
    • 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
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to ListKeysResponse
    • fromJson

      public static ListKeysResponse fromJson(String jsonString) throws IOException
      Create an instance of ListKeysResponse given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of ListKeysResponse
      Throws:
      IOException - if the JSON string is invalid with respect to ListKeysResponse
    • toJson

      public String toJson()
      Convert an instance of ListKeysResponse to an JSON string
      Returns:
      JSON string