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

uk.gov.justice.laa.crime.common.model.meansassessment.ApiCrownCourtSummary Maven / Gradle / Ivy


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

import javax.annotation.processing.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import jakarta.validation.constraints.NotNull;


/**
 * Crown Court Overview
 * 
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "repOrderDecision"
})
@Generated("jsonschema2pojo")
public class ApiCrownCourtSummary {

    /**
     * Rep Order decision
     * 

* * (Required) * */ @JsonProperty("repOrderDecision") @NotNull private String repOrderDecision; protected final static Object NOT_FOUND_VALUE = new Object(); /** * No args constructor for use in serialization * */ public ApiCrownCourtSummary() { } /** * * @param repOrderDecision */ public ApiCrownCourtSummary(String repOrderDecision) { super(); this.repOrderDecision = repOrderDecision; } /** * Rep Order decision *

* * (Required) * */ @JsonProperty("repOrderDecision") public String getRepOrderDecision() { return repOrderDecision; } /** * Rep Order decision *

* * (Required) * */ @JsonProperty("repOrderDecision") public void setRepOrderDecision(String repOrderDecision) { this.repOrderDecision = repOrderDecision; } public ApiCrownCourtSummary withRepOrderDecision(String repOrderDecision) { this.repOrderDecision = repOrderDecision; return this; } protected boolean declaredProperty(String name, Object value) { if ("repOrderDecision".equals(name)) { if (value instanceof String) { setRepOrderDecision(((String) value)); } else { throw new IllegalArgumentException(("property \"repOrderDecision\" is of type \"java.lang.String\", but got "+ value.getClass().toString())); } return true; } else { return false; } } protected Object declaredPropertyOrNotFound(String name, Object notFoundValue) { if ("repOrderDecision".equals(name)) { return getRepOrderDecision(); } else { return notFoundValue; } } @SuppressWarnings({ "unchecked" }) publicT get(String name) { Object value = declaredPropertyOrNotFound(name, ApiCrownCourtSummary.NOT_FOUND_VALUE); if (ApiCrownCourtSummary.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 ApiCrownCourtSummary 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(ApiCrownCourtSummary.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("repOrderDecision"); sb.append('='); sb.append(((this.repOrderDecision == null)?"":this.repOrderDecision)); 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.repOrderDecision == null)? 0 :this.repOrderDecision.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof ApiCrownCourtSummary) == false) { return false; } ApiCrownCourtSummary rhs = ((ApiCrownCourtSummary) other); return ((this.repOrderDecision == rhs.repOrderDecision)||((this.repOrderDecision!= null)&&this.repOrderDecision.equals(rhs.repOrderDecision))); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy