001package com.plivo.api.models.powerpack; 002 003import com.plivo.api.models.base.Getter; 004import retrofit2.Call; 005 006public class PowerpackAddTollfree extends Getter<Tollfree> { 007 008 private String tollfree; 009 private String uuid; 010 011 public PowerpackAddTollfree(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 PowerpackAddTollfree 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("tollfree cannot be null"); 028 } 029 return client().getApiService().powerpackAddTollfreeCreate(client().getAuthId(), uuid, tollfree, this); 030 } 031}