Class SourceOnlyRepositorySettings
java.lang.Object
co.elastic.clients.elasticsearch.snapshot.RepositorySettingsBase
co.elastic.clients.elasticsearch.snapshot.SourceOnlyRepositorySettings
- All Implemented Interfaces:
- JsonpSerializable
- See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch.snapshot.RepositorySettingsBaseRepositorySettingsBase.AbstractBuilder<BuilderT extends RepositorySettingsBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SourceOnlyRepositorySettings>Json deserializer forSourceOnlyRepositorySettings
- 
Method SummaryModifier and TypeMethodDescriptionfinal StringThe delegated repository type.final IntegerThe maximum number of snapshots the repository can contain.static SourceOnlyRepositorySettingsfinal BooleanreadOnly()Iftrue, the repository is read-only.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupSourceOnlyRepositorySettingsDeserializer(ObjectDeserializer<SourceOnlyRepositorySettings.Builder> op) Methods inherited from class co.elastic.clients.elasticsearch.snapshot.RepositorySettingsBasechunkSize, compress, maxRestoreBytesPerSec, maxSnapshotBytesPerSec, serialize, setupRepositorySettingsBaseDeserializer, toString
- 
Field Details- 
_DESERIALIZERJson deserializer forSourceOnlyRepositorySettings
 
- 
- 
Method Details- 
of
- 
delegateTypeThe delegated repository type. For valid values, refer to thetypeparameter. Source repositories can usesettingsproperties for its delegated repository type.API name: delegate_type
- 
maxNumberOfSnapshotsThe maximum number of snapshots the repository can contain. The default isInteger.MAX_VALUE, which is 2^31-1 or2147483647.API name: max_number_of_snapshots
- 
readOnlyIftrue, the repository is read-only. The cluster can retrieve and restore snapshots from the repository but not write to the repository or create snapshots in it.Only a cluster with write access can create snapshots in the repository. All other clusters connected to the repository should have the readonlyparameter set totrue.If false, the cluster can write to the repository and create snapshots in it.IMPORTANT: If you register the same snapshot repository with multiple clusters, only one cluster should have write access to the repository. Having multiple clusters write to the repository at the same time risks corrupting the contents of the repository. API name: read_only
- 
serializeInternal- Overrides:
- serializeInternalin class- RepositorySettingsBase
 
- 
setupSourceOnlyRepositorySettingsDeserializerprotected static void setupSourceOnlyRepositorySettingsDeserializer(ObjectDeserializer<SourceOnlyRepositorySettings.Builder> op) 
 
-