org.openapitools.client.model.AddressFieldDefinitions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zuora-sdk-java Show documentation
Show all versions of zuora-sdk-java Show documentation
The SDK of JAVA language for Zuora pricing system
/*
* Quickstart API Reference
* Zuora Quickstart API is the API that helps you achieve fundamental use cases.
* It provides a much simplified object model and improved performance, enabling developers to easily learn and use.
*/
package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* Address information used in billing details.
*/
@ApiModel(description = "Address information used in billing details.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AddressFieldDefinitions {
public static final String SERIALIZED_NAME_LINE1 = "line1";
@SerializedName(SERIALIZED_NAME_LINE1)
private String line1;
public static final String SERIALIZED_NAME_LINE2 = "line2";
@SerializedName(SERIALIZED_NAME_LINE2)
private String line2;
public static final String SERIALIZED_NAME_CITY = "city";
@SerializedName(SERIALIZED_NAME_CITY)
private String city;
public static final String SERIALIZED_NAME_COUNTRY = "country";
@SerializedName(SERIALIZED_NAME_COUNTRY)
private String country;
public static final String SERIALIZED_NAME_STATE = "state";
@SerializedName(SERIALIZED_NAME_STATE)
private String state;
public static final String SERIALIZED_NAME_POSTAL_CODE = "postal_code";
@SerializedName(SERIALIZED_NAME_POSTAL_CODE)
private String postalCode;
public AddressFieldDefinitions() {
}
public AddressFieldDefinitions line1(String line1) {
this.line1 = line1;
return this;
}
/**
* Address line 1 (e.g., street, PO Box, or company name).
* @return line1
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "3333 Piedmont Rd NE", value = "Address line 1 (e.g., street, PO Box, or company name).")
public String getLine1() {
return line1;
}
public void setLine1(String line1) {
this.line1 = line1;
}
public AddressFieldDefinitions line2(String line2) {
this.line2 = line2;
return this;
}
/**
* Address line 2 (e.g., apartment, suite, unit, or building).
* @return line2
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "Suite 1150", value = "Address line 2 (e.g., apartment, suite, unit, or building).")
public String getLine2() {
return line2;
}
public void setLine2(String line2) {
this.line2 = line2;
}
public AddressFieldDefinitions city(String city) {
this.city = city;
return this;
}
/**
* City, district, suburb, town, or village.
* @return city
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "Atlanta", value = "City, district, suburb, town, or village.")
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public AddressFieldDefinitions country(String country) {
this.country = country;
return this;
}
/**
* The country of the contact's address.
* @return country
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "United States", value = "The country of the contact's address.")
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public AddressFieldDefinitions state(String state) {
this.state = state;
return this;
}
/**
* The state, county, province, or region.
* @return state
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "GA", value = "The state, county, province, or region.")
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public AddressFieldDefinitions postalCode(String postalCode) {
this.postalCode = postalCode;
return this;
}
/**
* ZIP or postal code.
* @return postalCode
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "30305", value = "ZIP or postal code.")
public String getPostalCode() {
return postalCode;
}
public void setPostalCode(String postalCode) {
this.postalCode = postalCode;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AddressFieldDefinitions addressFieldDefinitions = (AddressFieldDefinitions) o;
return Objects.equals(this.line1, addressFieldDefinitions.line1) &&
Objects.equals(this.line2, addressFieldDefinitions.line2) &&
Objects.equals(this.city, addressFieldDefinitions.city) &&
Objects.equals(this.country, addressFieldDefinitions.country) &&
Objects.equals(this.state, addressFieldDefinitions.state) &&
Objects.equals(this.postalCode, addressFieldDefinitions.postalCode);
}
@Override
public int hashCode() {
return Objects.hash(line1, line2, city, country, state, postalCode);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AddressFieldDefinitions {\n");
sb.append(" line1: ").append(toIndentedString(line1)).append("\n");
sb.append(" line2: ").append(toIndentedString(line2)).append("\n");
sb.append(" city: ").append(toIndentedString(city)).append("\n");
sb.append(" country: ").append(toIndentedString(country)).append("\n");
sb.append(" state: ").append(toIndentedString(state)).append("\n");
sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy