All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.finra.herd.sdk.model.SearchIndex Maven / Gradle / Ivy

There is a newer version: 0.160.0
Show newest version
/*
 * herd-external
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * OpenAPI spec version: 0.125.0
 * 
 *
 * 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.finra.herd.sdk.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.finra.herd.sdk.model.SearchIndexKey;
import org.finra.herd.sdk.model.SearchIndexStatistics;
import org.joda.time.DateTime;

/**
 * SearchIndex
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class SearchIndex {
  @JsonProperty("searchIndexKey")
  private SearchIndexKey searchIndexKey = null;

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

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

  @JsonProperty("active")
  private Boolean active = null;

  @JsonProperty("searchIndexStatistics")
  private SearchIndexStatistics searchIndexStatistics = null;

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

  @JsonProperty("createdOn")
  private DateTime createdOn = null;

  @JsonProperty("lastUpdatedOn")
  private DateTime lastUpdatedOn = null;

  public SearchIndex searchIndexKey(SearchIndexKey searchIndexKey) {
    this.searchIndexKey = searchIndexKey;
    return this;
  }

   /**
   * Get searchIndexKey
   * @return searchIndexKey
  **/
  @ApiModelProperty(required = true, value = "")
  public SearchIndexKey getSearchIndexKey() {
    return searchIndexKey;
  }

  public void setSearchIndexKey(SearchIndexKey searchIndexKey) {
    this.searchIndexKey = searchIndexKey;
  }

  public SearchIndex searchIndexType(String searchIndexType) {
    this.searchIndexType = searchIndexType;
    return this;
  }

   /**
   * The type of this Search Index. One of the following values: BUS_OBJCT_DFNTN, TAG
   * @return searchIndexType
  **/
  @ApiModelProperty(required = true, value = "The type of this Search Index. One of the following values: BUS_OBJCT_DFNTN, TAG")
  public String getSearchIndexType() {
    return searchIndexType;
  }

  public void setSearchIndexType(String searchIndexType) {
    this.searchIndexType = searchIndexType;
  }

  public SearchIndex searchIndexStatus(String searchIndexStatus) {
    this.searchIndexStatus = searchIndexStatus;
    return this;
  }

   /**
   * The status of this Search Index. One of the following values: BUILDING, READY
   * @return searchIndexStatus
  **/
  @ApiModelProperty(required = true, value = "The status of this Search Index. One of the following values: BUILDING, READY")
  public String getSearchIndexStatus() {
    return searchIndexStatus;
  }

  public void setSearchIndexStatus(String searchIndexStatus) {
    this.searchIndexStatus = searchIndexStatus;
  }

  public SearchIndex active(Boolean active) {
    this.active = active;
    return this;
  }

   /**
   * A flag to indicate if the index is active or not. If the index is active it will be included in the search results.                
   * @return active
  **/
  @ApiModelProperty(value = "A flag to indicate if the index is active or not. If the index is active it will be included in the search results.                ")
  public Boolean getActive() {
    return active;
  }

  public void setActive(Boolean active) {
    this.active = active;
  }

  public SearchIndex searchIndexStatistics(SearchIndexStatistics searchIndexStatistics) {
    this.searchIndexStatistics = searchIndexStatistics;
    return this;
  }

   /**
   * Get searchIndexStatistics
   * @return searchIndexStatistics
  **/
  @ApiModelProperty(value = "")
  public SearchIndexStatistics getSearchIndexStatistics() {
    return searchIndexStatistics;
  }

  public void setSearchIndexStatistics(SearchIndexStatistics searchIndexStatistics) {
    this.searchIndexStatistics = searchIndexStatistics;
  }

  public SearchIndex createdByUserId(String createdByUserId) {
    this.createdByUserId = createdByUserId;
    return this;
  }

   /**
   * The User ID of the user who created this Search Index
   * @return createdByUserId
  **/
  @ApiModelProperty(value = "The User ID of the user who created this Search Index")
  public String getCreatedByUserId() {
    return createdByUserId;
  }

  public void setCreatedByUserId(String createdByUserId) {
    this.createdByUserId = createdByUserId;
  }

  public SearchIndex createdOn(DateTime createdOn) {
    this.createdOn = createdOn;
    return this;
  }

   /**
   * The timestamp when this Search Index was created on
   * @return createdOn
  **/
  @ApiModelProperty(value = "The timestamp when this Search Index was created on")
  public DateTime getCreatedOn() {
    return createdOn;
  }

  public void setCreatedOn(DateTime createdOn) {
    this.createdOn = createdOn;
  }

  public SearchIndex lastUpdatedOn(DateTime lastUpdatedOn) {
    this.lastUpdatedOn = lastUpdatedOn;
    return this;
  }

   /**
   * The timestamp when this Search Index was last updated on
   * @return lastUpdatedOn
  **/
  @ApiModelProperty(value = "The timestamp when this Search Index was last updated on")
  public DateTime getLastUpdatedOn() {
    return lastUpdatedOn;
  }

  public void setLastUpdatedOn(DateTime lastUpdatedOn) {
    this.lastUpdatedOn = lastUpdatedOn;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SearchIndex searchIndex = (SearchIndex) o;
    return Objects.equals(this.searchIndexKey, searchIndex.searchIndexKey) &&
        Objects.equals(this.searchIndexType, searchIndex.searchIndexType) &&
        Objects.equals(this.searchIndexStatus, searchIndex.searchIndexStatus) &&
        Objects.equals(this.active, searchIndex.active) &&
        Objects.equals(this.searchIndexStatistics, searchIndex.searchIndexStatistics) &&
        Objects.equals(this.createdByUserId, searchIndex.createdByUserId) &&
        Objects.equals(this.createdOn, searchIndex.createdOn) &&
        Objects.equals(this.lastUpdatedOn, searchIndex.lastUpdatedOn);
  }

  @Override
  public int hashCode() {
    return Objects.hash(searchIndexKey, searchIndexType, searchIndexStatus, active, searchIndexStatistics, createdByUserId, createdOn, lastUpdatedOn);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SearchIndex {\n");
    
    sb.append("    searchIndexKey: ").append(toIndentedString(searchIndexKey)).append("\n");
    sb.append("    searchIndexType: ").append(toIndentedString(searchIndexType)).append("\n");
    sb.append("    searchIndexStatus: ").append(toIndentedString(searchIndexStatus)).append("\n");
    sb.append("    active: ").append(toIndentedString(active)).append("\n");
    sb.append("    searchIndexStatistics: ").append(toIndentedString(searchIndexStatistics)).append("\n");
    sb.append("    createdByUserId: ").append(toIndentedString(createdByUserId)).append("\n");
    sb.append("    createdOn: ").append(toIndentedString(createdOn)).append("\n");
    sb.append("    lastUpdatedOn: ").append(toIndentedString(lastUpdatedOn)).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    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy