001package com.plivo.api.models.powerpack;
002
003import com.plivo.api.models.base.ListResponse;
004import com.plivo.api.models.base.Lister;
005import com.plivo.api.util.Utils;
006import retrofit2.Call;
007
008public class PowerpackNumberLister extends Lister<Numbers> {
009
010  private String pattern;
011  private String country_iso;
012  private String type;
013  private String id;
014  private String service;
015
016  PowerpackNumberLister(String id) {
017    if (!Utils.allNotNull(id)) {
018      throw new IllegalArgumentException("uuid cannot be null");
019    }
020    this.id = id;
021  }
022
023  public PowerpackNumberLister pattern(String pattern) {
024    this.pattern = pattern;
025    return this;
026  }
027
028  public PowerpackNumberLister country_iso(String country_iso) {
029    this.country_iso = country_iso;
030    return this;
031  }
032
033  public PowerpackNumberLister type(String type) {
034    this.type = type;
035    return this;
036  }
037
038  public PowerpackNumberLister service(String service) {
039    this.service = service;
040    return this;
041  }
042
043  @Override
044  protected Call<ListResponse<Numbers>> obtainCall() {
045    return client().getApiService().powerpackNumberList(client().getAuthId(), id, toMap());
046  }
047}