com.geotab.model.search.IoxAddOnSearch Maven / Gradle / Ivy
/*
*
* 2020 Copyright (C) Geotab Inc. All rights reserved.
*/
package com.geotab.model.search;
import com.geotab.model.entity.ioxaddon.IoxAddOn;
import com.geotab.model.entity.ioxaddon.KnownIoxAddOnType;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
/**
* The object used to specify the arguments when searching for {@link IoxAddOn}(s).
*/
@NoArgsConstructor
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class IoxAddOnSearch extends IdSearch {
/**
* Search for {@link IoxAddOn} with this DeviceSearch Id.
*
* Available DeviceSearch options are:
*
* - id
*
*/
private DeviceSearch deviceSearch;
/**
* Search for Iox Add-Ons of a specific type (Garmin, GoTalk etc). See {@link KnownIoxAddOnType}.
*/
private Integer type;
/**
* If true only Iox Add-Ons that are currently connected to a device will be returned.
*/
private Boolean connectedOnly;
@Builder
public IoxAddOnSearch(String id, DeviceSearch deviceSearch, Integer type,
Boolean connectedOnly) {
super(id);
this.deviceSearch = deviceSearch;
this.type = type;
this.connectedOnly = connectedOnly;
}
}