001package com.plivo.api.models.address;
002
003import com.plivo.api.models.base.Updater;
004import retrofit2.Call;
005
006public class AddressUpdater extends Updater<AddressUpdateResponse> {
007
008  private String countryIso;
009  private String salutation;
010  private String firstName;
011  private String lastName;
012  private String addressLine1;
013  private String addressLine2;
014  private String city;
015  private String region;
016  private String postalCode;
017
018  public AddressUpdater(String id) {
019    super(id);
020  }
021
022  public String getCountryIso() {
023    return countryIso;
024  }
025
026  public String getSalutation() {
027    return salutation;
028  }
029
030  public String getFirstName() {
031    return firstName;
032  }
033
034  public String getLastName() {
035    return lastName;
036  }
037
038  public String getAddressLine1() {
039    return addressLine1;
040  }
041
042  public String getAddressLine2() {
043    return addressLine2;
044  }
045
046  public String getCity() {
047    return city;
048  }
049
050  public String getRegion() {
051    return region;
052  }
053
054  public String getPostalCode() {
055    return postalCode;
056  }
057
058  public AddressUpdater countryIso(String countryIso) {
059    this.countryIso = countryIso;
060    return this;
061  }
062
063  public AddressUpdater salutation(String salutation) {
064    this.salutation = salutation;
065    return this;
066  }
067
068  public AddressUpdater firstName(String firstName) {
069    this.firstName = firstName;
070    return this;
071  }
072
073  public AddressUpdater lastName(String lastName) {
074    this.lastName = lastName;
075    return this;
076  }
077
078  public AddressUpdater addressLine1(String addressLine1) {
079    this.addressLine1 = addressLine1;
080    return this;
081  }
082
083  public AddressUpdater addressLine2(String addressLine2) {
084    this.addressLine2 = addressLine2;
085    return this;
086  }
087
088  public AddressUpdater city(String city) {
089    this.city = city;
090    return this;
091  }
092
093  public AddressUpdater region(String region) {
094    this.region = region;
095    return this;
096  }
097
098  public AddressUpdater postalCode(String postalCode) {
099    this.postalCode = postalCode;
100    return this;
101  }
102
103  @Override
104  protected Call<AddressUpdateResponse> obtainCall() {
105    return client().getApiService().addressUpdate(client().getAuthId(), id, this);
106  }
107}