
com.ellucian.generated.eedm.persons_credentials.v6_0.PersonsCredentials Maven / Gradle / Ivy
package com.ellucian.generated.eedm.persons_credentials.v6_0;
import java.util.ArrayList;
import java.util.List;
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;
/**
* Person Credentials
*
* A subset of person's data, including only their credentials.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"id",
"credentials",
"metadata"
})
@Generated("jsonschema2pojo")
public class PersonsCredentials {
/**
* ID
*
* A global identifier of a person.
* (Required)
*
*/
@JsonProperty("id")
@JsonPropertyDescription("A global identifier of a person.")
private String id;
/**
* Credential
*
* Information that identifies a user to a system such as a network or computer.
*
*/
@JsonProperty("credentials")
@JsonPropertyDescription("Information that identifies a user to a system such as a network or computer.")
private List credentials = new ArrayList();
/**
* Metadata
*
* Metadata about the JSON payload
*
*/
@JsonProperty("metadata")
@JsonPropertyDescription("Metadata about the JSON payload")
private Metadata metadata;
/**
* ID
*
* A global identifier of a person.
* (Required)
*
*/
@JsonProperty("id")
public String getId() {
return id;
}
/**
* ID
*
* A global identifier of a person.
* (Required)
*
*/
@JsonProperty("id")
public void setId(String id) {
this.id = id;
}
public PersonsCredentials withId(String id) {
this.id = id;
return this;
}
/**
* Credential
*
* Information that identifies a user to a system such as a network or computer.
*
*/
@JsonProperty("credentials")
public List getCredentials() {
return credentials;
}
/**
* Credential
*
* Information that identifies a user to a system such as a network or computer.
*
*/
@JsonProperty("credentials")
public void setCredentials(List credentials) {
this.credentials = credentials;
}
public PersonsCredentials withCredentials(List credentials) {
this.credentials = credentials;
return this;
}
/**
* 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 PersonsCredentials withMetadata(Metadata metadata) {
this.metadata = metadata;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(PersonsCredentials.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("id");
sb.append('=');
sb.append(((this.id == null)?"":this.id));
sb.append(',');
sb.append("credentials");
sb.append('=');
sb.append(((this.credentials == null)?"":this.credentials));
sb.append(',');
sb.append("metadata");
sb.append('=');
sb.append(((this.metadata == null)?"":this.metadata));
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.metadata == null)? 0 :this.metadata.hashCode()));
result = ((result* 31)+((this.id == null)? 0 :this.id.hashCode()));
result = ((result* 31)+((this.credentials == null)? 0 :this.credentials.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof PersonsCredentials) == false) {
return false;
}
PersonsCredentials rhs = ((PersonsCredentials) other);
return ((((this.metadata == rhs.metadata)||((this.metadata!= null)&&this.metadata.equals(rhs.metadata)))&&((this.id == rhs.id)||((this.id!= null)&&this.id.equals(rhs.id))))&&((this.credentials == rhs.credentials)||((this.credentials!= null)&&this.credentials.equals(rhs.credentials))));
}
}