com.geotab.model.search.TachographCompanyCardSearch Maven / Gradle / Ivy
package com.geotab.model.search;
import com.geotab.model.entity.tachograph.companycards.TachographCompanyCard;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
* The object used to specify the arguments when searching for {@link TachographCompanyCard}.
*/
@Getter @Setter
@NoArgsConstructor
@AllArgsConstructor
public class TachographCompanyCardSearch extends Search {
/**
* Gets or sets search for tachograph company cards with this icc.
*/
public Long icc;
/**
* Gets or sets search for tachograph company cards that match the card number.
*/
public String cardNumber;
/**
* Gets or sets search for tachograph company cards that match this status.
* The available values are:
*
* -
*
"Available": Company card available.
*
* -
*
"Busy": Company card authenticating.
*
* -
*
"Offline": Company card disconnected.
*
*
*/
public String status;
/**
* Gets or sets search for tachograph company cards
* where the company card is valid at this time, and it is not expired.
*/
public LocalDateTime isValidAt;
@Builder
public TachographCompanyCardSearch(String id, Long icc, String cardNumber, String status, LocalDateTime isValidAt) {
super(id);
this.icc = icc;
this.cardNumber = cardNumber;
this.status = status;
this.isValidAt = isValidAt;
}
}