no.nav.sbl.soknadsosialhjelp.digisos.soker.JsonFilreferanse Maven / Gradle / Ivy
package no.nav.sbl.soknadsosialhjelp.digisos.soker;
import java.util.HashMap;
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.JsonCreator;
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 com.fasterxml.jackson.annotation.JsonValue;
/**
* Filreferanse til FIKS
*
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"type"
})
@Generated("jsonschema2pojo")
public class JsonFilreferanse {
/**
* Typen filreferanse.
* (Required)
*
*/
@JsonProperty("type")
@JsonPropertyDescription("Typen filreferanse.")
private JsonFilreferanse.Type type;
@JsonIgnore
private Map additionalProperties = new LinkedHashMap();
/**
* Typen filreferanse.
* (Required)
*
*/
@JsonProperty("type")
public JsonFilreferanse.Type getType() {
return type;
}
/**
* Typen filreferanse.
* (Required)
*
*/
@JsonProperty("type")
public void setType(JsonFilreferanse.Type type) {
this.type = type;
}
public JsonFilreferanse withType(JsonFilreferanse.Type type) {
this.type = type;
return this;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
public JsonFilreferanse withAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(JsonFilreferanse.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("type");
sb.append('=');
sb.append(((this.type == null)?"":this.type));
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.type == null)? 0 :this.type.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 JsonFilreferanse) == false) {
return false;
}
JsonFilreferanse rhs = ((JsonFilreferanse) other);
return (((this.type == rhs.type)||((this.type!= null)&&this.type.equals(rhs.type)))&&((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))));
}
/**
* Typen filreferanse.
*
*/
@Generated("jsonschema2pojo")
public enum Type {
SVARUT("svarut"),
DOKUMENTLAGER("dokumentlager");
private final String value;
private final static Map CONSTANTS = new HashMap();
static {
for (JsonFilreferanse.Type c: values()) {
CONSTANTS.put(c.value, c);
}
}
Type(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
@JsonValue
public String value() {
return this.value;
}
@JsonCreator
public static JsonFilreferanse.Type fromValue(String value) {
JsonFilreferanse.Type constant = CONSTANTS.get(value);
if (constant == null) {
throw new IllegalArgumentException(value);
} else {
return constant;
}
}
}
}