
com.ellucian.generated.eedm.regions.v1_0_0.Regions Maven / Gradle / Ivy
package com.ellucian.generated.eedm.regions.v1_0_0;
import javax.annotation.processing.Generated;
import com.ellucian.generated.eedm.academic_catalogs.v6_0.Metadata;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Regions
*
* The valid list of regions.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"metadata",
"id",
"title",
"code",
"isoCode",
"country"
})
@Generated("jsonschema2pojo")
public class Regions {
/**
* Metadata
*
* Metadata about the JSON payload
*
*/
@JsonProperty("metadata")
@JsonPropertyDescription("Metadata about the JSON payload")
private Metadata metadata;
/**
* ID
*
* The global identifier of the region.
* (Required)
*
*/
@JsonProperty("id")
@JsonPropertyDescription("The global identifier of the region.")
private String id;
/**
* Title
*
* The full name of the region.
* (Required)
*
*/
@JsonProperty("title")
@JsonPropertyDescription("The full name of the region.")
private String title;
/**
* Code
*
* The code used to identify the region.
*
*/
@JsonProperty("code")
@JsonPropertyDescription("The code used to identify the region.")
private String code;
/**
* ISO Code
*
* The ISO code used to identify the region.
*
*/
@JsonProperty("isoCode")
@JsonPropertyDescription("The ISO code used to identify the region.")
private String isoCode;
/**
* Country
*
* The country with which the region is associated.
*
*/
@JsonProperty("country")
@JsonPropertyDescription("The country with which the region is associated.")
private Object country;
/**
* Metadata
*
* Metadata about the JSON payload
*
*/
@JsonProperty("metadata")
public Metadata getMetadata() {
return metadata;
}
/**
* Metadata
*
* Metadata about the JSON payload
*
*/
@JsonProperty("metadata")
public void setMetadata(Metadata metadata) {
this.metadata = metadata;
}
public Regions withMetadata(Metadata metadata) {
this.metadata = metadata;
return this;
}
/**
* ID
*
* The global identifier of the region.
* (Required)
*
*/
@JsonProperty("id")
public String getId() {
return id;
}
/**
* ID
*
* The global identifier of the region.
* (Required)
*
*/
@JsonProperty("id")
public void setId(String id) {
this.id = id;
}
public Regions withId(String id) {
this.id = id;
return this;
}
/**
* Title
*
* The full name of the region.
* (Required)
*
*/
@JsonProperty("title")
public String getTitle() {
return title;
}
/**
* Title
*
* The full name of the region.
* (Required)
*
*/
@JsonProperty("title")
public void setTitle(String title) {
this.title = title;
}
public Regions withTitle(String title) {
this.title = title;
return this;
}
/**
* Code
*
* The code used to identify the region.
*
*/
@JsonProperty("code")
public String getCode() {
return code;
}
/**
* Code
*
* The code used to identify the region.
*
*/
@JsonProperty("code")
public void setCode(String code) {
this.code = code;
}
public Regions withCode(String code) {
this.code = code;
return this;
}
/**
* ISO Code
*
* The ISO code used to identify the region.
*
*/
@JsonProperty("isoCode")
public String getIsoCode() {
return isoCode;
}
/**
* ISO Code
*
* The ISO code used to identify the region.
*
*/
@JsonProperty("isoCode")
public void setIsoCode(String isoCode) {
this.isoCode = isoCode;
}
public Regions withIsoCode(String isoCode) {
this.isoCode = isoCode;
return this;
}
/**
* Country
*
* The country with which the region is associated.
*
*/
@JsonProperty("country")
public Object getCountry() {
return country;
}
/**
* Country
*
* The country with which the region is associated.
*
*/
@JsonProperty("country")
public void setCountry(Object country) {
this.country = country;
}
public Regions withCountry(Object country) {
this.country = country;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(Regions.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("metadata");
sb.append('=');
sb.append(((this.metadata == null)?"":this.metadata));
sb.append(',');
sb.append("id");
sb.append('=');
sb.append(((this.id == null)?"":this.id));
sb.append(',');
sb.append("title");
sb.append('=');
sb.append(((this.title == null)?"":this.title));
sb.append(',');
sb.append("code");
sb.append('=');
sb.append(((this.code == null)?"":this.code));
sb.append(',');
sb.append("isoCode");
sb.append('=');
sb.append(((this.isoCode == null)?"":this.isoCode));
sb.append(',');
sb.append("country");
sb.append('=');
sb.append(((this.country == null)?"":this.country));
sb.append(',');
if (sb.charAt((sb.length()- 1)) == ',') {
sb.setCharAt((sb.length()- 1), ']');
} else {
sb.append(']');
}
return sb.toString();
}
@Override
public int hashCode() {
int result = 1;
result = ((result* 31)+((this.country == null)? 0 :this.country.hashCode()));
result = ((result* 31)+((this.metadata == null)? 0 :this.metadata.hashCode()));
result = ((result* 31)+((this.code == null)? 0 :this.code.hashCode()));
result = ((result* 31)+((this.isoCode == null)? 0 :this.isoCode.hashCode()));
result = ((result* 31)+((this.id == null)? 0 :this.id.hashCode()));
result = ((result* 31)+((this.title == null)? 0 :this.title.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Regions) == false) {
return false;
}
Regions rhs = ((Regions) other);
return (((((((this.country == rhs.country)||((this.country!= null)&&this.country.equals(rhs.country)))&&((this.metadata == rhs.metadata)||((this.metadata!= null)&&this.metadata.equals(rhs.metadata))))&&((this.code == rhs.code)||((this.code!= null)&&this.code.equals(rhs.code))))&&((this.isoCode == rhs.isoCode)||((this.isoCode!= null)&&this.isoCode.equals(rhs.isoCode))))&&((this.id == rhs.id)||((this.id!= null)&&this.id.equals(rhs.id))))&&((this.title == rhs.title)||((this.title!= null)&&this.title.equals(rhs.title))));
}
}