001package com.plivo.api.models.powerpack;
002
003import com.plivo.api.models.base.Deleter;
004import okhttp3.ResponseBody;
005
006public class RemoveTollfree extends Deleter<Tollfree> {
007
008  private Boolean unrent;
009  private String number;
010  private String tollfree;
011
012  public RemoveTollfree(String id) {
013    super(id);
014    if (id == null) {
015      throw new IllegalArgumentException("powerpack uuid cannot be null");
016    }
017    this.id = id;
018    this.unrent = Boolean.FALSE;
019  }
020
021
022  public Boolean unrent() {
023    return this.unrent;
024  }
025
026  /**
027   * @param unrent Specify if the powerpack numbers should be unrent_numbers or not.
028   */
029  public RemoveTollfree unrent(final Boolean unrent) {
030    this.unrent = unrent;
031    return this;
032  }
033
034  public RemoveTollfree tollfree(final String tollfree) {
035    this.tollfree = tollfree;
036    return this;
037  }
038
039  @Override
040  protected retrofit2.Call<ResponseBody> obtainCall() {
041    return client().getApiService().powerpackTollfreeDelete(client().getAuthId(), id, tollfree, this);
042  }
043}