Class LocationsListResponseBody

java.lang.Object
io.voucherify.client.model.LocationsListResponseBody

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class LocationsListResponseBody extends Object
Response schema for listing locations using **GET** `v1/locations`.
  • Field Details

  • Constructor Details

    • LocationsListResponseBody

      public LocationsListResponseBody()
  • Method Details

    • _object

      public LocationsListResponseBody _object(String _object)
    • getObject

      @Nullable public String getObject()
      The type of the object represented by JSON. This object stores information about locations in a dictionary.
      Returns:
      _object
    • setObject

      public void setObject(String _object)
    • dataRef

      public LocationsListResponseBody dataRef(String dataRef)
    • getDataRef

      @Nullable public String getDataRef()
      Identifies the name of the attribute that contains the array of metadata schema objects.
      Returns:
      dataRef
    • setDataRef

      public void setDataRef(String dataRef)
    • data

    • addDataItem

      public LocationsListResponseBody addDataItem(Location dataItem)
    • getData

      @Nullable public List<Location> getData()
      Array of location objects.
      Returns:
      data
    • setData

      public void setData(List<Location> data)
    • total

      public LocationsListResponseBody total(Integer total)
    • getTotal

      @Nullable public Integer getTotal()
      Total number of locations.
      Returns:
      total
    • setTotal

      public void setTotal(Integer total)
    • hasMore

      public LocationsListResponseBody hasMore(Boolean hasMore)
    • getHasMore

      @Nullable public Boolean getHasMore()
      As query results are always limited (by the limit parameter), the `has_more` flag indicates if there are more records for given filter parameters. This lets you know if you can run another request (with a different end date filter) to get more records returned in the results.
      Returns:
      hasMore
    • setHasMore

      public void setHasMore(Boolean hasMore)
    • 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
    • fromJson

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

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