Package io.voucherify.client.model
Class Location
java.lang.Object
io.voucherify.client.model.Location
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class Location
extends Object
This is an object representing a location.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented by JSON. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_object(Location.ObjectEnum _object) createdAt(OffsetDateTime createdAt) booleanstatic LocationCreate an instance of Location given an JSON stringTimestamp representing the date and time when the location was created.getId()Unique location ID, assigned by the Voucherify API.getName()Location name.The type of the object represented by JSON.getShape()Get shapeTimestamp representing the date and time when the location was updated.inthashCode()voidsetCreatedAt(OffsetDateTime createdAt) voidvoidvoidsetObject(Location.ObjectEnum _object) voidsetShape(LocationShape shape) voidsetUpdatedAt(OffsetDateTime updatedAt) shape(LocationShape shape) toJson()Convert an instance of Location to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt)
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_SHAPE
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Location
public Location()
-
-
Method Details
-
id
-
getId
Unique location ID, assigned by the Voucherify API.- Returns:
- id
-
setId
-
_object
-
getObject
The type of the object represented by JSON. This object stores information about a `location`.- Returns:
- _object
-
setObject
-
name
-
getName
Location name.- Returns:
- name
-
setName
-
shape
-
getShape
Get shape- Returns:
- shape
-
setShape
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the location was created. The value is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
Timestamp representing the date and time when the location was updated. The value is shown in the ISO 8601 format.- Returns:
- updatedAt
-
setUpdatedAt
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of Location given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Location
- Throws:
IOException- if the JSON string is invalid with respect to Location
-
toJson
Convert an instance of Location to an JSON string- Returns:
- JSON string
-