com.geotab.model.search.TrailerAttachmentSearch Maven / Gradle / Ivy
package com.geotab.model.search;
import com.geotab.model.entity.trailer.TrailerAttachment;
import java.time.LocalDateTime;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
* The object used to specify the arguments when searching for {@link TrailerAttachment}(s).
*/
@Getter @Setter
@NoArgsConstructor
public class TrailerAttachmentSearch extends Search {
/**
* Search for TrailerAttachments with this TrailerSearch Id.
*
* Available TrailerSearch options are:
*
* -
* Id
*
*
*/
private TrailerSearch trailerSearch;
/**
* Search for TrailerAttachments attached to this DeviceSearch Id.
*
* Available DeviceSearch options are:
*
* -
* Id
*
*
*/
private DeviceSearch deviceSearch;
/**
* Search for TrailerAttachments that were active at this date or after. Set to UTC now to search for only currently
* active TrailerAttachments.
*/
private LocalDateTime activeFrom;
/**
* Search for TrailerAttachments that were active at this date or before.
*/
private LocalDateTime activeTo;
@Builder
public TrailerAttachmentSearch(String id, TrailerSearch trailerSearch,
DeviceSearch deviceSearch, LocalDateTime activeFrom, LocalDateTime activeTo) {
super(id);
this.trailerSearch = trailerSearch;
this.deviceSearch = deviceSearch;
this.activeFrom = activeFrom;
this.activeTo = activeTo;
}
}