com.mypurecloud.sdk.model.ContactAddress Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-client Show documentation
Show all versions of platform-client Show documentation
The official Java SDK for the PureCloud Platform API SDK
The newest version!
package com.mypurecloud.sdk.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/**
* ContactAddress
*/
public class ContactAddress implements Serializable {
private String address1 = null;
private String address2 = null;
private String city = null;
private String state = null;
private String postalCode = null;
private String countryCode = null;
/**
**/
public ContactAddress address1(String address1) {
this.address1 = address1;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("address1")
public String getAddress1() {
return address1;
}
public void setAddress1(String address1) {
this.address1 = address1;
}
/**
**/
public ContactAddress address2(String address2) {
this.address2 = address2;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("address2")
public String getAddress2() {
return address2;
}
public void setAddress2(String address2) {
this.address2 = address2;
}
/**
**/
public ContactAddress city(String city) {
this.city = city;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("city")
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
/**
**/
public ContactAddress state(String state) {
this.state = state;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("state")
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
/**
**/
public ContactAddress postalCode(String postalCode) {
this.postalCode = postalCode;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("postalCode")
public String getPostalCode() {
return postalCode;
}
public void setPostalCode(String postalCode) {
this.postalCode = postalCode;
}
/**
**/
public ContactAddress countryCode(String countryCode) {
this.countryCode = countryCode;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("countryCode")
public String getCountryCode() {
return countryCode;
}
public void setCountryCode(String countryCode) {
this.countryCode = countryCode;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ContactAddress contactAddress = (ContactAddress) o;
return Objects.equals(this.address1, contactAddress.address1) &&
Objects.equals(this.address2, contactAddress.address2) &&
Objects.equals(this.city, contactAddress.city) &&
Objects.equals(this.state, contactAddress.state) &&
Objects.equals(this.postalCode, contactAddress.postalCode) &&
Objects.equals(this.countryCode, contactAddress.countryCode);
}
@Override
public int hashCode() {
return Objects.hash(address1, address2, city, state, postalCode, countryCode);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ContactAddress {\n");
sb.append(" address1: ").append(toIndentedString(address1)).append("\n");
sb.append(" address2: ").append(toIndentedString(address2)).append("\n");
sb.append(" city: ").append(toIndentedString(city)).append("\n");
sb.append(" state: ").append(toIndentedString(state)).append("\n");
sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n");
sb.append(" countryCode: ").append(toIndentedString(countryCode)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}