Class RepositorySettings
java.lang.Object
org.opensearch.client.opensearch.snapshot.RepositorySettings
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<RepositorySettings.Builder,RepositorySettings>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class RepositorySettings
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<RepositorySettings.Builder,RepositorySettings>
The settings for the snapshot repository.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<RepositorySettings> Json deserializer forRepositorySettings -
Method Summary
Modifier and TypeMethodDescriptionstatic RepositorySettings.Builderbuilder()final StringThe chunk size for the repository.final Booleancompress()Whether compression is enabled for the repository.final IntegerThe number of concurrent streams for the repository.booleaninthashCode()final Stringlocation()The location where snapshots are stored.static RepositorySettingsfinal BooleanreadOnly()Whether the repository is read-only.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.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 forRepositorySettings
-
-
Method Details
-
of
public static RepositorySettings of(Function<RepositorySettings.Builder, ObjectBuilder<RepositorySettings>> fn) -
chunkSize
The chunk size for the repository.API name:
chunk_size -
compress
Whether compression is enabled for the repository.API name:
compress -
concurrentStreams
The number of concurrent streams for the repository.API name:
concurrent_streams -
location
The location where snapshots are stored.API name:
location -
readOnly
Whether the repository is read-only.API name:
read_only -
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<RepositorySettings.Builder,RepositorySettings> - Returns:
- a new builder instance.
-
builder
-
setupRepositorySettingsDeserializer
protected static void setupRepositorySettingsDeserializer(ObjectDeserializer<RepositorySettings.Builder> op) -
hashCode
public int hashCode() -
equals
-