Class Location

java.lang.Object
com.veeroute.lss.studio.model.Location

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-11-23T13:47:57.513559297+03:00[Europe/Moscow]", comments="Generator version: 7.17.0") public class Location extends Object
Location - unique geographical location of the object with accessibility parameters.
  • Field Details

  • Constructor Details

    • Location

      public Location()
  • Method Details

    • key

      public Location key(@Nonnull String key)
    • getKey

      @Nonnull public String getKey()
      Location key, unique identifier.
      Returns:
      key
    • setKey

      public void setKey(@Nonnull String key)
    • geopoint

      public Location geopoint(@Nonnull Geopoint geopoint)
    • getGeopoint

      @Nonnull public Geopoint getGeopoint()
      Get geopoint
      Returns:
      geopoint
    • setGeopoint

      public void setGeopoint(@Nonnull Geopoint geopoint)
    • arrivalDuration

      public Location arrivalDuration(@Nullable String arrivalDuration)
    • getArrivalDuration

      @Nullable public String getArrivalDuration()
      Time duration according to `P1DT2H12M34.2S`.
      Returns:
      arrivalDuration
    • setArrivalDuration

      public void setArrivalDuration(@Nullable String arrivalDuration)
    • departureDuration

      public Location departureDuration(@Nullable String departureDuration)
    • getDepartureDuration

      @Nullable public String getDepartureDuration()
      Time duration according to `P1DT2H12M34.2S`.
      Returns:
      departureDuration
    • setDepartureDuration

      public void setDepartureDuration(@Nullable String departureDuration)
    • timetable

      public Location timetable(@Nullable List<LocationTimetableElement> timetable)
    • addTimetableItem

      public Location addTimetableItem(LocationTimetableElement timetableItem)
    • getTimetable

      @Nullable public List<LocationTimetableElement> getTimetable()
      Location timetable - time windows of availability and capacity restrictions. If the list is empty or not specified, the location works without restrictions.
      Returns:
      timetable
    • setTimetable

      public void setTimetable(@Nullable List<LocationTimetableElement> timetable)
    • compatibilities

      public Location compatibilities(@Nullable LocationCompatibilities compatibilities)
    • getCompatibilities

      @Nullable public LocationCompatibilities getCompatibilities()
      Get compatibilities
      Returns:
      compatibilities
    • setCompatibilities

      public void setCompatibilities(@Nullable LocationCompatibilities compatibilities)
    • name

      public Location name(@Nullable String name)
    • getName

      @Nullable public String getName()
      Name, information field.
      Returns:
      name
    • setName

      public void setName(@Nullable String name)
    • address

      public Location address(@Nullable String address)
    • getAddress

      @Nullable public String getAddress()
      Full location address.
      Returns:
      address
    • setAddress

      public void setAddress(@Nullable String address)
    • attributes

      public Location attributes(@Nullable Set<Attribute> attributes)
    • addAttributesItem

      public Location addAttributesItem(Attribute attributesItem)
    • getAttributes

      @Nullable public Set<Attribute> getAttributes()
      Attributes. Used to add service information.
      Returns:
      attributes
    • setAttributes

      public void setAttributes(@Nullable Set<Attribute> attributes)
    • putAdditionalProperty

      public Location putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the Location instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • 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 Location
    • 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