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

com.xerox.amazonws.fps.TransactionResult Maven / Gradle / Ivy

package com.xerox.amazonws.fps;

import java.io.Serializable;

/**
 * @author J. Bernard
 * @author Elastic Grid, LLC.
 * @author [email protected]
 */
public class TransactionResult implements Serializable {
    private final String transactionId;
    private final FPSOperation operation;
    private final String callerReference;
    private final Transaction.Status status;

    public TransactionResult(String transactionId, FPSOperation operation, String callerReference, Transaction.Status status) {
        this.transactionId = transactionId;
        this.operation = operation;
        this.callerReference = callerReference;
        this.status = status;
    }

    public String getTransactionId() {
        return transactionId;
    }

    public FPSOperation getOperation() {
        return operation;
    }

    public String getCallerReference() {
        return callerReference;
    }

    public Transaction.Status getStatus() {
        return status;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        sb.append("TransactionResult");
        sb.append("{transactionId='").append(transactionId).append('\'');
        sb.append(", operation=").append(operation);
        sb.append(", callerReference='").append(callerReference).append('\'');
        sb.append(", status=").append(status);
        sb.append('}');
        return sb.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy