com.geotab.model.search.PropertySearch Maven / Gradle / Ivy
package com.geotab.model.search;
import com.geotab.model.entity.customproperty.Property;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
* The search criteria for {@link Property}.
*/
@Getter @Setter
@NoArgsConstructor
public class PropertySearch extends Search {
/**
* Search for Properties with this External Reference. Wildcard can be used by prepending/appending "%" to string.
* Example "%externalreference%".
*/
private String externalReference;
/**
* Search for Properties with this Name. Wildcard can be used by prepending/appending "%" to string. Example
* "%name%".
*/
private String name;
@Builder
public PropertySearch(String id, String externalReference, String name) {
super(id);
this.externalReference = externalReference;
this.name = name;
}
}