io.github.honhimw.ms.model.Index Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of meilisearch-rest-client Show documentation
Show all versions of meilisearch-rest-client Show documentation
Reactive meilisearch rest client powered by reactor-netty-http.
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.honhimw.ms.model;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.annotation.Nonnull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* @author hon_him
* @since 2023-12-29
*/
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
public class Index implements Serializable {
/**
* Unique identifier for the index
*/
@Schema(description = "Unique identifier for the index", example = "movies")
@Nonnull
private String uid;
/**
* Custom primaryKey for documents
*/
@Schema(description = "Custom primaryKey for documents", example = "movie_id", nullable = true)
private String primaryKey;
/**
* An RFC 3339 format for date/time/duration.
*/
@Schema(description = "An RFC 3339 format for date/time/duration.", example = "2019-11-20T09:40:33.711324Z")
@Nonnull
private LocalDateTime createdAt;
/**
* An RFC 3339 format for date/time/duration.
*/
@Schema(description = "An RFC 3339 format for date/time/duration.", example = "2019-11-20T09:40:33.711324Z")
@Nonnull
private LocalDateTime updatedAt;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy