All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.plivo.api.models.powerpack.FindTollfree Maven / Gradle / Ivy

Go to download

A Java SDK to make voice calls & send SMS using Plivo and to generate Plivo XML

There is a newer version: 5.46.0
Show newest version
package com.plivo.api.models.powerpack;

import com.plivo.api.models.base.Getter;
import retrofit2.Call;

public class FindTollfree extends Getter {

  private String tollfree;
  private String uuid;

  public FindTollfree(String uuid) {
    super(uuid);
    if (uuid == null) {
      throw new IllegalArgumentException("powerpack uuid cannot be null");
    }
    this.uuid = uuid;
  }

  public FindTollfree tollfree(String tollfree) {
    this.tollfree = tollfree;
    return this;
  }

  @Override
  protected Call obtainCall() {
    if (tollfree == null) {
      throw new IllegalArgumentException("number cannot be null");
    }
    return client().getApiService().powerpackFindTollfreeGet(client().getAuthId(), uuid, tollfree);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy