org.finra.herd.sdk.model.SearchIndexActivation 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.finra.herd.sdk.model.SearchIndexKey;
import org.joda.time.DateTime;
/**
* SearchIndexActivation
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class SearchIndexActivation {
@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("createdByUserId")
private String createdByUserId = null;
@JsonProperty("createdOn")
private DateTime createdOn = null;
@JsonProperty("lastUpdatedOn")
private DateTime lastUpdatedOn = null;
public SearchIndexActivation 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 SearchIndexActivation 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 SearchIndexActivation 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 SearchIndexActivation 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 SearchIndexActivation 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 SearchIndexActivation 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 SearchIndexActivation 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;
}
SearchIndexActivation searchIndexActivation = (SearchIndexActivation) o;
return Objects.equals(this.searchIndexKey, searchIndexActivation.searchIndexKey) &&
Objects.equals(this.searchIndexType, searchIndexActivation.searchIndexType) &&
Objects.equals(this.searchIndexStatus, searchIndexActivation.searchIndexStatus) &&
Objects.equals(this.active, searchIndexActivation.active) &&
Objects.equals(this.createdByUserId, searchIndexActivation.createdByUserId) &&
Objects.equals(this.createdOn, searchIndexActivation.createdOn) &&
Objects.equals(this.lastUpdatedOn, searchIndexActivation.lastUpdatedOn);
}
@Override
public int hashCode() {
return Objects.hash(searchIndexKey, searchIndexType, searchIndexStatus, active, createdByUserId, createdOn, lastUpdatedOn);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SearchIndexActivation {\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(" 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 ");
}
}