All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.gov.justice.laa.crime.common.model.maatapi.ApiAssessmentStatus Maven / Gradle / Ivy


package uk.gov.justice.laa.crime.common.model.maatapi;

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;
import jakarta.validation.constraints.NotNull;


/**
 * Assessment Status Details
 * 
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "status",
    "description",
    "complete",
    "inProgress"
})
@Generated("jsonschema2pojo")
public class ApiAssessmentStatus {

    /**
     * Assessment Status
     * 

* * (Required) * */ @JsonProperty("status") @NotNull private String status; /** * The description *

* * */ @JsonProperty("description") private String description; /** * Indicates whether an Assessment is completed or not * */ @JsonProperty("complete") @JsonPropertyDescription("Indicates whether an Assessment is completed or not") private Boolean complete; /** * Indicates whether an Assessment is in progress or not * */ @JsonProperty("inProgress") @JsonPropertyDescription("Indicates whether an Assessment is in progress or not") private Boolean inProgress; protected final static Object NOT_FOUND_VALUE = new Object(); /** * No args constructor for use in serialization * */ public ApiAssessmentStatus() { } /** * * @param inProgress * @param description * @param complete * @param status */ public ApiAssessmentStatus(String status, String description, Boolean complete, Boolean inProgress) { super(); this.status = status; this.description = description; this.complete = complete; this.inProgress = inProgress; } /** * Assessment Status *

* * (Required) * */ @JsonProperty("status") public String getStatus() { return status; } /** * Assessment Status *

* * (Required) * */ @JsonProperty("status") public void setStatus(String status) { this.status = status; } public ApiAssessmentStatus withStatus(String status) { this.status = status; return this; } /** * The description *

* * */ @JsonProperty("description") public String getDescription() { return description; } /** * The description *

* * */ @JsonProperty("description") public void setDescription(String description) { this.description = description; } public ApiAssessmentStatus withDescription(String description) { this.description = description; return this; } /** * Indicates whether an Assessment is completed or not * */ @JsonProperty("complete") public Boolean getComplete() { return complete; } /** * Indicates whether an Assessment is completed or not * */ @JsonProperty("complete") public void setComplete(Boolean complete) { this.complete = complete; } public ApiAssessmentStatus withComplete(Boolean complete) { this.complete = complete; return this; } /** * Indicates whether an Assessment is in progress or not * */ @JsonProperty("inProgress") public Boolean getInProgress() { return inProgress; } /** * Indicates whether an Assessment is in progress or not * */ @JsonProperty("inProgress") public void setInProgress(Boolean inProgress) { this.inProgress = inProgress; } public ApiAssessmentStatus withInProgress(Boolean inProgress) { this.inProgress = inProgress; return this; } protected boolean declaredProperty(String name, Object value) { if ("status".equals(name)) { if (value instanceof String) { setStatus(((String) value)); } else { throw new IllegalArgumentException(("property \"status\" is of type \"java.lang.String\", but got "+ value.getClass().toString())); } return true; } else { if ("description".equals(name)) { if (value instanceof String) { setDescription(((String) value)); } else { throw new IllegalArgumentException(("property \"description\" is of type \"java.lang.String\", but got "+ value.getClass().toString())); } return true; } else { if ("complete".equals(name)) { if (value instanceof Boolean) { setComplete(((Boolean) value)); } else { throw new IllegalArgumentException(("property \"complete\" is of type \"java.lang.Boolean\", but got "+ value.getClass().toString())); } return true; } else { if ("inProgress".equals(name)) { if (value instanceof Boolean) { setInProgress(((Boolean) value)); } else { throw new IllegalArgumentException(("property \"inProgress\" is of type \"java.lang.Boolean\", but got "+ value.getClass().toString())); } return true; } else { return false; } } } } } protected Object declaredPropertyOrNotFound(String name, Object notFoundValue) { if ("status".equals(name)) { return getStatus(); } else { if ("description".equals(name)) { return getDescription(); } else { if ("complete".equals(name)) { return getComplete(); } else { if ("inProgress".equals(name)) { return getInProgress(); } else { return notFoundValue; } } } } } @SuppressWarnings({ "unchecked" }) publicT get(String name) { Object value = declaredPropertyOrNotFound(name, ApiAssessmentStatus.NOT_FOUND_VALUE); if (ApiAssessmentStatus.NOT_FOUND_VALUE!= value) { return ((T) value); } else { throw new IllegalArgumentException((("property \""+ name)+"\" is not defined")); } } public void set(String name, Object value) { if (!declaredProperty(name, value)) { throw new IllegalArgumentException((("property \""+ name)+"\" is not defined")); } } public ApiAssessmentStatus with(String name, Object value) { if (!declaredProperty(name, value)) { throw new IllegalArgumentException((("property \""+ name)+"\" is not defined")); } return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(ApiAssessmentStatus.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("status"); sb.append('='); sb.append(((this.status == null)?"":this.status)); sb.append(','); sb.append("description"); sb.append('='); sb.append(((this.description == null)?"":this.description)); sb.append(','); sb.append("complete"); sb.append('='); sb.append(((this.complete == null)?"":this.complete)); sb.append(','); sb.append("inProgress"); sb.append('='); sb.append(((this.inProgress == null)?"":this.inProgress)); 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.complete == null)? 0 :this.complete.hashCode())); result = ((result* 31)+((this.inProgress == null)? 0 :this.inProgress.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 ApiAssessmentStatus) == false) { return false; } ApiAssessmentStatus rhs = ((ApiAssessmentStatus) other); return (((((this.description == rhs.description)||((this.description!= null)&&this.description.equals(rhs.description)))&&((this.complete == rhs.complete)||((this.complete!= null)&&this.complete.equals(rhs.complete))))&&((this.inProgress == rhs.inProgress)||((this.inProgress!= null)&&this.inProgress.equals(rhs.inProgress))))&&((this.status == rhs.status)||((this.status!= null)&&this.status.equals(rhs.status)))); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy