package org.coredb.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.*;

/**
 * PendingAmigoView
 */
@Validated


public class PendingAmigoView   {
  @JsonProperty("shareId")
  private String shareId = null;

  @JsonProperty("revision")
  private Integer revision = null;

  public PendingAmigoView shareId(String shareId) {
    this.shareId = shareId;
    return this;
  }

  /**
   * Get shareId
   * @return shareId
   **/
      @NotNull

    public String getShareId() {
    return shareId;
  }

  public void setShareId(String shareId) {
    this.shareId = shareId;
  }

  public PendingAmigoView revision(Integer revision) {
    this.revision = revision;
    return this;
  }

  /**
   * Get revision
   * @return revision
   **/
      @NotNull

    public Integer getRevision() {
    return revision;
  }

  public void setRevision(Integer revision) {
    this.revision = revision;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PendingAmigoView pendingAmigoView = (PendingAmigoView) o;
    return Objects.equals(this.shareId, pendingAmigoView.shareId) &&
        Objects.equals(this.revision, pendingAmigoView.revision);
  }

  @Override
  public int hashCode() {
    return Objects.hash(shareId, revision);
  }

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

