no.nav.sbl.soknadsosialhjelp.soknad.JsonInternalSoknad Maven / Gradle / Ivy
package no.nav.sbl.soknadsosialhjelp.soknad;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.annotation.processing.Generated;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
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 no.nav.sbl.soknadsosialhjelp.soknad.adresse.JsonAdresse;
import no.nav.sbl.soknadsosialhjelp.soknad.internal.JsonSoknadsmottaker;
import no.nav.sbl.soknadsosialhjelp.vedlegg.JsonVedleggSpesifikasjon;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"soknad",
"vedlegg",
"mottaker",
"midlertidigAdresse"
})
@Generated("jsonschema2pojo")
public class JsonInternalSoknad {
/**
* JSON-formatert søknad om sosialhjelp.
*
* Encoding er UTF-8.
*
*/
@JsonProperty("soknad")
@JsonPropertyDescription("Encoding er UTF-8.")
private JsonSoknad soknad;
/**
* JSON-formatert oversikt over vedlegg til søknad om sosialhjelp.
*
* Encoding er UTF-8.
*
*/
@JsonProperty("vedlegg")
@JsonPropertyDescription("Encoding er UTF-8.")
private JsonVedleggSpesifikasjon vedlegg;
/**
* Soknadsmottaker
*
*
*
*/
@JsonProperty("mottaker")
private JsonSoknadsmottaker mottaker;
/**
* Angir en adresse.
*
*
*
*/
@JsonProperty("midlertidigAdresse")
private JsonAdresse midlertidigAdresse;
@JsonIgnore
private Map additionalProperties = new LinkedHashMap();
/**
* JSON-formatert søknad om sosialhjelp.
*
* Encoding er UTF-8.
*
*/
@JsonProperty("soknad")
public JsonSoknad getSoknad() {
return soknad;
}
/**
* JSON-formatert søknad om sosialhjelp.
*
* Encoding er UTF-8.
*
*/
@JsonProperty("soknad")
public void setSoknad(JsonSoknad soknad) {
this.soknad = soknad;
}
public JsonInternalSoknad withSoknad(JsonSoknad soknad) {
this.soknad = soknad;
return this;
}
/**
* JSON-formatert oversikt over vedlegg til søknad om sosialhjelp.
*
* Encoding er UTF-8.
*
*/
@JsonProperty("vedlegg")
public JsonVedleggSpesifikasjon getVedlegg() {
return vedlegg;
}
/**
* JSON-formatert oversikt over vedlegg til søknad om sosialhjelp.
*
* Encoding er UTF-8.
*
*/
@JsonProperty("vedlegg")
public void setVedlegg(JsonVedleggSpesifikasjon vedlegg) {
this.vedlegg = vedlegg;
}
public JsonInternalSoknad withVedlegg(JsonVedleggSpesifikasjon vedlegg) {
this.vedlegg = vedlegg;
return this;
}
/**
* Soknadsmottaker
*
*
*
*/
@JsonProperty("mottaker")
public JsonSoknadsmottaker getMottaker() {
return mottaker;
}
/**
* Soknadsmottaker
*
*
*
*/
@JsonProperty("mottaker")
public void setMottaker(JsonSoknadsmottaker mottaker) {
this.mottaker = mottaker;
}
public JsonInternalSoknad withMottaker(JsonSoknadsmottaker mottaker) {
this.mottaker = mottaker;
return this;
}
/**
* Angir en adresse.
*
*
*
*/
@JsonProperty("midlertidigAdresse")
public JsonAdresse getMidlertidigAdresse() {
return midlertidigAdresse;
}
/**
* Angir en adresse.
*
*
*
*/
@JsonProperty("midlertidigAdresse")
public void setMidlertidigAdresse(JsonAdresse midlertidigAdresse) {
this.midlertidigAdresse = midlertidigAdresse;
}
public JsonInternalSoknad withMidlertidigAdresse(JsonAdresse midlertidigAdresse) {
this.midlertidigAdresse = midlertidigAdresse;
return this;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
public JsonInternalSoknad withAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(JsonInternalSoknad.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("soknad");
sb.append('=');
sb.append(((this.soknad == null)?"":this.soknad));
sb.append(',');
sb.append("vedlegg");
sb.append('=');
sb.append(((this.vedlegg == null)?"":this.vedlegg));
sb.append(',');
sb.append("mottaker");
sb.append('=');
sb.append(((this.mottaker == null)?"":this.mottaker));
sb.append(',');
sb.append("midlertidigAdresse");
sb.append('=');
sb.append(((this.midlertidigAdresse == null)?"":this.midlertidigAdresse));
sb.append(',');
sb.append("additionalProperties");
sb.append('=');
sb.append(((this.additionalProperties == null)?"":this.additionalProperties));
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.soknad == null)? 0 :this.soknad.hashCode()));
result = ((result* 31)+((this.vedlegg == null)? 0 :this.vedlegg.hashCode()));
result = ((result* 31)+((this.additionalProperties == null)? 0 :this.additionalProperties.hashCode()));
result = ((result* 31)+((this.midlertidigAdresse == null)? 0 :this.midlertidigAdresse.hashCode()));
result = ((result* 31)+((this.mottaker == null)? 0 :this.mottaker.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof JsonInternalSoknad) == false) {
return false;
}
JsonInternalSoknad rhs = ((JsonInternalSoknad) other);
return ((((((this.soknad == rhs.soknad)||((this.soknad!= null)&&this.soknad.equals(rhs.soknad)))&&((this.vedlegg == rhs.vedlegg)||((this.vedlegg!= null)&&this.vedlegg.equals(rhs.vedlegg))))&&((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))))&&((this.midlertidigAdresse == rhs.midlertidigAdresse)||((this.midlertidigAdresse!= null)&&this.midlertidigAdresse.equals(rhs.midlertidigAdresse))))&&((this.mottaker == rhs.mottaker)||((this.mottaker!= null)&&this.mottaker.equals(rhs.mottaker))));
}
}