package io.swagger.model.core;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDate;
import org.springframework.validation.annotation.Validated;
import jakarta.validation.Valid;

/**
 * TrialNewRequestDatasetAuthorships
 */
@Validated
@javax.annotation.processing.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2020-03-20T16:31:52.030Z[GMT]")
public class TrialNewRequestDatasetAuthorships   {
  @JsonProperty("datasetPUI")
  private String datasetPUI = null;

  @JsonProperty("license")
  private String license = null;

  @JsonProperty("publicReleaseDate")
  private LocalDate publicReleaseDate = null;

  @JsonProperty("submissionDate")
  private LocalDate submissionDate = null;

  public TrialNewRequestDatasetAuthorships datasetPUI(String datasetPUI) {
    this.datasetPUI = datasetPUI;
    return this;
  }

  /**
   * Get datasetPUI
   * @return datasetPUI
  **/
  @ApiModelProperty(example = "doi:10.15454/312953986E3", value = "")
  
    public String getDatasetPUI() {
    return datasetPUI;
  }

  public void setDatasetPUI(String datasetPUI) {
    this.datasetPUI = datasetPUI;
  }

  public TrialNewRequestDatasetAuthorships license(String license) {
    this.license = license;
    return this;
  }

  /**
   * MIAPPE V1.1 (DM-7) License - License for the reuse of the data associated with this investigation. The Creative Commons licenses cover most use cases and are recommended.
   * @return license
  **/
  @ApiModelProperty(example = "https://CreativeCommons.org/licenses/by/4.0", value = "MIAPPE V1.1 (DM-7) License - License for the reuse of the data associated with this investigation. The Creative Commons licenses cover most use cases and are recommended.")
  
    public String getLicense() {
    return license;
  }

  public void setLicense(String license) {
    this.license = license;
  }

  public TrialNewRequestDatasetAuthorships publicReleaseDate(LocalDate publicReleaseDate) {
    this.publicReleaseDate = publicReleaseDate;
    return this;
  }

  /**
   * MIAPPE V1.1 (DM-6) Public release date - Date of first public release of the dataset presently being described.
   * @return publicReleaseDate
  **/
  @ApiModelProperty(value = "MIAPPE V1.1 (DM-6) Public release date - Date of first public release of the dataset presently being described.")
  
    @Valid
    public LocalDate getPublicReleaseDate() {
    return publicReleaseDate;
  }

  public void setPublicReleaseDate(LocalDate publicReleaseDate) {
    this.publicReleaseDate = publicReleaseDate;
  }

  public TrialNewRequestDatasetAuthorships submissionDate(LocalDate submissionDate) {
    this.submissionDate = submissionDate;
    return this;
  }

  /**
   * MIAPPE V1.1 (DM-5) Submission date - Date of submission of the dataset presently being described to a host repository.
   * @return submissionDate
  **/
  @ApiModelProperty(value = "MIAPPE V1.1 (DM-5) Submission date - Date of submission of the dataset presently being described to a host repository.")
  
    @Valid
    public LocalDate getSubmissionDate() {
    return submissionDate;
  }

  public void setSubmissionDate(LocalDate submissionDate) {
    this.submissionDate = submissionDate;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TrialNewRequestDatasetAuthorships trialNewRequestDatasetAuthorships = (TrialNewRequestDatasetAuthorships) o;
    return Objects.equals(this.datasetPUI, trialNewRequestDatasetAuthorships.datasetPUI) &&
        Objects.equals(this.license, trialNewRequestDatasetAuthorships.license) &&
        Objects.equals(this.publicReleaseDate, trialNewRequestDatasetAuthorships.publicReleaseDate) &&
        Objects.equals(this.submissionDate, trialNewRequestDatasetAuthorships.submissionDate);
  }

  @Override
  public int hashCode() {
    return Objects.hash(datasetPUI, license, publicReleaseDate, submissionDate);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class TrialNewRequestDatasetAuthorships {\n");
    
    sb.append("    datasetPUI: ").append(toIndentedString(datasetPUI)).append("\n");
    sb.append("    license: ").append(toIndentedString(license)).append("\n");
    sb.append("    publicReleaseDate: ").append(toIndentedString(publicReleaseDate)).append("\n");
    sb.append("    submissionDate: ").append(toIndentedString(submissionDate)).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    ");
  }
}
