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

no.nav.sbl.soknadsosialhjelp.soknad.JsonKompatibilitet Maven / Gradle / Ivy

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

package no.nav.sbl.soknadsosialhjelp.soknad;

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 org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;


/**
 * Inneholder en Markdown-formatert kompatibilitetstekst.
 * 

* Kompatibilitetsteksten skal vises saksbehandler gitt at versjonen man forventer ved parsing av JSON er innenfor intervallet bestemt av "minVersion" og "maxVersion". * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "minVersion", "maxVersion", "text" }) public class JsonKompatibilitet { /** * Minimumsversjon for å vise kompatibilitetsteksten (inclusive). *

* * */ @JsonProperty("minVersion") private String minVersion; /** * Maksimumsversjon for å vise kompatibilitetsteksten (inclusive). *

* * */ @JsonProperty("maxVersion") private String maxVersion; /** * Markdown-formatert tekststreng som kan vises saksbehandler. *

* * */ @JsonProperty("text") private String text; @JsonIgnore private Map additionalProperties = new HashMap(); /** * Minimumsversjon for å vise kompatibilitetsteksten (inclusive). *

* * */ @JsonProperty("minVersion") public String getMinVersion() { return minVersion; } /** * Minimumsversjon for å vise kompatibilitetsteksten (inclusive). *

* * */ @JsonProperty("minVersion") public void setMinVersion(String minVersion) { this.minVersion = minVersion; } public JsonKompatibilitet withMinVersion(String minVersion) { this.minVersion = minVersion; return this; } /** * Maksimumsversjon for å vise kompatibilitetsteksten (inclusive). *

* * */ @JsonProperty("maxVersion") public String getMaxVersion() { return maxVersion; } /** * Maksimumsversjon for å vise kompatibilitetsteksten (inclusive). *

* * */ @JsonProperty("maxVersion") public void setMaxVersion(String maxVersion) { this.maxVersion = maxVersion; } public JsonKompatibilitet withMaxVersion(String maxVersion) { this.maxVersion = maxVersion; return this; } /** * Markdown-formatert tekststreng som kan vises saksbehandler. *

* * */ @JsonProperty("text") public String getText() { return text; } /** * Markdown-formatert tekststreng som kan vises saksbehandler. *

* * */ @JsonProperty("text") public void setText(String text) { this.text = text; } public JsonKompatibilitet withText(String text) { this.text = text; return this; } @JsonAnyGetter public Map getAdditionalProperties() { return this.additionalProperties; } @JsonAnySetter public void setAdditionalProperty(String name, Object value) { this.additionalProperties.put(name, value); } public JsonKompatibilitet withAdditionalProperty(String name, Object value) { this.additionalProperties.put(name, value); return this; } @Override public String toString() { return new ToStringBuilder(this).append("minVersion", minVersion).append("maxVersion", maxVersion).append("text", text).append("additionalProperties", additionalProperties).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(maxVersion).append(minVersion).append(text).append(additionalProperties).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof JsonKompatibilitet) == false) { return false; } JsonKompatibilitet rhs = ((JsonKompatibilitet) other); return new EqualsBuilder().append(maxVersion, rhs.maxVersion).append(minVersion, rhs.minVersion).append(text, rhs.text).append(additionalProperties, rhs.additionalProperties).isEquals(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy