
com.ellucian.generated.eedm.appeals.v7_0.Note Maven / Gradle / Ivy
package com.ellucian.generated.eedm.appeals.v7_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({
"subject",
"content"
})
@Generated("jsonschema2pojo")
public class Note {
/**
* Subject
*
* The subject of the note.
*
*/
@JsonProperty("subject")
@JsonPropertyDescription("The subject of the note.")
private String subject;
/**
* Content
*
* The content of the note.
* (Required)
*
*/
@JsonProperty("content")
@JsonPropertyDescription("The content of the note.")
private String content;
/**
* Subject
*
* The subject of the note.
*
*/
@JsonProperty("subject")
public String getSubject() {
return subject;
}
/**
* Subject
*
* The subject of the note.
*
*/
@JsonProperty("subject")
public void setSubject(String subject) {
this.subject = subject;
}
public Note withSubject(String subject) {
this.subject = subject;
return this;
}
/**
* Content
*
* The content of the note.
* (Required)
*
*/
@JsonProperty("content")
public String getContent() {
return content;
}
/**
* Content
*
* The content of the note.
* (Required)
*
*/
@JsonProperty("content")
public void setContent(String content) {
this.content = content;
}
public Note withContent(String content) {
this.content = content;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(Note.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("subject");
sb.append('=');
sb.append(((this.subject == null)?"":this.subject));
sb.append(',');
sb.append("content");
sb.append('=');
sb.append(((this.content == null)?"":this.content));
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.subject == null)? 0 :this.subject.hashCode()));
result = ((result* 31)+((this.content == null)? 0 :this.content.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Note) == false) {
return false;
}
Note rhs = ((Note) other);
return (((this.subject == rhs.subject)||((this.subject!= null)&&this.subject.equals(rhs.subject)))&&((this.content == rhs.content)||((this.content!= null)&&this.content.equals(rhs.content))));
}
}