/*
 * Open Payments Cloud Application API
 * Open Payments Cloud API
 *
 * OpenAPI spec version: 1.0.0
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.ixaris.ope.applications.client.model;

import java.util.Objects;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * CreateTransferConflict
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-08-30T15:46:40.836+02:00")
public class CreateTransferConflict {
  /**
   * Gets or Sets errorCode
   */
  public enum ErrorCodeEnum {
    @SerializedName("NO_ERROR")
    NO_ERROR("NO_ERROR"),
    
    @SerializedName("FAILED")
    FAILED("FAILED"),
    
    @SerializedName("SUSPENDED")
    SUSPENDED("SUSPENDED"),
    
    @SerializedName("SOURCE_INSTRUMENT_NOT_ENOUGH_FUNDS")
    SOURCE_INSTRUMENT_NOT_ENOUGH_FUNDS("SOURCE_INSTRUMENT_NOT_ENOUGH_FUNDS"),
    
    @SerializedName("SOURCE_INSTRUMENT_BLOCKED")
    SOURCE_INSTRUMENT_BLOCKED("SOURCE_INSTRUMENT_BLOCKED"),
    
    @SerializedName("DESTINATION_INSTRUMENT_BLOCKED")
    DESTINATION_INSTRUMENT_BLOCKED("DESTINATION_INSTRUMENT_BLOCKED"),
    
    @SerializedName("DESTINATION_INSTRUMENT_DESTROYED")
    DESTINATION_INSTRUMENT_DESTROYED("DESTINATION_INSTRUMENT_DESTROYED"),
    
    @SerializedName("PROFILE_INACTIVE")
    PROFILE_INACTIVE("PROFILE_INACTIVE"),
    
    @SerializedName("INVALID_TRANSFER_CURRENCY")
    INVALID_TRANSFER_CURRENCY("INVALID_TRANSFER_CURRENCY"),
    
    @SerializedName("FEE_SOURCE_INSTRUMENT_NOT_ENOUGH_FUNDS")
    FEE_SOURCE_INSTRUMENT_NOT_ENOUGH_FUNDS("FEE_SOURCE_INSTRUMENT_NOT_ENOUGH_FUNDS"),
    
    @SerializedName("FEE_SOURCE_INSTRUMENT_BLOCKED")
    FEE_SOURCE_INSTRUMENT_BLOCKED("FEE_SOURCE_INSTRUMENT_BLOCKED");

    private String value;

    ErrorCodeEnum(String value) {
      this.value = value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }
  }

  @SerializedName("errorCode")
  private ErrorCodeEnum errorCode = null;

  @SerializedName("errorMessage")
  private String errorMessage = null;

  public CreateTransferConflict errorCode(ErrorCodeEnum errorCode) {
    this.errorCode = errorCode;
    return this;
  }

   /**
   * Get errorCode
   * @return errorCode
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public ErrorCodeEnum getErrorCode() {
    return errorCode;
  }

  public void setErrorCode(ErrorCodeEnum errorCode) {
    this.errorCode = errorCode;
  }

  public CreateTransferConflict errorMessage(String errorMessage) {
    this.errorMessage = errorMessage;
    return this;
  }

   /**
   * Get errorMessage
   * @return errorMessage
  **/
  @ApiModelProperty(example = "null", value = "")
  public String getErrorMessage() {
    return errorMessage;
  }

  public void setErrorMessage(String errorMessage) {
    this.errorMessage = errorMessage;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CreateTransferConflict createTransferConflict = (CreateTransferConflict) o;
    return Objects.equals(this.errorCode, createTransferConflict.errorCode) &&
        Objects.equals(this.errorMessage, createTransferConflict.errorMessage);
  }

  @Override
  public int hashCode() {
    return Objects.hash(errorCode, errorMessage);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CreateTransferConflict {\n");
    
    sb.append("    errorCode: ").append(toIndentedString(errorCode)).append("\n");
    sb.append("    errorMessage: ").append(toIndentedString(errorMessage)).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(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
  
}

