
com.ellucian.generated.eedm.advancement_statuses.v7_0.AdvancementStatuses Maven / Gradle / Ivy
package com.ellucian.generated.eedm.advancement_statuses.v7_0;
import java.util.HashMap;
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;
/**
* Advancement Statuses
*
* A user defined list of statuses used by an advancement system.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"metadata",
"id",
"title",
"description",
"category"
})
@Generated("jsonschema2pojo")
public class AdvancementStatuses {
/**
* Metadata
*
* Metadata about the JSON payload
*
*/
@JsonProperty("metadata")
@JsonPropertyDescription("Metadata about the JSON payload")
private Metadata metadata;
/**
* ID
*
* The global identifier of the Advancement Status.
* (Required)
*
*/
@JsonProperty("id")
@JsonPropertyDescription("The global identifier of the Advancement Status.")
private String id;
/**
* Title
*
* The full name of the Advancement Status.
* (Required)
*
*/
@JsonProperty("title")
@JsonPropertyDescription("The full name of the Advancement Status.")
private String title;
/**
* Description
*
* The description of the Advancement Status.
*
*/
@JsonProperty("description")
@JsonPropertyDescription("The description of the Advancement Status.")
private String description;
/**
* Category
*
* The category (current, historical) of the status
* (Required)
*
*/
@JsonProperty("category")
@JsonPropertyDescription("The category (current, historical) of the status")
private AdvancementStatuses.Category category;
/**
* 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 AdvancementStatuses withMetadata(Metadata metadata) {
this.metadata = metadata;
return this;
}
/**
* ID
*
* The global identifier of the Advancement Status.
* (Required)
*
*/
@JsonProperty("id")
public String getId() {
return id;
}
/**
* ID
*
* The global identifier of the Advancement Status.
* (Required)
*
*/
@JsonProperty("id")
public void setId(String id) {
this.id = id;
}
public AdvancementStatuses withId(String id) {
this.id = id;
return this;
}
/**
* Title
*
* The full name of the Advancement Status.
* (Required)
*
*/
@JsonProperty("title")
public String getTitle() {
return title;
}
/**
* Title
*
* The full name of the Advancement Status.
* (Required)
*
*/
@JsonProperty("title")
public void setTitle(String title) {
this.title = title;
}
public AdvancementStatuses withTitle(String title) {
this.title = title;
return this;
}
/**
* Description
*
* The description of the Advancement Status.
*
*/
@JsonProperty("description")
public String getDescription() {
return description;
}
/**
* Description
*
* The description of the Advancement Status.
*
*/
@JsonProperty("description")
public void setDescription(String description) {
this.description = description;
}
public AdvancementStatuses withDescription(String description) {
this.description = description;
return this;
}
/**
* Category
*
* The category (current, historical) of the status
* (Required)
*
*/
@JsonProperty("category")
public AdvancementStatuses.Category getCategory() {
return category;
}
/**
* Category
*
* The category (current, historical) of the status
* (Required)
*
*/
@JsonProperty("category")
public void setCategory(AdvancementStatuses.Category category) {
this.category = category;
}
public AdvancementStatuses withCategory(AdvancementStatuses.Category category) {
this.category = category;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(AdvancementStatuses.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("category");
sb.append('=');
sb.append(((this.category == null)?"":this.category));
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.description == null)? 0 :this.description.hashCode()));
result = ((result* 31)+((this.metadata == null)? 0 :this.metadata.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.category == null)? 0 :this.category.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof AdvancementStatuses) == false) {
return false;
}
AdvancementStatuses rhs = ((AdvancementStatuses) other);
return ((((((this.description == rhs.description)||((this.description!= null)&&this.description.equals(rhs.description)))&&((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.title == rhs.title)||((this.title!= null)&&this.title.equals(rhs.title))))&&((this.category == rhs.category)||((this.category!= null)&&this.category.equals(rhs.category))));
}
/**
* Category
*
* The category (current, historical) of the status
*
*/
@Generated("jsonschema2pojo")
public enum Category {
CURRENT("current"),
HISTORICAL("historical");
private final String value;
private final static Map CONSTANTS = new HashMap();
static {
for (AdvancementStatuses.Category c: values()) {
CONSTANTS.put(c.value, c);
}
}
Category(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
@JsonValue
public String value() {
return this.value;
}
@JsonCreator
public static AdvancementStatuses.Category fromValue(String value) {
AdvancementStatuses.Category constant = CONSTANTS.get(value);
if (constant == null) {
throw new IllegalArgumentException(value);
} else {
return constant;
}
}
}
}