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

com.smartystreets.api.us_zipcode.Lookup Maven / Gradle / Ivy

There is a newer version: 3.18.3
Show newest version
package com.smartystreets.api.us_zipcode;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

/**
 * In addition to holding all of the input data for this lookup, this class also
* will contain the result of the lookup after it comes back from the API. * @see "https://smartystreets.com/docs/cloud/us-zipcode-api#http-request-input-fields" */ public class Lookup implements Serializable { //region [ Fields ] //private static final long serialVersionUID = 1L; private Result result; private String inputId; private String city; private String state; private String zipcode; //endregion public Lookup() { this.result = new Result(); } public Lookup(String zipcode) { this(); this.zipcode = zipcode; } public Lookup(String city, String state) { this(); this.city = city; this.state = state; } public Lookup(String city, String state, String zipcode) { this(); this.city = city; this.state = state; this.zipcode = zipcode; } //region [ Getters ] @JsonIgnore public Result getResult() { return this.result; } public String getCity() { return this.city; } public String getState() { return this.state; } public String getZipCode() { return this.zipcode; } public String getInputId() { return this.inputId; } //endregion //region [ Setters ] @JsonProperty("result") public void setResult(Result result) { this.result = result; } @JsonProperty("city") public void setCity(String city) { this.city = city; } @JsonProperty("state") public void setState(String state) { this.state = state; } @JsonProperty("zipcode") public void setZipCode(String zipcode) { this.zipcode = zipcode; } public Lookup setInputId(String inputId) { this.inputId = inputId; return this; } //endregion }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy