
com.xero.models.payrollnz.Address Maven / Gradle / Ivy
/*
* Xero Payroll NZ
* This is the Xero Payroll API for orgs in the NZ region.
*
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.xero.models.payrollnz;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.xero.api.StringUtil;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/** Address */
public class Address {
StringUtil util = new StringUtil();
@JsonProperty("addressLine1")
private String addressLine1;
@JsonProperty("addressLine2")
private String addressLine2;
@JsonProperty("city")
private String city;
@JsonProperty("suburb")
private String suburb;
@JsonProperty("postCode")
private String postCode;
@JsonProperty("countryName")
private String countryName;
/**
* Address line 1 for employee home address
*
* @param addressLine1 String
* @return Address
*/
public Address addressLine1(String addressLine1) {
this.addressLine1 = addressLine1;
return this;
}
/**
* Address line 1 for employee home address
*
* @return addressLine1
*/
@ApiModelProperty(
example = "19 Taranaki Street",
required = true,
value = "Address line 1 for employee home address")
/**
* Address line 1 for employee home address
*
* @return addressLine1 String
*/
public String getAddressLine1() {
return addressLine1;
}
/**
* Address line 1 for employee home address
*
* @param addressLine1 String
*/
public void setAddressLine1(String addressLine1) {
this.addressLine1 = addressLine1;
}
/**
* Address line 2 for employee home address
*
* @param addressLine2 String
* @return Address
*/
public Address addressLine2(String addressLine2) {
this.addressLine2 = addressLine2;
return this;
}
/**
* Address line 2 for employee home address
*
* @return addressLine2
*/
@ApiModelProperty(example = "Apt 4", value = "Address line 2 for employee home address")
/**
* Address line 2 for employee home address
*
* @return addressLine2 String
*/
public String getAddressLine2() {
return addressLine2;
}
/**
* Address line 2 for employee home address
*
* @param addressLine2 String
*/
public void setAddressLine2(String addressLine2) {
this.addressLine2 = addressLine2;
}
/**
* Suburb for employee home address
*
* @param city String
* @return Address
*/
public Address city(String city) {
this.city = city;
return this;
}
/**
* Suburb for employee home address
*
* @return city
*/
@ApiModelProperty(
example = "Wellington",
required = true,
value = "Suburb for employee home address")
/**
* Suburb for employee home address
*
* @return city String
*/
public String getCity() {
return city;
}
/**
* Suburb for employee home address
*
* @param city String
*/
public void setCity(String city) {
this.city = city;
}
/**
* Suburb for employee home address
*
* @param suburb String
* @return Address
*/
public Address suburb(String suburb) {
this.suburb = suburb;
return this;
}
/**
* Suburb for employee home address
*
* @return suburb
*/
@ApiModelProperty(example = "Te Aro", value = "Suburb for employee home address")
/**
* Suburb for employee home address
*
* @return suburb String
*/
public String getSuburb() {
return suburb;
}
/**
* Suburb for employee home address
*
* @param suburb String
*/
public void setSuburb(String suburb) {
this.suburb = suburb;
}
/**
* PostCode for employee home address
*
* @param postCode String
* @return Address
*/
public Address postCode(String postCode) {
this.postCode = postCode;
return this;
}
/**
* PostCode for employee home address
*
* @return postCode
*/
@ApiModelProperty(example = "6011", required = true, value = "PostCode for employee home address")
/**
* PostCode for employee home address
*
* @return postCode String
*/
public String getPostCode() {
return postCode;
}
/**
* PostCode for employee home address
*
* @param postCode String
*/
public void setPostCode(String postCode) {
this.postCode = postCode;
}
/**
* Country of HomeAddress
*
* @param countryName String
* @return Address
*/
public Address countryName(String countryName) {
this.countryName = countryName;
return this;
}
/**
* Country of HomeAddress
*
* @return countryName
*/
@ApiModelProperty(example = "NEW ZEALAND", value = "Country of HomeAddress")
/**
* Country of HomeAddress
*
* @return countryName String
*/
public String getCountryName() {
return countryName;
}
/**
* Country of HomeAddress
*
* @param countryName String
*/
public void setCountryName(String countryName) {
this.countryName = countryName;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Address address = (Address) o;
return Objects.equals(this.addressLine1, address.addressLine1)
&& Objects.equals(this.addressLine2, address.addressLine2)
&& Objects.equals(this.city, address.city)
&& Objects.equals(this.suburb, address.suburb)
&& Objects.equals(this.postCode, address.postCode)
&& Objects.equals(this.countryName, address.countryName);
}
@Override
public int hashCode() {
return Objects.hash(addressLine1, addressLine2, city, suburb, postCode, countryName);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Address {\n");
sb.append(" addressLine1: ").append(toIndentedString(addressLine1)).append("\n");
sb.append(" addressLine2: ").append(toIndentedString(addressLine2)).append("\n");
sb.append(" city: ").append(toIndentedString(city)).append("\n");
sb.append(" suburb: ").append(toIndentedString(suburb)).append("\n");
sb.append(" postCode: ").append(toIndentedString(postCode)).append("\n");
sb.append(" countryName: ").append(toIndentedString(countryName)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy