no.nav.sbl.soknadsosialhjelp.digisos.soker.JsonVedlegg Maven / Gradle / Ivy
package no.nav.sbl.soknadsosialhjelp.digisos.soker;
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;
/**
* Vedlegg til vedtaksfil, forvaltningsbrev eller dokumentasjonEtterspurt
*
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"tittel",
"referanse"
})
@Generated("jsonschema2pojo")
public class JsonVedlegg {
/**
* En tittel som kan brukes som lenke/forklaringstekst til hva vedlegget er.
* (Required)
*
*/
@JsonProperty("tittel")
@JsonPropertyDescription("En tittel som kan brukes som lenke/forklaringstekst til hva vedlegget er.")
private String tittel;
/**
* Filreferanse til FIKS
*
*
* (Required)
*
*/
@JsonProperty("referanse")
private JsonFilreferanse referanse;
@JsonIgnore
private Map additionalProperties = new LinkedHashMap();
/**
* En tittel som kan brukes som lenke/forklaringstekst til hva vedlegget er.
* (Required)
*
*/
@JsonProperty("tittel")
public String getTittel() {
return tittel;
}
/**
* En tittel som kan brukes som lenke/forklaringstekst til hva vedlegget er.
* (Required)
*
*/
@JsonProperty("tittel")
public void setTittel(String tittel) {
this.tittel = tittel;
}
public JsonVedlegg withTittel(String tittel) {
this.tittel = tittel;
return this;
}
/**
* Filreferanse til FIKS
*
*
* (Required)
*
*/
@JsonProperty("referanse")
public JsonFilreferanse getReferanse() {
return referanse;
}
/**
* Filreferanse til FIKS
*
*
* (Required)
*
*/
@JsonProperty("referanse")
public void setReferanse(JsonFilreferanse referanse) {
this.referanse = referanse;
}
public JsonVedlegg withReferanse(JsonFilreferanse referanse) {
this.referanse = referanse;
return this;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
public JsonVedlegg withAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(JsonVedlegg.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("tittel");
sb.append('=');
sb.append(((this.tittel == null)?"":this.tittel));
sb.append(',');
sb.append("referanse");
sb.append('=');
sb.append(((this.referanse == null)?"":this.referanse));
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.tittel == null)? 0 :this.tittel.hashCode()));
result = ((result* 31)+((this.referanse == null)? 0 :this.referanse.hashCode()));
result = ((result* 31)+((this.additionalProperties == null)? 0 :this.additionalProperties.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof JsonVedlegg) == false) {
return false;
}
JsonVedlegg rhs = ((JsonVedlegg) other);
return ((((this.tittel == rhs.tittel)||((this.tittel!= null)&&this.tittel.equals(rhs.tittel)))&&((this.referanse == rhs.referanse)||((this.referanse!= null)&&this.referanse.equals(rhs.referanse))))&&((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))));
}
}