com.adyen.model.marketpay.notification.OperationStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adyen-java-api-library Show documentation
Show all versions of adyen-java-api-library Show documentation
Adyen API Client Library for Java
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
*
* Adyen Java API Library
*
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
package com.adyen.model.marketpay.notification;
import com.google.gson.annotations.SerializedName;
import java.util.Objects;
import static com.adyen.util.Util.toIndentedString;
/**
* OperationStatus
*/
public class OperationStatus {
@SerializedName("message")
private Message message = null;
@SerializedName("statusCode")
private String statusCode = null;
public OperationStatus message(Message message) {
this.message = message;
return this;
}
/**
* Get message
*
* @return message
**/
public Message getMessage() {
return message;
}
public void setMessage(Message message) {
this.message = message;
}
public OperationStatus statusCode(String statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* The status code.
*
* @return statusCode
**/
public String getStatusCode() {
return statusCode;
}
public void setStatusCode(String statusCode) {
this.statusCode = statusCode;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OperationStatus operationStatus = (OperationStatus) o;
return Objects.equals(this.message, operationStatus.message) &&
Objects.equals(this.statusCode, operationStatus.statusCode);
}
@Override
public int hashCode() {
return Objects.hash(message, statusCode);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OperationStatus {\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" statusCode: ").append(toIndentedString(statusCode)).append("\n");
sb.append("}");
return sb.toString();
}
}