Class Crew

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

@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 Crew extends Object
Crew.
  • Field Details

  • Constructor Details

    • Crew

      public Crew()
  • Method Details

    • key

      public Crew key(@Nonnull String key)
    • getKey

      @Nonnull public String getKey()
      A unique (within a single company) identifier for a crew. It is assigned upon creation and cannot be changed.
      Returns:
      key
    • setKey

      public void setKey(@Nonnull String key)
    • accountUsername

      public Crew accountUsername(@Nonnull String accountUsername)
    • getAccountUsername

      @Nonnull public String getAccountUsername()
      Unique username for login.
      Returns:
      accountUsername
    • setAccountUsername

      public void setAccountUsername(@Nonnull String accountUsername)
    • ownerCompanyKey

      public Crew ownerCompanyKey(@Nonnull String ownerCompanyKey)
    • getOwnerCompanyKey

      @Nonnull public String getOwnerCompanyKey()
      Unique company key.
      Returns:
      ownerCompanyKey
    • setOwnerCompanyKey

      public void setOwnerCompanyKey(@Nonnull String ownerCompanyKey)
    • ownerUsername

      public Crew ownerUsername(@Nonnull String ownerUsername)
    • getOwnerUsername

      @Nonnull public String getOwnerUsername()
      Unique username for login.
      Returns:
      ownerUsername
    • setOwnerUsername

      public void setOwnerUsername(@Nonnull String ownerUsername)
    • status

      public Crew status(@Nonnull CrewStatus status)
    • getStatus

      @Nonnull public CrewStatus getStatus()
      Get status
      Returns:
      status
    • setStatus

      public void setStatus(@Nonnull CrewStatus status)
    • composition

      public Crew composition(@Nonnull CrewComposition composition)
    • getComposition

      @Nonnull public CrewComposition getComposition()
      Get composition
      Returns:
      composition
    • setComposition

      public void setComposition(@Nonnull CrewComposition composition)
    • devices

      public Crew devices(@Nullable List<CrewDevice> devices)
    • addDevicesItem

      public Crew addDevicesItem(CrewDevice devicesItem)
    • getDevices

      @Nullable public List<CrewDevice> getDevices()
      List of device.
      Returns:
      devices
    • setDevices

      public void setDevices(@Nullable List<CrewDevice> devices)
    • editDate

      public Crew editDate(@Nonnull OffsetDateTime editDate)
    • getEditDate

      @Nonnull public OffsetDateTime getEditDate()
      Last edit date and time in the [ISO 8601](https://tools.ietf.org/html/rfc3339#section-5.6) format.
      Returns:
      editDate
    • setEditDate

      public void setEditDate(@Nonnull OffsetDateTime editDate)
    • putAdditionalProperty

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

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

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