
com.ellucian.generated.eedm.proposals.v10_0.PlannedRequest Maven / Gradle / Ivy
package com.ellucian.generated.eedm.proposals.v10_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;
/**
* Planned Request
*
* The amount and date associated with the planned request.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"amount",
"date"
})
@Generated("jsonschema2pojo")
public class PlannedRequest {
/**
* Amount
*
* The planned request amount for the proposal.
*
*/
@JsonProperty("amount")
@JsonPropertyDescription("The planned request amount for the proposal.")
private Object amount;
/**
* Date
*
* The planned request date for the proposal.
*
*/
@JsonProperty("date")
@JsonPropertyDescription("The planned request date for the proposal.")
private Object date;
/**
* Amount
*
* The planned request amount for the proposal.
*
*/
@JsonProperty("amount")
public Object getAmount() {
return amount;
}
/**
* Amount
*
* The planned request amount for the proposal.
*
*/
@JsonProperty("amount")
public void setAmount(Object amount) {
this.amount = amount;
}
public PlannedRequest withAmount(Object amount) {
this.amount = amount;
return this;
}
/**
* Date
*
* The planned request date for the proposal.
*
*/
@JsonProperty("date")
public Object getDate() {
return date;
}
/**
* Date
*
* The planned request date for the proposal.
*
*/
@JsonProperty("date")
public void setDate(Object date) {
this.date = date;
}
public PlannedRequest withDate(Object date) {
this.date = date;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(PlannedRequest.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("amount");
sb.append('=');
sb.append(((this.amount == null)?"":this.amount));
sb.append(',');
sb.append("date");
sb.append('=');
sb.append(((this.date == null)?"":this.date));
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.date == null)? 0 :this.date.hashCode()));
result = ((result* 31)+((this.amount == null)? 0 :this.amount.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof PlannedRequest) == false) {
return false;
}
PlannedRequest rhs = ((PlannedRequest) other);
return (((this.date == rhs.date)||((this.date!= null)&&this.date.equals(rhs.date)))&&((this.amount == rhs.amount)||((this.amount!= null)&&this.amount.equals(rhs.amount))));
}
}