Class PossibleEvent

java.lang.Object
com.veeroute.lss.monitor.model.PossibleEvent

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-11-23T13:47:38.388455705+03:00[Europe/Moscow]", comments="Generator version: 7.17.0") public class PossibleEvent extends Object
Possible event. Combines the geographical location and the time window, when a demand can be completed.
  • Field Details

  • Constructor Details

    • PossibleEvent

      public PossibleEvent()
  • Method Details

    • key

      public PossibleEvent key(@Nonnull String key)
    • getKey

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

      public void setKey(@Nonnull String key)
    • locationKey

      public PossibleEvent locationKey(@Nonnull String locationKey)
    • getLocationKey

      @Nonnull public String getLocationKey()
      Location key, where this event is possible.
      Returns:
      locationKey
    • setLocationKey

      public void setLocationKey(@Nonnull String locationKey)
    • duration

      public PossibleEvent duration(@Nullable String duration)
    • getDuration

      @Nullable public String getDuration()
      Time duration according to `P1DT2H12M34.2S`.
      Returns:
      duration
    • setDuration

      public void setDuration(@Nullable String duration)
    • reward

      public PossibleEvent reward(@Nullable Double reward)
    • getReward

      @Nullable public Double getReward()
      Reward for completing this event. minimum: 0 maximum: 2000000000
      Returns:
      reward
    • setReward

      public void setReward(@Nullable Double reward)
    • hardTimeWindow

      public PossibleEvent hardTimeWindow(@Nonnull TimeWindow hardTimeWindow)
    • getHardTimeWindow

      @Nonnull public TimeWindow getHardTimeWindow()
      A hard time window within which an event must occur. The window duration cannot be less than the `duration` of the event. Cannot be violated during planning.
      Returns:
      hardTimeWindow
    • setHardTimeWindow

      public void setHardTimeWindow(@Nonnull TimeWindow hardTimeWindow)
    • softTimeWindow

      public PossibleEvent softTimeWindow(@Nullable TimeWindow softTimeWindow)
    • getSoftTimeWindow

      @Nullable public TimeWindow getSoftTimeWindow()
      Get softTimeWindow
      Returns:
      softTimeWindow
    • setSoftTimeWindow

      public void setSoftTimeWindow(@Nullable TimeWindow softTimeWindow)
    • attributes

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

      public PossibleEvent 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)
    • contact

      public PossibleEvent contact(@Nullable PossibleEventContact contact)
    • getContact

      @Nullable public PossibleEventContact getContact()
      Get contact
      Returns:
      contact
    • setContact

      public void setContact(@Nullable PossibleEventContact contact)
    • putAdditionalProperty

      public PossibleEvent 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 PossibleEvent 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 PossibleEvent
    • fromJson

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

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