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

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

  public static final String SERIALIZED_NAME_TOTAL_NUMBER_OF_RECORDS = "totalNumberOfRecords";
  @SerializedName(SERIALIZED_NAME_TOTAL_NUMBER_OF_RECORDS)
  private Long totalNumberOfRecords;


  public ContactsDto contact(List<ContactDto> contact) {
    
    this.contact = contact;
    return this;
  }

  public ContactsDto addContactItem(ContactDto contactItem) {
    if (this.contact == null) {
      this.contact = new ArrayList<ContactDto>();
    }
    this.contact.add(contactItem);
    return this;
  }

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

  public List<ContactDto> getContact() {
    return contact;
  }



  public void setContact(List<ContactDto> contact) {
    this.contact = contact;
  }


  public ContactsDto totalNumberOfRecords(Long totalNumberOfRecords) {
    
    this.totalNumberOfRecords = totalNumberOfRecords;
    return this;
  }

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

  public Long getTotalNumberOfRecords() {
    return totalNumberOfRecords;
  }



  public void setTotalNumberOfRecords(Long totalNumberOfRecords) {
    this.totalNumberOfRecords = totalNumberOfRecords;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ContactsDto contactsDto = (ContactsDto) o;
    return Objects.equals(this.contact, contactsDto.contact) &&
        Objects.equals(this.totalNumberOfRecords, contactsDto.totalNumberOfRecords);
  }

  @Override
  public int hashCode() {
    return Objects.hash(contact, totalNumberOfRecords);
  }


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

}

