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

no.nav.sbl.soknadsosialhjelp.soknad.adresse.JsonPostboksAdresse Maven / Gradle / Ivy

There is a newer version: 1.2019.09.25-00.21-49b69f0625e0
Show newest version

package no.nav.sbl.soknadsosialhjelp.soknad.adresse;

import java.util.HashMap;
import java.util.Map;
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.JsonPropertyOrder;
import no.nav.sbl.soknadsosialhjelp.soknad.common.JsonKilde;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;


/**
 * Angir en postboksadresse.
 * 

* * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "postboks", "postnummer", "poststed" }) public class JsonPostboksAdresse extends JsonAdresse { @JsonProperty("postboks") private String postboks; @JsonProperty("postnummer") private String postnummer; @JsonProperty("poststed") private String poststed; @JsonIgnore private Map additionalProperties = new HashMap(); @JsonProperty("postboks") public String getPostboks() { return postboks; } @JsonProperty("postboks") public void setPostboks(String postboks) { this.postboks = postboks; } public JsonPostboksAdresse withPostboks(String postboks) { this.postboks = postboks; return this; } @JsonProperty("postnummer") public String getPostnummer() { return postnummer; } @JsonProperty("postnummer") public void setPostnummer(String postnummer) { this.postnummer = postnummer; } public JsonPostboksAdresse withPostnummer(String postnummer) { this.postnummer = postnummer; return this; } @JsonProperty("poststed") public String getPoststed() { return poststed; } @JsonProperty("poststed") public void setPoststed(String poststed) { this.poststed = poststed; } public JsonPostboksAdresse withPoststed(String poststed) { this.poststed = poststed; return this; } @Override public JsonPostboksAdresse withKilde(JsonKilde kilde) { super.withKilde(kilde); return this; } @Override public JsonPostboksAdresse withType(JsonAdresse.Type type) { super.withType(type); return this; } @JsonAnyGetter public Map getAdditionalProperties() { return this.additionalProperties; } @JsonAnySetter public void setAdditionalProperty(String name, Object value) { this.additionalProperties.put(name, value); } public JsonPostboksAdresse withAdditionalProperty(String name, Object value) { this.additionalProperties.put(name, value); return this; } @Override public String toString() { return new ToStringBuilder(this).appendSuper(super.toString()).append("postboks", postboks).append("postnummer", postnummer).append("poststed", poststed).append("additionalProperties", additionalProperties).toString(); } @Override public int hashCode() { return new HashCodeBuilder().appendSuper(super.hashCode()).append(postboks).append(additionalProperties).append(postnummer).append(poststed).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof JsonPostboksAdresse) == false) { return false; } JsonPostboksAdresse rhs = ((JsonPostboksAdresse) other); return new EqualsBuilder().appendSuper(super.equals(other)).append(postboks, rhs.postboks).append(additionalProperties, rhs.additionalProperties).append(postnummer, rhs.postnummer).append(poststed, rhs.poststed).isEquals(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy