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

io.fabric8.swagger.model.ResponseMessage Maven / Gradle / Ivy


package io.fabric8.swagger.model;

import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;
import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
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 lombok.EqualsAndHashCode;
import lombok.ToString;

@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
    "code",
    "message",
    "responseModel"
})
@ToString
@EqualsAndHashCode
public class ResponseMessage {

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("code")
    @DecimalMin("100")
    @DecimalMax("600")
    @NotNull
    private Integer code;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("message")
    @NotNull
    private String message;
    @JsonProperty("responseModel")
    private String responseModel;
    @JsonIgnore
    private Map additionalProperties = new HashMap();

    /**
     * 
     * (Required)
     * 
     * @return
     *     The code
     */
    @JsonProperty("code")
    public Integer getCode() {
        return code;
    }

    /**
     * 
     * (Required)
     * 
     * @param code
     *     The code
     */
    @JsonProperty("code")
    public void setCode(Integer code) {
        this.code = code;
    }

    /**
     * 
     * (Required)
     * 
     * @return
     *     The message
     */
    @JsonProperty("message")
    public String getMessage() {
        return message;
    }

    /**
     * 
     * (Required)
     * 
     * @param message
     *     The message
     */
    @JsonProperty("message")
    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * 
     * @return
     *     The responseModel
     */
    @JsonProperty("responseModel")
    public String getResponseModel() {
        return responseModel;
    }

    /**
     * 
     * @param responseModel
     *     The responseModel
     */
    @JsonProperty("responseModel")
    public void setResponseModel(String responseModel) {
        this.responseModel = responseModel;
    }

    @JsonAnyGetter
    public Map getAdditionalProperties() {
        return this.additionalProperties;
    }

    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy