001package com.plivo.api.models.powerpack;
002
003import com.plivo.api.models.base.Getter;
004import retrofit2.Call;
005
006public class FindTollfree extends Getter<Tollfree> {
007
008  private String tollfree;
009  private String uuid;
010
011  public FindTollfree(String uuid) {
012    super(uuid);
013    if (uuid == null) {
014      throw new IllegalArgumentException("powerpack uuid cannot be null");
015    }
016    this.uuid = uuid;
017  }
018
019  public FindTollfree tollfree(String tollfree) {
020    this.tollfree = tollfree;
021    return this;
022  }
023
024  @Override
025  protected Call<Tollfree> obtainCall() {
026    if (tollfree == null) {
027      throw new IllegalArgumentException("number cannot be null");
028    }
029    return client().getApiService().powerpackFindTollfreeGet(client().getAuthId(), uuid, tollfree);
030  }
031}