package com.sequenceiq.environment.api.v1.environment.model.response;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.sequenceiq.environment.api.doc.environment.EnvironmentModelDescription;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("PolicyValidationErrorResponse")
@JsonIgnoreProperties(ignoreUnknown = true)
public class PolicyValidationErrorResponse {

    @ApiModelProperty(EnvironmentModelDescription.POLICY_VALIDATION_ERROR_SERVICE)
    private String service;

    @ApiModelProperty(EnvironmentModelDescription.POLICY_VALIDATION_ERROR_MESSAGE)
    private String message;

    @ApiModelProperty(EnvironmentModelDescription.POLICY_VALIDATION_ERROR_CODE)
    private Integer code;

    public String getService() {
        return service;
    }

    public void setService(String service) {
        this.service = service;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "PolicyValidationErrorResponse{" +
                "service='" + service + '\'' +
                ", message='" + message + '\'' +
                ", code='" + code + '\'' +
                '}';
    }
}
