Class CreateRepositoryRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.snapshot.CreateRepositoryRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class CreateRepositoryRequest
extends RequestBase
implements JsonpSerializable
Create or update a snapshot repository. IMPORTANT: If you are migrating
searchable snapshots, the repository name must be identical in the source and
destination clusters. To register a snapshot repository, the cluster's global
metadata must be writeable. Ensure there are no cluster blocks (for example,
cluster.blocks.read_only
and
clsuter.blocks.read_only_allow_delete
settings) that prevent
write access.- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CreateRepositoryRequest>
static final Endpoint<CreateRepositoryRequest,
CreateRepositoryResponse, ErrorResponse> Endpoint "snapshot.create_repository
". -
Method Summary
Modifier and TypeMethodDescriptionprotected static JsonpDeserializer<CreateRepositoryRequest>
final Time
Explicit operation timeout for connection to master nodefinal String
name()
Required - A repository namestatic CreateRepositoryRequest
final Repository
Required - Request body.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this value to JSON.final Time
timeout()
Explicit operation timeoutfinal Boolean
verify()
Whether to verify the repository after creationMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
-
_ENDPOINT
public static final Endpoint<CreateRepositoryRequest,CreateRepositoryResponse, _ENDPOINTErrorResponse> Endpoint "snapshot.create_repository
".
-
-
Method Details
-
of
public static CreateRepositoryRequest of(Function<CreateRepositoryRequest.Builder, ObjectBuilder<CreateRepositoryRequest>> fn) -
masterTimeout
Explicit operation timeout for connection to master nodeAPI name:
master_timeout
-
name
Required - A repository nameAPI name:
repository
-
timeout
Explicit operation timeoutAPI name:
timeout
-
verify
Whether to verify the repository after creationAPI name:
verify
-
repository
Required - Request body. -
serialize
Serialize this value to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
createCreateRepositoryRequestDeserializer
protected static JsonpDeserializer<CreateRepositoryRequest> createCreateRepositoryRequestDeserializer()
-