Class Repository
java.lang.Object
org.opensearch.client.opensearch.snapshot.Repository
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<Repository.Builder,Repository>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class Repository
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<Repository.Builder,Repository>
The name of the repository to store the snapshot.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<Repository> Json deserializer forRepository -
Method Summary
Modifier and TypeMethodDescriptionstatic Repository.Builderbuilder()booleaninthashCode()static Repositoryvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) final RepositorySettingssettings()The configuration settings for the repository.protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final Stringtype()The type of the snapshot repository.final Stringuuid()The unique identifier for the repository.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forRepository
-
-
Method Details
-
of
-
settings
The configuration settings for the repository.API name:
settings -
type
The type of the snapshot repository.API name:
type -
uuid
The unique identifier for the repository.API name:
uuid -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Repository.Builder,Repository> - Returns:
- a new builder instance.
-
builder
-
setupRepositoryDeserializer
-
hashCode
public int hashCode() -
equals
-