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

com.ellucian.generated.eedm.persons.v12_4_0.Email Maven / Gradle / Ivy


package com.ellucian.generated.eedm.persons.v12_4_0;

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({
    "type",
    "preference",
    "address"
})
@Generated("jsonschema2pojo")
public class Email {

    /**
     * Type
     * 

* A type of email for a person. Includes a standard type (e.g. 'personal', 'business') and an optional, custom type to further identify the type of email. * (Required) * */ @JsonProperty("type") @JsonPropertyDescription("A type of email for a person. Includes a standard type (e.g. 'personal', 'business') and an optional, custom type to further identify the type of email.") private Type__3 type; /** * Preferred Email *

* Specifies if the email is preferred over others of the same type or overall. Only one email should be set to primary for a person. * */ @JsonProperty("preference") @JsonPropertyDescription("Specifies if the email is preferred over others of the same type or overall. Only one email should be set to primary for a person.") private Object preference; /** * Email Address *

* An email address for the person. * (Required) * */ @JsonProperty("address") @JsonPropertyDescription("An email address for the person.") private String address; /** * Type *

* A type of email for a person. Includes a standard type (e.g. 'personal', 'business') and an optional, custom type to further identify the type of email. * (Required) * */ @JsonProperty("type") public Type__3 getType() { return type; } /** * Type *

* A type of email for a person. Includes a standard type (e.g. 'personal', 'business') and an optional, custom type to further identify the type of email. * (Required) * */ @JsonProperty("type") public void setType(Type__3 type) { this.type = type; } public Email withType(Type__3 type) { this.type = type; return this; } /** * Preferred Email *

* Specifies if the email is preferred over others of the same type or overall. Only one email should be set to primary for a person. * */ @JsonProperty("preference") public Object getPreference() { return preference; } /** * Preferred Email *

* Specifies if the email is preferred over others of the same type or overall. Only one email should be set to primary for a person. * */ @JsonProperty("preference") public void setPreference(Object preference) { this.preference = preference; } public Email withPreference(Object preference) { this.preference = preference; return this; } /** * Email Address *

* An email address for the person. * (Required) * */ @JsonProperty("address") public String getAddress() { return address; } /** * Email Address *

* An email address for the person. * (Required) * */ @JsonProperty("address") public void setAddress(String address) { this.address = address; } public Email withAddress(String address) { this.address = address; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(Email.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("type"); sb.append('='); sb.append(((this.type == null)?"":this.type)); sb.append(','); sb.append("preference"); sb.append('='); sb.append(((this.preference == null)?"":this.preference)); sb.append(','); sb.append("address"); sb.append('='); sb.append(((this.address == null)?"":this.address)); 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.address == null)? 0 :this.address.hashCode())); result = ((result* 31)+((this.type == null)? 0 :this.type.hashCode())); result = ((result* 31)+((this.preference == null)? 0 :this.preference.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof Email) == false) { return false; } Email rhs = ((Email) other); return ((((this.address == rhs.address)||((this.address!= null)&&this.address.equals(rhs.address)))&&((this.type == rhs.type)||((this.type!= null)&&this.type.equals(rhs.type))))&&((this.preference == rhs.preference)||((this.preference!= null)&&this.preference.equals(rhs.preference)))); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy