
com.ellucian.generated.eedm.requisitions.v11_1_0.AccountDetail Maven / Gradle / Ivy
package com.ellucian.generated.eedm.requisitions.v11_1_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({
"accountingString",
"allocation",
"budgetCheck"
})
@Generated("jsonschema2pojo")
public class AccountDetail {
/**
* Accounting String
*
* The accounting string associated with the account detail item.
* (Required)
*
*/
@JsonProperty("accountingString")
@JsonPropertyDescription("The accounting string associated with the account detail item.")
private String accountingString;
/**
* Allocation
*
* The allocation of line item values to the accounting string.
* (Required)
*
*/
@JsonProperty("allocation")
@JsonPropertyDescription("The allocation of line item values to the accounting string.")
private Allocation allocation;
/**
* Budget Check
*
* An indication if budget checking should be applied or overridden.
*
*/
@JsonProperty("budgetCheck")
@JsonPropertyDescription("An indication if budget checking should be applied or overridden.")
private Object budgetCheck;
/**
* Accounting String
*
* The accounting string associated with the account detail item.
* (Required)
*
*/
@JsonProperty("accountingString")
public String getAccountingString() {
return accountingString;
}
/**
* Accounting String
*
* The accounting string associated with the account detail item.
* (Required)
*
*/
@JsonProperty("accountingString")
public void setAccountingString(String accountingString) {
this.accountingString = accountingString;
}
public AccountDetail withAccountingString(String accountingString) {
this.accountingString = accountingString;
return this;
}
/**
* Allocation
*
* The allocation of line item values to the accounting string.
* (Required)
*
*/
@JsonProperty("allocation")
public Allocation getAllocation() {
return allocation;
}
/**
* Allocation
*
* The allocation of line item values to the accounting string.
* (Required)
*
*/
@JsonProperty("allocation")
public void setAllocation(Allocation allocation) {
this.allocation = allocation;
}
public AccountDetail withAllocation(Allocation allocation) {
this.allocation = allocation;
return this;
}
/**
* Budget Check
*
* An indication if budget checking should be applied or overridden.
*
*/
@JsonProperty("budgetCheck")
public Object getBudgetCheck() {
return budgetCheck;
}
/**
* Budget Check
*
* An indication if budget checking should be applied or overridden.
*
*/
@JsonProperty("budgetCheck")
public void setBudgetCheck(Object budgetCheck) {
this.budgetCheck = budgetCheck;
}
public AccountDetail withBudgetCheck(Object budgetCheck) {
this.budgetCheck = budgetCheck;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(AccountDetail.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("accountingString");
sb.append('=');
sb.append(((this.accountingString == null)?"":this.accountingString));
sb.append(',');
sb.append("allocation");
sb.append('=');
sb.append(((this.allocation == null)?"":this.allocation));
sb.append(',');
sb.append("budgetCheck");
sb.append('=');
sb.append(((this.budgetCheck == null)?"":this.budgetCheck));
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.accountingString == null)? 0 :this.accountingString.hashCode()));
result = ((result* 31)+((this.budgetCheck == null)? 0 :this.budgetCheck.hashCode()));
result = ((result* 31)+((this.allocation == null)? 0 :this.allocation.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof AccountDetail) == false) {
return false;
}
AccountDetail rhs = ((AccountDetail) other);
return ((((this.accountingString == rhs.accountingString)||((this.accountingString!= null)&&this.accountingString.equals(rhs.accountingString)))&&((this.budgetCheck == rhs.budgetCheck)||((this.budgetCheck!= null)&&this.budgetCheck.equals(rhs.budgetCheck))))&&((this.allocation == rhs.allocation)||((this.allocation!= null)&&this.allocation.equals(rhs.allocation))));
}
}