com.geotab.model.search.DistributionListSearch Maven / Gradle / Ivy
package com.geotab.model.search;
import com.geotab.model.Id;
import com.geotab.model.entity.distributionlist.DistributionList;
import com.geotab.model.entity.recipient.Recipient;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
* Used to specify the arguments when searching for {@link DistributionList}s.
*/
@Getter @Setter
@NoArgsConstructor
public class DistributionListSearch extends Search {
/**
* The maximum Id of the search criteria.
*/
private Id maxId;
/**
* Search for DistributionLists with these full {@link Recipient} objects.
*
* Available {@link RecipientSearch} options are:
*
* -
* {@link Id}
*
*
*/
private RecipientSearch recipientSearch;
/**
* Search for DistributionLists with this {@link RuleSearch} id.
*
* Available {@link RuleSearch} options are:
*
* -
* {@link Id}
*
*
*/
private RuleSearch ruleSearch;
@Builder
public DistributionListSearch(String id, Id maxId,
RecipientSearch recipientSearch, RuleSearch ruleSearch) {
super(id);
this.maxId = maxId;
this.recipientSearch = recipientSearch;
this.ruleSearch = ruleSearch;
}
}