/*
 * 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.util.ArrayList;
import java.util.List;
import org.openapitools.client.model.ActionStatus;
import org.openapitools.client.model.OneShotChargeInstanceDto;
import org.openapitools.client.model.OneShotChargeTemplateDto;

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

  public static final String SERIALIZED_NAME_ONESHOT_CHARGES = "oneshotCharges";
  @SerializedName(SERIALIZED_NAME_ONESHOT_CHARGES)
  private List<OneShotChargeTemplateDto> oneshotCharges = null;

  public static final String SERIALIZED_NAME_ONESHOT_CHARGE_INSTANCES = "oneshotChargeInstances";
  @SerializedName(SERIALIZED_NAME_ONESHOT_CHARGE_INSTANCES)
  private List<OneShotChargeInstanceDto> oneshotChargeInstances = null;


  public GetOneShotChargesResponseDto actionStatus(ActionStatus actionStatus) {
    
    this.actionStatus = actionStatus;
    return this;
  }

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

  public ActionStatus getActionStatus() {
    return actionStatus;
  }



  public void setActionStatus(ActionStatus actionStatus) {
    this.actionStatus = actionStatus;
  }


  public GetOneShotChargesResponseDto oneshotCharges(List<OneShotChargeTemplateDto> oneshotCharges) {
    
    this.oneshotCharges = oneshotCharges;
    return this;
  }

  public GetOneShotChargesResponseDto addOneshotChargesItem(OneShotChargeTemplateDto oneshotChargesItem) {
    if (this.oneshotCharges == null) {
      this.oneshotCharges = new ArrayList<OneShotChargeTemplateDto>();
    }
    this.oneshotCharges.add(oneshotChargesItem);
    return this;
  }

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

  public List<OneShotChargeTemplateDto> getOneshotCharges() {
    return oneshotCharges;
  }



  public void setOneshotCharges(List<OneShotChargeTemplateDto> oneshotCharges) {
    this.oneshotCharges = oneshotCharges;
  }


  public GetOneShotChargesResponseDto oneshotChargeInstances(List<OneShotChargeInstanceDto> oneshotChargeInstances) {
    
    this.oneshotChargeInstances = oneshotChargeInstances;
    return this;
  }

  public GetOneShotChargesResponseDto addOneshotChargeInstancesItem(OneShotChargeInstanceDto oneshotChargeInstancesItem) {
    if (this.oneshotChargeInstances == null) {
      this.oneshotChargeInstances = new ArrayList<OneShotChargeInstanceDto>();
    }
    this.oneshotChargeInstances.add(oneshotChargeInstancesItem);
    return this;
  }

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

  public List<OneShotChargeInstanceDto> getOneshotChargeInstances() {
    return oneshotChargeInstances;
  }



  public void setOneshotChargeInstances(List<OneShotChargeInstanceDto> oneshotChargeInstances) {
    this.oneshotChargeInstances = oneshotChargeInstances;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    GetOneShotChargesResponseDto getOneShotChargesResponseDto = (GetOneShotChargesResponseDto) o;
    return Objects.equals(this.actionStatus, getOneShotChargesResponseDto.actionStatus) &&
        Objects.equals(this.oneshotCharges, getOneShotChargesResponseDto.oneshotCharges) &&
        Objects.equals(this.oneshotChargeInstances, getOneShotChargesResponseDto.oneshotChargeInstances);
  }

  @Override
  public int hashCode() {
    return Objects.hash(actionStatus, oneshotCharges, oneshotChargeInstances);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class GetOneShotChargesResponseDto {\n");
    sb.append("    actionStatus: ").append(toIndentedString(actionStatus)).append("\n");
    sb.append("    oneshotCharges: ").append(toIndentedString(oneshotCharges)).append("\n");
    sb.append("    oneshotChargeInstances: ").append(toIndentedString(oneshotChargeInstances)).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    ");
  }

}

