Package io.voucherify.client.model
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`.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDataItem(Location dataItem) booleanstatic LocationsListResponseBodyCreate an instance of LocationsListResponseBody given an JSON stringgetData()Array of location objects.Identifies the name of the attribute that contains the array of metadata schema objects.As query results are always limited (by the limit parameter), the `has_more` flag indicates if there are more records for given filter parameters.The type of the object represented by JSON.getTotal()Total number of locations.inthashCode()voidvoidsetDataRef(String dataRef) voidsetHasMore(Boolean hasMore) voidvoidtoJson()Convert an instance of LocationsListResponseBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_DATA_REF
- See Also:
-
SERIALIZED_NAME_DATA
- See Also:
-
SERIALIZED_NAME_TOTAL
- See Also:
-
SERIALIZED_NAME_HAS_MORE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LocationsListResponseBody
public LocationsListResponseBody()
-
-
Method Details
-
_object
-
getObject
The type of the object represented by JSON. This object stores information about locations in a dictionary.- Returns:
- _object
-
setObject
-
dataRef
-
getDataRef
Identifies the name of the attribute that contains the array of metadata schema objects.- Returns:
- dataRef
-
setDataRef
-
data
-
addDataItem
-
getData
Array of location objects.- Returns:
- data
-
setData
-
total
-
getTotal
Total number of locations.- Returns:
- total
-
setTotal
-
hasMore
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
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
Convert an instance of LocationsListResponseBody to an JSON string- Returns:
- JSON string
-