All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ellucian.generated.eedm.person_contacts.v7_0.Contact Maven / Gradle / Ivy


package com.ellucian.generated.eedm.person_contacts.v7_0;

import java.util.ArrayList;
import java.util.List;
import javax.annotation.processing.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "name",
    "types",
    "contactAddress",
    "phones",
    "relationship",
    "priority"
})
@Generated("jsonschema2pojo")
public class Contact {

    /**
     * Name
     * 

* The name of the contact * (Required) * */ @JsonProperty("name") @JsonPropertyDescription("The name of the contact") private Name name; /** * Types *

* The types of the contact * (Required) * */ @JsonProperty("types") @JsonPropertyDescription("The types of the contact") private List types = new ArrayList(); /** * Contact Address *

* The associated physical or mailing address of the contact * */ @JsonProperty("contactAddress") @JsonPropertyDescription("The associated physical or mailing address of the contact") private ContactAddress contactAddress; /** * Phones *

* The phones at which the contact can be reached * */ @JsonProperty("phones") @JsonPropertyDescription("The phones at which the contact can be reached") private List phones = new ArrayList(); /** * Relationship *

* The relationship between the subject person and the contact * */ @JsonProperty("relationship") @JsonPropertyDescription("The relationship between the subject person and the contact") private Object relationship; /** * Priority *

* The priority number for the contact * */ @JsonProperty("priority") @JsonPropertyDescription("The priority number for the contact") private Object priority; /** * Name *

* The name of the contact * (Required) * */ @JsonProperty("name") public Name getName() { return name; } /** * Name *

* The name of the contact * (Required) * */ @JsonProperty("name") public void setName(Name name) { this.name = name; } public Contact withName(Name name) { this.name = name; return this; } /** * Types *

* The types of the contact * (Required) * */ @JsonProperty("types") public List getTypes() { return types; } /** * Types *

* The types of the contact * (Required) * */ @JsonProperty("types") public void setTypes(List types) { this.types = types; } public Contact withTypes(List types) { this.types = types; return this; } /** * Contact Address *

* The associated physical or mailing address of the contact * */ @JsonProperty("contactAddress") public ContactAddress getContactAddress() { return contactAddress; } /** * Contact Address *

* The associated physical or mailing address of the contact * */ @JsonProperty("contactAddress") public void setContactAddress(ContactAddress contactAddress) { this.contactAddress = contactAddress; } public Contact withContactAddress(ContactAddress contactAddress) { this.contactAddress = contactAddress; return this; } /** * Phones *

* The phones at which the contact can be reached * */ @JsonProperty("phones") public List getPhones() { return phones; } /** * Phones *

* The phones at which the contact can be reached * */ @JsonProperty("phones") public void setPhones(List phones) { this.phones = phones; } public Contact withPhones(List phones) { this.phones = phones; return this; } /** * Relationship *

* The relationship between the subject person and the contact * */ @JsonProperty("relationship") public Object getRelationship() { return relationship; } /** * Relationship *

* The relationship between the subject person and the contact * */ @JsonProperty("relationship") public void setRelationship(Object relationship) { this.relationship = relationship; } public Contact withRelationship(Object relationship) { this.relationship = relationship; return this; } /** * Priority *

* The priority number for the contact * */ @JsonProperty("priority") public Object getPriority() { return priority; } /** * Priority *

* The priority number for the contact * */ @JsonProperty("priority") public void setPriority(Object priority) { this.priority = priority; } public Contact withPriority(Object priority) { this.priority = priority; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(Contact.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("name"); sb.append('='); sb.append(((this.name == null)?"":this.name)); sb.append(','); sb.append("types"); sb.append('='); sb.append(((this.types == null)?"":this.types)); sb.append(','); sb.append("contactAddress"); sb.append('='); sb.append(((this.contactAddress == null)?"":this.contactAddress)); sb.append(','); sb.append("phones"); sb.append('='); sb.append(((this.phones == null)?"":this.phones)); sb.append(','); sb.append("relationship"); sb.append('='); sb.append(((this.relationship == null)?"":this.relationship)); sb.append(','); sb.append("priority"); sb.append('='); sb.append(((this.priority == null)?"":this.priority)); 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.types == null)? 0 :this.types.hashCode())); result = ((result* 31)+((this.name == null)? 0 :this.name.hashCode())); result = ((result* 31)+((this.phones == null)? 0 :this.phones.hashCode())); result = ((result* 31)+((this.contactAddress == null)? 0 :this.contactAddress.hashCode())); result = ((result* 31)+((this.relationship == null)? 0 :this.relationship.hashCode())); result = ((result* 31)+((this.priority == null)? 0 :this.priority.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof Contact) == false) { return false; } Contact rhs = ((Contact) other); return (((((((this.types == rhs.types)||((this.types!= null)&&this.types.equals(rhs.types)))&&((this.name == rhs.name)||((this.name!= null)&&this.name.equals(rhs.name))))&&((this.phones == rhs.phones)||((this.phones!= null)&&this.phones.equals(rhs.phones))))&&((this.contactAddress == rhs.contactAddress)||((this.contactAddress!= null)&&this.contactAddress.equals(rhs.contactAddress))))&&((this.relationship == rhs.relationship)||((this.relationship!= null)&&this.relationship.equals(rhs.relationship))))&&((this.priority == rhs.priority)||((this.priority!= null)&&this.priority.equals(rhs.priority)))); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy