/*
 * Bybit API
 * ## REST API for the Bybit Exchange. Base URI: [https://api.bybit.com]  
 *
 * OpenAPI spec version: 0.2.10
 * Contact: support@bybit.com
 *
 * 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 io.swagger.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;

/**
 * LinearSetMarginResult
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-11-12T14:39:31.513+08:00")
public class LinearSetMarginResult {
  @SerializedName("PositionListResult")
  private Object positionListResult = null;

  @SerializedName("available_balance")
  private Double availableBalance = null;

  @SerializedName("wallet_balance")
  private Double walletBalance = null;

  public LinearSetMarginResult positionListResult(Object positionListResult) {
    this.positionListResult = positionListResult;
    return this;
  }

   /**
   * Get positionListResult
   * @return positionListResult
  **/
  @ApiModelProperty(value = "")
  public Object getPositionListResult() {
    return positionListResult;
  }

  public void setPositionListResult(Object positionListResult) {
    this.positionListResult = positionListResult;
  }

  public LinearSetMarginResult availableBalance(Double availableBalance) {
    this.availableBalance = availableBalance;
    return this;
  }

   /**
   * Get availableBalance
   * @return availableBalance
  **/
  @ApiModelProperty(value = "")
  public Double getAvailableBalance() {
    return availableBalance;
  }

  public void setAvailableBalance(Double availableBalance) {
    this.availableBalance = availableBalance;
  }

  public LinearSetMarginResult walletBalance(Double walletBalance) {
    this.walletBalance = walletBalance;
    return this;
  }

   /**
   * Get walletBalance
   * @return walletBalance
  **/
  @ApiModelProperty(value = "")
  public Double getWalletBalance() {
    return walletBalance;
  }

  public void setWalletBalance(Double walletBalance) {
    this.walletBalance = walletBalance;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    LinearSetMarginResult linearSetMarginResult = (LinearSetMarginResult) o;
    return Objects.equals(this.positionListResult, linearSetMarginResult.positionListResult) &&
        Objects.equals(this.availableBalance, linearSetMarginResult.availableBalance) &&
        Objects.equals(this.walletBalance, linearSetMarginResult.walletBalance);
  }

  @Override
  public int hashCode() {
    return Objects.hash(positionListResult, availableBalance, walletBalance);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class LinearSetMarginResult {\n");
    
    sb.append("    positionListResult: ").append(toIndentedString(positionListResult)).append("\n");
    sb.append("    availableBalance: ").append(toIndentedString(availableBalance)).append("\n");
    sb.append("    walletBalance: ").append(toIndentedString(walletBalance)).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    ");
  }

}

