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

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

  public static final String SERIALIZED_NAME_FIRSTNAME = "firstname";
  @SerializedName(SERIALIZED_NAME_FIRSTNAME)
  private String firstname;

  public static final String SERIALIZED_NAME_LASTNAME = "lastname";
  @SerializedName(SERIALIZED_NAME_LASTNAME)
  private String lastname;

  public static final String SERIALIZED_NAME_EMAIL = "email";
  @SerializedName(SERIALIZED_NAME_EMAIL)
  private String email;

  public static final String SERIALIZED_NAME_PHONE = "phone";
  @SerializedName(SERIALIZED_NAME_PHONE)
  private String phone;

  public static final String SERIALIZED_NAME_USER = "user";
  @SerializedName(SERIALIZED_NAME_USER)
  private String user;

  public static final String SERIALIZED_NAME_INTERNAL = "internal";
  @SerializedName(SERIALIZED_NAME_INTERNAL)
  private Boolean internal;

  public static final String SERIALIZED_NAME_FILE_OBJECTS = "fileObjects";
  @SerializedName(SERIALIZED_NAME_FILE_OBJECTS)
  private List<SignFileObjectRequestDto> fileObjects = null;


  public SignMemberRequestDto id(String id) {
    
    this.id = id;
    return this;
  }

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

  public String getId() {
    return id;
  }



  public void setId(String id) {
    this.id = id;
  }


  public SignMemberRequestDto firstname(String firstname) {
    
    this.firstname = firstname;
    return this;
  }

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

  public String getFirstname() {
    return firstname;
  }



  public void setFirstname(String firstname) {
    this.firstname = firstname;
  }


  public SignMemberRequestDto lastname(String lastname) {
    
    this.lastname = lastname;
    return this;
  }

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

  public String getLastname() {
    return lastname;
  }



  public void setLastname(String lastname) {
    this.lastname = lastname;
  }


  public SignMemberRequestDto email(String email) {
    
    this.email = email;
    return this;
  }

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

  public String getEmail() {
    return email;
  }



  public void setEmail(String email) {
    this.email = email;
  }


  public SignMemberRequestDto phone(String phone) {
    
    this.phone = phone;
    return this;
  }

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

  public String getPhone() {
    return phone;
  }



  public void setPhone(String phone) {
    this.phone = phone;
  }


  public SignMemberRequestDto user(String user) {
    
    this.user = user;
    return this;
  }

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

  public String getUser() {
    return user;
  }



  public void setUser(String user) {
    this.user = user;
  }


  public SignMemberRequestDto internal(Boolean internal) {
    
    this.internal = internal;
    return this;
  }

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

  public Boolean getInternal() {
    return internal;
  }



  public void setInternal(Boolean internal) {
    this.internal = internal;
  }


  public SignMemberRequestDto fileObjects(List<SignFileObjectRequestDto> fileObjects) {
    
    this.fileObjects = fileObjects;
    return this;
  }

  public SignMemberRequestDto addFileObjectsItem(SignFileObjectRequestDto fileObjectsItem) {
    if (this.fileObjects == null) {
      this.fileObjects = new ArrayList<SignFileObjectRequestDto>();
    }
    this.fileObjects.add(fileObjectsItem);
    return this;
  }

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

  public List<SignFileObjectRequestDto> getFileObjects() {
    return fileObjects;
  }



  public void setFileObjects(List<SignFileObjectRequestDto> fileObjects) {
    this.fileObjects = fileObjects;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SignMemberRequestDto signMemberRequestDto = (SignMemberRequestDto) o;
    return Objects.equals(this.id, signMemberRequestDto.id) &&
        Objects.equals(this.firstname, signMemberRequestDto.firstname) &&
        Objects.equals(this.lastname, signMemberRequestDto.lastname) &&
        Objects.equals(this.email, signMemberRequestDto.email) &&
        Objects.equals(this.phone, signMemberRequestDto.phone) &&
        Objects.equals(this.user, signMemberRequestDto.user) &&
        Objects.equals(this.internal, signMemberRequestDto.internal) &&
        Objects.equals(this.fileObjects, signMemberRequestDto.fileObjects);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, firstname, lastname, email, phone, user, internal, fileObjects);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SignMemberRequestDto {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    firstname: ").append(toIndentedString(firstname)).append("\n");
    sb.append("    lastname: ").append(toIndentedString(lastname)).append("\n");
    sb.append("    email: ").append(toIndentedString(email)).append("\n");
    sb.append("    phone: ").append(toIndentedString(phone)).append("\n");
    sb.append("    user: ").append(toIndentedString(user)).append("\n");
    sb.append("    internal: ").append(toIndentedString(internal)).append("\n");
    sb.append("    fileObjects: ").append(toIndentedString(fileObjects)).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    ");
  }

}

