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.
  • Field Details

  • Constructor Details

    • Location

      public Location()
  • Method Details

    • id

      public Location id(String id)
    • getId

      @Nullable public String getId()
      Unique location ID, assigned by the Voucherify API.
      Returns:
      id
    • setId

      public void setId(String id)
    • _object

      public Location _object(Location.ObjectEnum _object)
    • getObject

      @Nullable public Location.ObjectEnum getObject()
      The type of the object represented by JSON. This object stores information about a `location`.
      Returns:
      _object
    • setObject

      public void setObject(Location.ObjectEnum _object)
    • name

      public Location name(String name)
    • getName

      @Nullable public String getName()
      Location name.
      Returns:
      name
    • setName

      public void setName(String name)
    • shape

      public Location shape(LocationShape shape)
    • getShape

      @Nullable public LocationShape getShape()
      Get shape
      Returns:
      shape
    • setShape

      public void setShape(LocationShape shape)
    • createdAt

      public Location createdAt(OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      Timestamp representing the date and time when the location was created. The value is shown in the ISO 8601 format.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(OffsetDateTime createdAt)
    • updatedAt

      public Location updatedAt(OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nullable public OffsetDateTime getUpdatedAt()
      Timestamp representing the date and time when the location was updated. The value is shown in the ISO 8601 format.
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(OffsetDateTime updatedAt)
    • 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 Location fromJson(String jsonString) throws IOException
      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

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