
com.ellucian.generated.eedm.educational_institutions.v6_0.EducationalInstitutions Maven / Gradle / Ivy
package com.ellucian.generated.eedm.educational_institutions.v6_0;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.processing.Generated;
import com.ellucian.generated.eedm.academic_catalogs.v6_0.Metadata;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* Educational Institutions
*
* Organizations that are a place where people of different ages gain an education
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"metadata",
"id",
"title",
"description",
"type",
"homeInstitution",
"standardizedCodes",
"addresses",
"phones",
"emails",
"socialMedia"
})
@Generated("jsonschema2pojo")
public class EducationalInstitutions {
/**
* Metadata
*
* Metadata about the JSON payload
*
*/
@JsonProperty("metadata")
@JsonPropertyDescription("Metadata about the JSON payload")
private Metadata metadata;
/**
* ID
*
* The global identifier of the institution
* (Required)
*
*/
@JsonProperty("id")
@JsonPropertyDescription("The global identifier of the institution")
private String id;
/**
* Title
*
* The full name of the institution
* (Required)
*
*/
@JsonProperty("title")
@JsonPropertyDescription("The full name of the institution")
private String title;
/**
* Description
*
* The description of the institution
*
*/
@JsonProperty("description")
@JsonPropertyDescription("The description of the institution")
private String description;
/**
* Type
*
* The type of the institution
* (Required)
*
*/
@JsonProperty("type")
@JsonPropertyDescription("The type of the institution")
private EducationalInstitutions.Type type;
/**
* Home Institution
*
* Indicates if this is a 'home' or 'external' institution
* (Required)
*
*/
@JsonProperty("homeInstitution")
@JsonPropertyDescription("Indicates if this is a 'home' or 'external' institution")
private EducationalInstitutions.HomeInstitution homeInstitution;
/**
* Standardized Codes
*
* Standardized education specific codes/IDs that are assigned to the institution
*
*/
@JsonProperty("standardizedCodes")
@JsonPropertyDescription("Standardized education specific codes/IDs that are assigned to the institution")
private List standardizedCodes = new ArrayList();
/**
* Addresses
*
* The physical locations where the institution resides or may be contacted by mail.
*
*/
@JsonProperty("addresses")
@JsonPropertyDescription("The physical locations where the institution resides or may be contacted by mail.")
private List
addresses = new ArrayList();
/**
* Phone
*
* The phones and phone-connected devices at which the institution can be contacted
*
*/
@JsonProperty("phones")
@JsonPropertyDescription("The phones and phone-connected devices at which the institution can be contacted")
private List phones = new ArrayList();
/**
* Email
*
* The email addresses at which the institution can be contacted
*
*/
@JsonProperty("emails")
@JsonPropertyDescription("The email addresses at which the institution can be contacted")
private List emails = new ArrayList();
/**
* Social Media
*
* The social media account at which the institution can be contacted.
*
*/
@JsonProperty("socialMedia")
@JsonPropertyDescription("The social media account at which the institution can be contacted.")
private List socialMedia = new ArrayList();
/**
* 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 EducationalInstitutions withMetadata(Metadata metadata) {
this.metadata = metadata;
return this;
}
/**
* ID
*
* The global identifier of the institution
* (Required)
*
*/
@JsonProperty("id")
public String getId() {
return id;
}
/**
* ID
*
* The global identifier of the institution
* (Required)
*
*/
@JsonProperty("id")
public void setId(String id) {
this.id = id;
}
public EducationalInstitutions withId(String id) {
this.id = id;
return this;
}
/**
* Title
*
* The full name of the institution
* (Required)
*
*/
@JsonProperty("title")
public String getTitle() {
return title;
}
/**
* Title
*
* The full name of the institution
* (Required)
*
*/
@JsonProperty("title")
public void setTitle(String title) {
this.title = title;
}
public EducationalInstitutions withTitle(String title) {
this.title = title;
return this;
}
/**
* Description
*
* The description of the institution
*
*/
@JsonProperty("description")
public String getDescription() {
return description;
}
/**
* Description
*
* The description of the institution
*
*/
@JsonProperty("description")
public void setDescription(String description) {
this.description = description;
}
public EducationalInstitutions withDescription(String description) {
this.description = description;
return this;
}
/**
* Type
*
* The type of the institution
* (Required)
*
*/
@JsonProperty("type")
public EducationalInstitutions.Type getType() {
return type;
}
/**
* Type
*
* The type of the institution
* (Required)
*
*/
@JsonProperty("type")
public void setType(EducationalInstitutions.Type type) {
this.type = type;
}
public EducationalInstitutions withType(EducationalInstitutions.Type type) {
this.type = type;
return this;
}
/**
* Home Institution
*
* Indicates if this is a 'home' or 'external' institution
* (Required)
*
*/
@JsonProperty("homeInstitution")
public EducationalInstitutions.HomeInstitution getHomeInstitution() {
return homeInstitution;
}
/**
* Home Institution
*
* Indicates if this is a 'home' or 'external' institution
* (Required)
*
*/
@JsonProperty("homeInstitution")
public void setHomeInstitution(EducationalInstitutions.HomeInstitution homeInstitution) {
this.homeInstitution = homeInstitution;
}
public EducationalInstitutions withHomeInstitution(EducationalInstitutions.HomeInstitution homeInstitution) {
this.homeInstitution = homeInstitution;
return this;
}
/**
* Standardized Codes
*
* Standardized education specific codes/IDs that are assigned to the institution
*
*/
@JsonProperty("standardizedCodes")
public List getStandardizedCodes() {
return standardizedCodes;
}
/**
* Standardized Codes
*
* Standardized education specific codes/IDs that are assigned to the institution
*
*/
@JsonProperty("standardizedCodes")
public void setStandardizedCodes(List standardizedCodes) {
this.standardizedCodes = standardizedCodes;
}
public EducationalInstitutions withStandardizedCodes(List standardizedCodes) {
this.standardizedCodes = standardizedCodes;
return this;
}
/**
* Addresses
*
* The physical locations where the institution resides or may be contacted by mail.
*
*/
@JsonProperty("addresses")
public List
getAddresses() {
return addresses;
}
/**
* Addresses
*
* The physical locations where the institution resides or may be contacted by mail.
*
*/
@JsonProperty("addresses")
public void setAddresses(List
addresses) {
this.addresses = addresses;
}
public EducationalInstitutions withAddresses(List addresses) {
this.addresses = addresses;
return this;
}
/**
* Phone
*
* The phones and phone-connected devices at which the institution can be contacted
*
*/
@JsonProperty("phones")
public List getPhones() {
return phones;
}
/**
* Phone
*
* The phones and phone-connected devices at which the institution can be contacted
*
*/
@JsonProperty("phones")
public void setPhones(List phones) {
this.phones = phones;
}
public EducationalInstitutions withPhones(List phones) {
this.phones = phones;
return this;
}
/**
* Email
*
* The email addresses at which the institution can be contacted
*
*/
@JsonProperty("emails")
public List getEmails() {
return emails;
}
/**
* Email
*
* The email addresses at which the institution can be contacted
*
*/
@JsonProperty("emails")
public void setEmails(List emails) {
this.emails = emails;
}
public EducationalInstitutions withEmails(List emails) {
this.emails = emails;
return this;
}
/**
* Social Media
*
* The social media account at which the institution can be contacted.
*
*/
@JsonProperty("socialMedia")
public List getSocialMedia() {
return socialMedia;
}
/**
* Social Media
*
* The social media account at which the institution can be contacted.
*
*/
@JsonProperty("socialMedia")
public void setSocialMedia(List socialMedia) {
this.socialMedia = socialMedia;
}
public EducationalInstitutions withSocialMedia(List socialMedia) {
this.socialMedia = socialMedia;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(EducationalInstitutions.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("description");
sb.append('=');
sb.append(((this.description == null)?"":this.description));
sb.append(',');
sb.append("type");
sb.append('=');
sb.append(((this.type == null)?"":this.type));
sb.append(',');
sb.append("homeInstitution");
sb.append('=');
sb.append(((this.homeInstitution == null)?"":this.homeInstitution));
sb.append(',');
sb.append("standardizedCodes");
sb.append('=');
sb.append(((this.standardizedCodes == null)?"":this.standardizedCodes));
sb.append(',');
sb.append("addresses");
sb.append('=');
sb.append(((this.addresses == null)?"":this.addresses));
sb.append(',');
sb.append("phones");
sb.append('=');
sb.append(((this.phones == null)?"":this.phones));
sb.append(',');
sb.append("emails");
sb.append('=');
sb.append(((this.emails == null)?"":this.emails));
sb.append(',');
sb.append("socialMedia");
sb.append('=');
sb.append(((this.socialMedia == null)?"":this.socialMedia));
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.emails == null)? 0 :this.emails.hashCode()));
result = ((result* 31)+((this.metadata == null)? 0 :this.metadata.hashCode()));
result = ((result* 31)+((this.addresses == null)? 0 :this.addresses.hashCode()));
result = ((result* 31)+((this.standardizedCodes == null)? 0 :this.standardizedCodes.hashCode()));
result = ((result* 31)+((this.description == null)? 0 :this.description.hashCode()));
result = ((result* 31)+((this.homeInstitution == null)? 0 :this.homeInstitution.hashCode()));
result = ((result* 31)+((this.phones == null)? 0 :this.phones.hashCode()));
result = ((result* 31)+((this.id == null)? 0 :this.id.hashCode()));
result = ((result* 31)+((this.title == null)? 0 :this.title.hashCode()));
result = ((result* 31)+((this.type == null)? 0 :this.type.hashCode()));
result = ((result* 31)+((this.socialMedia == null)? 0 :this.socialMedia.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof EducationalInstitutions) == false) {
return false;
}
EducationalInstitutions rhs = ((EducationalInstitutions) other);
return ((((((((((((this.emails == rhs.emails)||((this.emails!= null)&&this.emails.equals(rhs.emails)))&&((this.metadata == rhs.metadata)||((this.metadata!= null)&&this.metadata.equals(rhs.metadata))))&&((this.addresses == rhs.addresses)||((this.addresses!= null)&&this.addresses.equals(rhs.addresses))))&&((this.standardizedCodes == rhs.standardizedCodes)||((this.standardizedCodes!= null)&&this.standardizedCodes.equals(rhs.standardizedCodes))))&&((this.description == rhs.description)||((this.description!= null)&&this.description.equals(rhs.description))))&&((this.homeInstitution == rhs.homeInstitution)||((this.homeInstitution!= null)&&this.homeInstitution.equals(rhs.homeInstitution))))&&((this.phones == rhs.phones)||((this.phones!= null)&&this.phones.equals(rhs.phones))))&&((this.id == rhs.id)||((this.id!= null)&&this.id.equals(rhs.id))))&&((this.title == rhs.title)||((this.title!= null)&&this.title.equals(rhs.title))))&&((this.type == rhs.type)||((this.type!= null)&&this.type.equals(rhs.type))))&&((this.socialMedia == rhs.socialMedia)||((this.socialMedia!= null)&&this.socialMedia.equals(rhs.socialMedia))));
}
/**
* Home Institution
*
* Indicates if this is a 'home' or 'external' institution
*
*/
@Generated("jsonschema2pojo")
public enum HomeInstitution {
HOME("home"),
EXTERNAL("external");
private final String value;
private final static Map CONSTANTS = new HashMap();
static {
for (EducationalInstitutions.HomeInstitution c: values()) {
CONSTANTS.put(c.value, c);
}
}
HomeInstitution(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
@JsonValue
public String value() {
return this.value;
}
@JsonCreator
public static EducationalInstitutions.HomeInstitution fromValue(String value) {
EducationalInstitutions.HomeInstitution constant = CONSTANTS.get(value);
if (constant == null) {
throw new IllegalArgumentException(value);
} else {
return constant;
}
}
}
/**
* Type
*
* The type of the institution
*
*/
@Generated("jsonschema2pojo")
public enum Type {
SECONDARY_SCHOOL("secondarySchool"),
POST_SECONDARY_SCHOOL("postSecondarySchool");
private final String value;
private final static Map CONSTANTS = new HashMap();
static {
for (EducationalInstitutions.Type c: values()) {
CONSTANTS.put(c.value, c);
}
}
Type(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
@JsonValue
public String value() {
return this.value;
}
@JsonCreator
public static EducationalInstitutions.Type fromValue(String value) {
EducationalInstitutions.Type constant = CONSTANTS.get(value);
if (constant == null) {
throw new IllegalArgumentException(value);
} else {
return constant;
}
}
}
}