/*
 * Swagger of Opencellsoft Api
 * @#Introduction
 *
 * The version of the OpenAPI document: 7.3.1-SNAPSHOT
 * Contact: contact@opencellsoft.fr
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package org.openapitools.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.math.BigDecimal;
import org.openapitools.client.model.MatchingCodesDto;

/**
 * MatchingAmountDto
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-09-13T10:03:17.753Z[GMT]")
public class MatchingAmountDto {
  public static final String SERIALIZED_NAME_MATCHING_CODE = "matchingCode";
  @SerializedName(SERIALIZED_NAME_MATCHING_CODE)
  private String matchingCode;

  public static final String SERIALIZED_NAME_MATCHING_AMOUNT = "matchingAmount";
  @SerializedName(SERIALIZED_NAME_MATCHING_AMOUNT)
  private BigDecimal matchingAmount;

  public static final String SERIALIZED_NAME_MATCHING_CODES = "matchingCodes";
  @SerializedName(SERIALIZED_NAME_MATCHING_CODES)
  private MatchingCodesDto matchingCodes;


  public MatchingAmountDto matchingCode(String matchingCode) {
    
    this.matchingCode = matchingCode;
    return this;
  }

   /**
   * Get matchingCode
   * @return matchingCode
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public String getMatchingCode() {
    return matchingCode;
  }



  public void setMatchingCode(String matchingCode) {
    this.matchingCode = matchingCode;
  }


  public MatchingAmountDto matchingAmount(BigDecimal matchingAmount) {
    
    this.matchingAmount = matchingAmount;
    return this;
  }

   /**
   * Get matchingAmount
   * @return matchingAmount
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public BigDecimal getMatchingAmount() {
    return matchingAmount;
  }



  public void setMatchingAmount(BigDecimal matchingAmount) {
    this.matchingAmount = matchingAmount;
  }


  public MatchingAmountDto matchingCodes(MatchingCodesDto matchingCodes) {
    
    this.matchingCodes = matchingCodes;
    return this;
  }

   /**
   * Get matchingCodes
   * @return matchingCodes
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public MatchingCodesDto getMatchingCodes() {
    return matchingCodes;
  }



  public void setMatchingCodes(MatchingCodesDto matchingCodes) {
    this.matchingCodes = matchingCodes;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    MatchingAmountDto matchingAmountDto = (MatchingAmountDto) o;
    return Objects.equals(this.matchingCode, matchingAmountDto.matchingCode) &&
        Objects.equals(this.matchingAmount, matchingAmountDto.matchingAmount) &&
        Objects.equals(this.matchingCodes, matchingAmountDto.matchingCodes);
  }

  @Override
  public int hashCode() {
    return Objects.hash(matchingCode, matchingAmount, matchingCodes);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class MatchingAmountDto {\n");
    sb.append("    matchingCode: ").append(toIndentedString(matchingCode)).append("\n");
    sb.append("    matchingAmount: ").append(toIndentedString(matchingAmount)).append("\n");
    sb.append("    matchingCodes: ").append(toIndentedString(matchingCodes)).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    ");
  }

}

