
com.ellucian.generated.eedm.fiscal_periods.v11_0.FiscalPeriods Maven / Gradle / Ivy
package com.ellucian.generated.eedm.fiscal_periods.v11_0;
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;
/**
* Fiscal Periods
*
* Accounting periods for particular duration.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"metadata",
"id",
"title",
"fiscalYear",
"startOn",
"endOn",
"status"
})
@Generated("jsonschema2pojo")
public class FiscalPeriods {
/**
* Metadata
*
* Metadata about the JSON payload
*
*/
@JsonProperty("metadata")
@JsonPropertyDescription("Metadata about the JSON payload")
private Metadata metadata;
/**
* ID
*
* The global identifier of the fiscal period.
* (Required)
*
*/
@JsonProperty("id")
@JsonPropertyDescription("The global identifier of the fiscal period.")
private String id;
/**
* Title
*
* The full name of the fiscal period.
* (Required)
*
*/
@JsonProperty("title")
@JsonPropertyDescription("The full name of the fiscal period.")
private String title;
/**
* Fiscal Year
*
* The fiscal year associated with the fiscal period.
* (Required)
*
*/
@JsonProperty("fiscalYear")
@JsonPropertyDescription("The fiscal year associated with the fiscal period.")
private FiscalYear fiscalYear;
/**
* Start On
*
* The start date of the fiscal period.
* (Required)
*
*/
@JsonProperty("startOn")
@JsonPropertyDescription("The start date of the fiscal period.")
private String startOn;
/**
* End On
*
* The end date of the fiscal period.
* (Required)
*
*/
@JsonProperty("endOn")
@JsonPropertyDescription("The end date of the fiscal period.")
private String endOn;
/**
* Status
*
* The status of the fiscal period.
*
*/
@JsonProperty("status")
@JsonPropertyDescription("The status of the fiscal period.")
private Object status;
/**
* 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 FiscalPeriods withMetadata(Metadata metadata) {
this.metadata = metadata;
return this;
}
/**
* ID
*
* The global identifier of the fiscal period.
* (Required)
*
*/
@JsonProperty("id")
public String getId() {
return id;
}
/**
* ID
*
* The global identifier of the fiscal period.
* (Required)
*
*/
@JsonProperty("id")
public void setId(String id) {
this.id = id;
}
public FiscalPeriods withId(String id) {
this.id = id;
return this;
}
/**
* Title
*
* The full name of the fiscal period.
* (Required)
*
*/
@JsonProperty("title")
public String getTitle() {
return title;
}
/**
* Title
*
* The full name of the fiscal period.
* (Required)
*
*/
@JsonProperty("title")
public void setTitle(String title) {
this.title = title;
}
public FiscalPeriods withTitle(String title) {
this.title = title;
return this;
}
/**
* Fiscal Year
*
* The fiscal year associated with the fiscal period.
* (Required)
*
*/
@JsonProperty("fiscalYear")
public FiscalYear getFiscalYear() {
return fiscalYear;
}
/**
* Fiscal Year
*
* The fiscal year associated with the fiscal period.
* (Required)
*
*/
@JsonProperty("fiscalYear")
public void setFiscalYear(FiscalYear fiscalYear) {
this.fiscalYear = fiscalYear;
}
public FiscalPeriods withFiscalYear(FiscalYear fiscalYear) {
this.fiscalYear = fiscalYear;
return this;
}
/**
* Start On
*
* The start date of the fiscal period.
* (Required)
*
*/
@JsonProperty("startOn")
public String getStartOn() {
return startOn;
}
/**
* Start On
*
* The start date of the fiscal period.
* (Required)
*
*/
@JsonProperty("startOn")
public void setStartOn(String startOn) {
this.startOn = startOn;
}
public FiscalPeriods withStartOn(String startOn) {
this.startOn = startOn;
return this;
}
/**
* End On
*
* The end date of the fiscal period.
* (Required)
*
*/
@JsonProperty("endOn")
public String getEndOn() {
return endOn;
}
/**
* End On
*
* The end date of the fiscal period.
* (Required)
*
*/
@JsonProperty("endOn")
public void setEndOn(String endOn) {
this.endOn = endOn;
}
public FiscalPeriods withEndOn(String endOn) {
this.endOn = endOn;
return this;
}
/**
* Status
*
* The status of the fiscal period.
*
*/
@JsonProperty("status")
public Object getStatus() {
return status;
}
/**
* Status
*
* The status of the fiscal period.
*
*/
@JsonProperty("status")
public void setStatus(Object status) {
this.status = status;
}
public FiscalPeriods withStatus(Object status) {
this.status = status;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(FiscalPeriods.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("fiscalYear");
sb.append('=');
sb.append(((this.fiscalYear == null)?"":this.fiscalYear));
sb.append(',');
sb.append("startOn");
sb.append('=');
sb.append(((this.startOn == null)?"":this.startOn));
sb.append(',');
sb.append("endOn");
sb.append('=');
sb.append(((this.endOn == null)?"":this.endOn));
sb.append(',');
sb.append("status");
sb.append('=');
sb.append(((this.status == null)?"":this.status));
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.endOn == null)? 0 :this.endOn.hashCode()));
result = ((result* 31)+((this.startOn == null)? 0 :this.startOn.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.fiscalYear == null)? 0 :this.fiscalYear.hashCode()));
result = ((result* 31)+((this.status == null)? 0 :this.status.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof FiscalPeriods) == false) {
return false;
}
FiscalPeriods rhs = ((FiscalPeriods) other);
return ((((((((this.metadata == rhs.metadata)||((this.metadata!= null)&&this.metadata.equals(rhs.metadata)))&&((this.endOn == rhs.endOn)||((this.endOn!= null)&&this.endOn.equals(rhs.endOn))))&&((this.startOn == rhs.startOn)||((this.startOn!= null)&&this.startOn.equals(rhs.startOn))))&&((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.fiscalYear == rhs.fiscalYear)||((this.fiscalYear!= null)&&this.fiscalYear.equals(rhs.fiscalYear))))&&((this.status == rhs.status)||((this.status!= null)&&this.status.equals(rhs.status))));
}
}