/*
 * 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.HashMap;
import java.util.List;
import java.util.Map;
import org.openapitools.client.model.SignEventEmailDto;
import org.openapitools.client.model.SignEventWebhookDto;

/**
 * SignProcedureConfigDto
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-09-13T10:03:17.753Z[GMT]")
public class SignProcedureConfigDto {
  public static final String SERIALIZED_NAME_EMAIL = "email";
  @SerializedName(SERIALIZED_NAME_EMAIL)
  private Map<String, List<SignEventEmailDto>> email = null;

  public static final String SERIALIZED_NAME_WEBHOOK = "webhook";
  @SerializedName(SERIALIZED_NAME_WEBHOOK)
  private Map<String, List<SignEventWebhookDto>> webhook = null;


  public SignProcedureConfigDto email(Map<String, List<SignEventEmailDto>> email) {
    
    this.email = email;
    return this;
  }

  public SignProcedureConfigDto putEmailItem(String key, List<SignEventEmailDto> emailItem) {
    if (this.email == null) {
      this.email = new HashMap<String, List<SignEventEmailDto>>();
    }
    this.email.put(key, emailItem);
    return this;
  }

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

  public Map<String, List<SignEventEmailDto>> getEmail() {
    return email;
  }



  public void setEmail(Map<String, List<SignEventEmailDto>> email) {
    this.email = email;
  }


  public SignProcedureConfigDto webhook(Map<String, List<SignEventWebhookDto>> webhook) {
    
    this.webhook = webhook;
    return this;
  }

  public SignProcedureConfigDto putWebhookItem(String key, List<SignEventWebhookDto> webhookItem) {
    if (this.webhook == null) {
      this.webhook = new HashMap<String, List<SignEventWebhookDto>>();
    }
    this.webhook.put(key, webhookItem);
    return this;
  }

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

  public Map<String, List<SignEventWebhookDto>> getWebhook() {
    return webhook;
  }



  public void setWebhook(Map<String, List<SignEventWebhookDto>> webhook) {
    this.webhook = webhook;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SignProcedureConfigDto signProcedureConfigDto = (SignProcedureConfigDto) o;
    return Objects.equals(this.email, signProcedureConfigDto.email) &&
        Objects.equals(this.webhook, signProcedureConfigDto.webhook);
  }

  @Override
  public int hashCode() {
    return Objects.hash(email, webhook);
  }


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

}

