/*
 * 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;

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

  public static final String SERIALIZED_NAME_NB_MAX_MESSAGE_PER_MONTH = "nbMaxMessagePerMonth";
  @SerializedName(SERIALIZED_NAME_NB_MAX_MESSAGE_PER_MONTH)
  private Long nbMaxMessagePerMonth;

  public static final String SERIALIZED_NAME_NB_MAX_MESSAGE_PER_DAY = "nbMaxMessagePerDay";
  @SerializedName(SERIALIZED_NAME_NB_MAX_MESSAGE_PER_DAY)
  private Long nbMaxMessagePerDay;

  public static final String SERIALIZED_NAME_NB_MAX_MESSAGE_PER_WEEK = "nbMaxMessagePerWeek";
  @SerializedName(SERIALIZED_NAME_NB_MAX_MESSAGE_PER_WEEK)
  private Long nbMaxMessagePerWeek;


  public CommunicationPolicy delayMinBetween2messages(Long delayMinBetween2messages) {
    
    this.delayMinBetween2messages = delayMinBetween2messages;
    return this;
  }

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

  public Long getDelayMinBetween2messages() {
    return delayMinBetween2messages;
  }



  public void setDelayMinBetween2messages(Long delayMinBetween2messages) {
    this.delayMinBetween2messages = delayMinBetween2messages;
  }


  public CommunicationPolicy nbMaxMessagePerMonth(Long nbMaxMessagePerMonth) {
    
    this.nbMaxMessagePerMonth = nbMaxMessagePerMonth;
    return this;
  }

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

  public Long getNbMaxMessagePerMonth() {
    return nbMaxMessagePerMonth;
  }



  public void setNbMaxMessagePerMonth(Long nbMaxMessagePerMonth) {
    this.nbMaxMessagePerMonth = nbMaxMessagePerMonth;
  }


  public CommunicationPolicy nbMaxMessagePerDay(Long nbMaxMessagePerDay) {
    
    this.nbMaxMessagePerDay = nbMaxMessagePerDay;
    return this;
  }

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

  public Long getNbMaxMessagePerDay() {
    return nbMaxMessagePerDay;
  }



  public void setNbMaxMessagePerDay(Long nbMaxMessagePerDay) {
    this.nbMaxMessagePerDay = nbMaxMessagePerDay;
  }


  public CommunicationPolicy nbMaxMessagePerWeek(Long nbMaxMessagePerWeek) {
    
    this.nbMaxMessagePerWeek = nbMaxMessagePerWeek;
    return this;
  }

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

  public Long getNbMaxMessagePerWeek() {
    return nbMaxMessagePerWeek;
  }



  public void setNbMaxMessagePerWeek(Long nbMaxMessagePerWeek) {
    this.nbMaxMessagePerWeek = nbMaxMessagePerWeek;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CommunicationPolicy communicationPolicy = (CommunicationPolicy) o;
    return Objects.equals(this.delayMinBetween2messages, communicationPolicy.delayMinBetween2messages) &&
        Objects.equals(this.nbMaxMessagePerMonth, communicationPolicy.nbMaxMessagePerMonth) &&
        Objects.equals(this.nbMaxMessagePerDay, communicationPolicy.nbMaxMessagePerDay) &&
        Objects.equals(this.nbMaxMessagePerWeek, communicationPolicy.nbMaxMessagePerWeek);
  }

  @Override
  public int hashCode() {
    return Objects.hash(delayMinBetween2messages, nbMaxMessagePerMonth, nbMaxMessagePerDay, nbMaxMessagePerWeek);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CommunicationPolicy {\n");
    sb.append("    delayMinBetween2messages: ").append(toIndentedString(delayMinBetween2messages)).append("\n");
    sb.append("    nbMaxMessagePerMonth: ").append(toIndentedString(nbMaxMessagePerMonth)).append("\n");
    sb.append("    nbMaxMessagePerDay: ").append(toIndentedString(nbMaxMessagePerDay)).append("\n");
    sb.append("    nbMaxMessagePerWeek: ").append(toIndentedString(nbMaxMessagePerWeek)).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    ");
  }

}

