no.nav.sbl.soknadsosialhjelp.soknad.okonomi.opplysning.JsonOkonomiOpplysningUtbetalingKomponent Maven / Gradle / Ivy
package no.nav.sbl.soknadsosialhjelp.soknad.okonomi.opplysning;
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;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"type",
"belop",
"satsType",
"satsAntall",
"satsBelop"
})
@Generated("jsonschema2pojo")
public class JsonOkonomiOpplysningUtbetalingKomponent {
/**
* Beskrivelse av hva slags type delutbetaling det er. Eksempler: "Arbeidstaker", "Grunnpensjon" og "Tilleggspensjon".
*
*/
@JsonProperty("type")
@JsonPropertyDescription("Beskrivelse av hva slags type delutbetaling det er. Eksempler: \"Arbeidstaker\", \"Grunnpensjon\" og \"Tilleggspensjon\".")
private String type;
/**
* Beløp for delutbetalingen. Resultat av satsType, satsAntall og satsBelop
*
*/
@JsonProperty("belop")
@JsonPropertyDescription("Bel\u00f8p for delutbetalingen. Resultat av satsType, satsAntall og satsBelop")
private Double belop;
/**
* Beskrivelse av hva slags type sats det er. Eksempel: "Dag" og "Prosent".
*
*/
@JsonProperty("satsType")
@JsonPropertyDescription("Beskrivelse av hva slags type sats det er. Eksempel: \"Dag\" og \"Prosent\".")
private String satsType;
/**
* Antall enheter av satstypen for delutbetalingen.
*
*/
@JsonProperty("satsAntall")
@JsonPropertyDescription("Antall enheter av satstypen for delutbetalingen.")
private Double satsAntall;
/**
* Satsbeløpet for delutbetalingen
*
*/
@JsonProperty("satsBelop")
@JsonPropertyDescription("Satsbel\u00f8pet for delutbetalingen")
private Double satsBelop;
@JsonIgnore
private Map additionalProperties = new LinkedHashMap();
/**
* Beskrivelse av hva slags type delutbetaling det er. Eksempler: "Arbeidstaker", "Grunnpensjon" og "Tilleggspensjon".
*
*/
@JsonProperty("type")
public String getType() {
return type;
}
/**
* Beskrivelse av hva slags type delutbetaling det er. Eksempler: "Arbeidstaker", "Grunnpensjon" og "Tilleggspensjon".
*
*/
@JsonProperty("type")
public void setType(String type) {
this.type = type;
}
public JsonOkonomiOpplysningUtbetalingKomponent withType(String type) {
this.type = type;
return this;
}
/**
* Beløp for delutbetalingen. Resultat av satsType, satsAntall og satsBelop
*
*/
@JsonProperty("belop")
public Double getBelop() {
return belop;
}
/**
* Beløp for delutbetalingen. Resultat av satsType, satsAntall og satsBelop
*
*/
@JsonProperty("belop")
public void setBelop(Double belop) {
this.belop = belop;
}
public JsonOkonomiOpplysningUtbetalingKomponent withBelop(Double belop) {
this.belop = belop;
return this;
}
/**
* Beskrivelse av hva slags type sats det er. Eksempel: "Dag" og "Prosent".
*
*/
@JsonProperty("satsType")
public String getSatsType() {
return satsType;
}
/**
* Beskrivelse av hva slags type sats det er. Eksempel: "Dag" og "Prosent".
*
*/
@JsonProperty("satsType")
public void setSatsType(String satsType) {
this.satsType = satsType;
}
public JsonOkonomiOpplysningUtbetalingKomponent withSatsType(String satsType) {
this.satsType = satsType;
return this;
}
/**
* Antall enheter av satstypen for delutbetalingen.
*
*/
@JsonProperty("satsAntall")
public Double getSatsAntall() {
return satsAntall;
}
/**
* Antall enheter av satstypen for delutbetalingen.
*
*/
@JsonProperty("satsAntall")
public void setSatsAntall(Double satsAntall) {
this.satsAntall = satsAntall;
}
public JsonOkonomiOpplysningUtbetalingKomponent withSatsAntall(Double satsAntall) {
this.satsAntall = satsAntall;
return this;
}
/**
* Satsbeløpet for delutbetalingen
*
*/
@JsonProperty("satsBelop")
public Double getSatsBelop() {
return satsBelop;
}
/**
* Satsbeløpet for delutbetalingen
*
*/
@JsonProperty("satsBelop")
public void setSatsBelop(Double satsBelop) {
this.satsBelop = satsBelop;
}
public JsonOkonomiOpplysningUtbetalingKomponent withSatsBelop(Double satsBelop) {
this.satsBelop = satsBelop;
return this;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
public JsonOkonomiOpplysningUtbetalingKomponent withAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(JsonOkonomiOpplysningUtbetalingKomponent.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("belop");
sb.append('=');
sb.append(((this.belop == null)?"":this.belop));
sb.append(',');
sb.append("satsType");
sb.append('=');
sb.append(((this.satsType == null)?"":this.satsType));
sb.append(',');
sb.append("satsAntall");
sb.append('=');
sb.append(((this.satsAntall == null)?"":this.satsAntall));
sb.append(',');
sb.append("satsBelop");
sb.append('=');
sb.append(((this.satsBelop == null)?"":this.satsBelop));
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.additionalProperties == null)? 0 :this.additionalProperties.hashCode()));
result = ((result* 31)+((this.type == null)? 0 :this.type.hashCode()));
result = ((result* 31)+((this.satsBelop == null)? 0 :this.satsBelop.hashCode()));
result = ((result* 31)+((this.satsType == null)? 0 :this.satsType.hashCode()));
result = ((result* 31)+((this.belop == null)? 0 :this.belop.hashCode()));
result = ((result* 31)+((this.satsAntall == null)? 0 :this.satsAntall.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof JsonOkonomiOpplysningUtbetalingKomponent) == false) {
return false;
}
JsonOkonomiOpplysningUtbetalingKomponent rhs = ((JsonOkonomiOpplysningUtbetalingKomponent) other);
return (((((((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties)))&&((this.type == rhs.type)||((this.type!= null)&&this.type.equals(rhs.type))))&&((this.satsBelop == rhs.satsBelop)||((this.satsBelop!= null)&&this.satsBelop.equals(rhs.satsBelop))))&&((this.satsType == rhs.satsType)||((this.satsType!= null)&&this.satsType.equals(rhs.satsType))))&&((this.belop == rhs.belop)||((this.belop!= null)&&this.belop.equals(rhs.belop))))&&((this.satsAntall == rhs.satsAntall)||((this.satsAntall!= null)&&this.satsAntall.equals(rhs.satsAntall))));
}
}