All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.geotab.model.search.DutyStatusLogSearch Maven / Gradle / Ivy

package com.geotab.model.search;

import com.geotab.model.entity.dutystatus.DutyStatusLog;
import com.geotab.model.entity.dutystatus.DutyStatusLogType;
import java.time.LocalDateTime;
import java.util.List;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * The object used to specify the arguments when searching for {@link DutyStatusLog}(s).
 */
@Getter @Setter
@NoArgsConstructor
public class DutyStatusLogSearch extends Search {

  /**
   * The search options which are used to search for duty status log for a device by id.
   *
   * 

Available DeviceSearch options are:. *

    *
  • Id
  • *
  • Group
  • *
  • GroupListSearch
  • *
*/ private DeviceSearch deviceSearch; /** * The DutyStatusLog logs are searched for events which were recorded on or after this date. */ private LocalDateTime fromDate; /** * The Fault data logs are searched for events which were recorded on or before this date. */ private LocalDateTime toDate; /** * Search for {@link DutyStatusLog} with this UserSearch Id or in the provided Groups * *

Available UserSearch options are:. *

    *
  • Id
  • *
  • GroupSearch
  • *
*/ private UserSearch userSearch; /** * Gets or sets search for DutyStatusLogs and include boundary logs outside the from and to dates (for example, the * log immediately preceding the from date). */ private Boolean includeBoundaryLogs; /** * Gets or sets include modification history of the {@link DutyStatusLog} results. */ private Boolean includeModifications; /** * Search for DutyStatusLogs with the provided {@link DutyStatusLogType}s. */ private List statuses; @Builder public DutyStatusLogSearch(String id, DeviceSearch deviceSearch, LocalDateTime fromDate, LocalDateTime toDate, UserSearch userSearch, Boolean includeBoundaryLogs, Boolean includeModifications, List statuses) { super(id); this.deviceSearch = deviceSearch; this.fromDate = fromDate; this.toDate = toDate; this.userSearch = userSearch; this.includeBoundaryLogs = includeBoundaryLogs; this.includeModifications = includeModifications; this.statuses = statuses; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy