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

com.dell.cpsd.hal.data.provider.api.RejectionReason Maven / Gradle / Ivy


package com.dell.cpsd.hal.data.provider.api;

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

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "code",
    "message"
})
public class RejectionReason {

    /**
     * Rejection code
     * 

* The reason code provided by the service. * (Required) * */ @JsonProperty("code") @JsonPropertyDescription("") private String code; /** * Rejection message *

* The reason details provided by the service. * (Required) * */ @JsonProperty("message") @JsonPropertyDescription("") private String message; /** * No args constructor for use in serialization * */ public RejectionReason() { } /** * * @param code * @param message */ public RejectionReason(String code, String message) { super(); this.code = code; this.message = message; } /** * Rejection code *

* The reason code provided by the service. * (Required) * * @return * The code */ @JsonProperty("code") public String getCode() { return code; } /** * Rejection code *

* The reason code provided by the service. * (Required) * * @param code * The code */ @JsonProperty("code") public void setCode(String code) { this.code = code; } /** * Rejection message *

* The reason details provided by the service. * (Required) * * @return * The message */ @JsonProperty("message") public String getMessage() { return message; } /** * Rejection message *

* The reason details provided by the service. * (Required) * * @param message * The message */ @JsonProperty("message") public void setMessage(String message) { this.message = message; } @Override public String toString() { return ToStringBuilder.reflectionToString(this); } @Override public int hashCode() { return new HashCodeBuilder().append(code).append(message).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof RejectionReason) == false) { return false; } RejectionReason rhs = ((RejectionReason) other); return new EqualsBuilder().append(code, rhs.code).append(message, rhs.message).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy