org.finra.herd.sdk.model.SearchIndexStatistics Maven / Gradle / Ivy
/*
* 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.joda.time.DateTime;
/**
* SearchIndexStatistics
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class SearchIndexStatistics {
@JsonProperty("indexCreationDate")
private DateTime indexCreationDate = null;
@JsonProperty("indexNumberOfActiveDocuments")
private Long indexNumberOfActiveDocuments = null;
@JsonProperty("indexNumberOfDeletedDocuments")
private Long indexNumberOfDeletedDocuments = null;
@JsonProperty("indexUuid")
private String indexUuid = null;
@JsonProperty("indexCount")
private Long indexCount = null;
public SearchIndexStatistics indexCreationDate(DateTime indexCreationDate) {
this.indexCreationDate = indexCreationDate;
return this;
}
/**
* The index creation date
* @return indexCreationDate
**/
@ApiModelProperty(value = "The index creation date")
public DateTime getIndexCreationDate() {
return indexCreationDate;
}
public void setIndexCreationDate(DateTime indexCreationDate) {
this.indexCreationDate = indexCreationDate;
}
public SearchIndexStatistics indexNumberOfActiveDocuments(Long indexNumberOfActiveDocuments) {
this.indexNumberOfActiveDocuments = indexNumberOfActiveDocuments;
return this;
}
/**
* The number of active documents in this index
* @return indexNumberOfActiveDocuments
**/
@ApiModelProperty(value = "The number of active documents in this index")
public Long getIndexNumberOfActiveDocuments() {
return indexNumberOfActiveDocuments;
}
public void setIndexNumberOfActiveDocuments(Long indexNumberOfActiveDocuments) {
this.indexNumberOfActiveDocuments = indexNumberOfActiveDocuments;
}
public SearchIndexStatistics indexNumberOfDeletedDocuments(Long indexNumberOfDeletedDocuments) {
this.indexNumberOfDeletedDocuments = indexNumberOfDeletedDocuments;
return this;
}
/**
* The number of deleted documents in this index
* @return indexNumberOfDeletedDocuments
**/
@ApiModelProperty(value = "The number of deleted documents in this index")
public Long getIndexNumberOfDeletedDocuments() {
return indexNumberOfDeletedDocuments;
}
public void setIndexNumberOfDeletedDocuments(Long indexNumberOfDeletedDocuments) {
this.indexNumberOfDeletedDocuments = indexNumberOfDeletedDocuments;
}
public SearchIndexStatistics indexUuid(String indexUuid) {
this.indexUuid = indexUuid;
return this;
}
/**
* The UUID of the index
* @return indexUuid
**/
@ApiModelProperty(value = "The UUID of the index")
public String getIndexUuid() {
return indexUuid;
}
public void setIndexUuid(String indexUuid) {
this.indexUuid = indexUuid;
}
public SearchIndexStatistics indexCount(Long indexCount) {
this.indexCount = indexCount;
return this;
}
/**
* The count of the index size from count query
* @return indexCount
**/
@ApiModelProperty(value = "The count of the index size from count query")
public Long getIndexCount() {
return indexCount;
}
public void setIndexCount(Long indexCount) {
this.indexCount = indexCount;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SearchIndexStatistics searchIndexStatistics = (SearchIndexStatistics) o;
return Objects.equals(this.indexCreationDate, searchIndexStatistics.indexCreationDate) &&
Objects.equals(this.indexNumberOfActiveDocuments, searchIndexStatistics.indexNumberOfActiveDocuments) &&
Objects.equals(this.indexNumberOfDeletedDocuments, searchIndexStatistics.indexNumberOfDeletedDocuments) &&
Objects.equals(this.indexUuid, searchIndexStatistics.indexUuid) &&
Objects.equals(this.indexCount, searchIndexStatistics.indexCount);
}
@Override
public int hashCode() {
return Objects.hash(indexCreationDate, indexNumberOfActiveDocuments, indexNumberOfDeletedDocuments, indexUuid, indexCount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SearchIndexStatistics {\n");
sb.append(" indexCreationDate: ").append(toIndentedString(indexCreationDate)).append("\n");
sb.append(" indexNumberOfActiveDocuments: ").append(toIndentedString(indexNumberOfActiveDocuments)).append("\n");
sb.append(" indexNumberOfDeletedDocuments: ").append(toIndentedString(indexNumberOfDeletedDocuments)).append("\n");
sb.append(" indexUuid: ").append(toIndentedString(indexUuid)).append("\n");
sb.append(" indexCount: ").append(toIndentedString(indexCount)).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 ");
}
}