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

com.plivo.api.models.number.PhoneNumberCreator 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.44.3
Show newest version
package com.plivo.api.models.number;

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

public class PhoneNumberCreator extends Creator {

  private String number;
  private String appId;
  private String cnamLookup;

  public PhoneNumberCreator(String number) {
    if (number == null) {
      throw new IllegalArgumentException("number cannot be null");
    }

    this.number = number;
  }

  public String appId() {
    return this.appId;
  }

  public String cnamLookup() {
    return this.cnamLookup;
  }

  public PhoneNumberCreator appId(final String appId) {
    this.appId = appId;
    return this;
  }

  public PhoneNumberCreator cnamLookup(final String cnamLookup) {
    this.cnamLookup = cnamLookup;
    return this;
  }

  @Override
  protected Call obtainCall() {
    return client().getApiService().phoneNumberCreate(client().getAuthId(), number, this);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy