
de.adorsys.psd2.model.ConsentStatusResponse200 Maven / Gradle / Ivy
package de.adorsys.psd2.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Objects;
/**
* Body of the JSON response for a successful get status request for a consent.
*/
@ApiModel(description = "Body of the JSON response for a successful get status request for a consent.")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-05-24T13:41:46.273636+03:00[Europe/Kiev]")
public class ConsentStatusResponse200 {
@JsonProperty("consentStatus")
private ConsentStatus consentStatus = null;
@JsonProperty("psuMessage")
private String psuMessage = null;
public ConsentStatusResponse200 consentStatus(ConsentStatus consentStatus) {
this.consentStatus = consentStatus;
return this;
}
/**
* Get consentStatus
* @return consentStatus
**/
@ApiModelProperty(required = true, value = "")
@NotNull
@Valid
@JsonProperty("consentStatus")
public ConsentStatus getConsentStatus() {
return consentStatus;
}
public void setConsentStatus(ConsentStatus consentStatus) {
this.consentStatus = consentStatus;
}
public ConsentStatusResponse200 psuMessage(String psuMessage) {
this.psuMessage = psuMessage;
return this;
}
/**
* Get psuMessage
* @return psuMessage
**/
@ApiModelProperty(value = "")
@Size(max=500)
@JsonProperty("psuMessage")
public String getPsuMessage() {
return psuMessage;
}
public void setPsuMessage(String psuMessage) {
this.psuMessage = psuMessage;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
} ConsentStatusResponse200 consentStatusResponse200 = (ConsentStatusResponse200) o;
return Objects.equals(this.consentStatus, consentStatusResponse200.consentStatus) &&
Objects.equals(this.psuMessage, consentStatusResponse200.psuMessage);
}
@Override
public int hashCode() {
return Objects.hash(consentStatus, psuMessage);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ConsentStatusResponse200 {\n");
sb.append(" consentStatus: ").append(toIndentedString(consentStatus)).append("\n");
sb.append(" psuMessage: ").append(toIndentedString(psuMessage)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy