Class Repository
java.lang.Object
co.elastic.clients.elasticsearch.snapshot.Repository
- All Implemented Interfaces:
JsonpSerializable,OpenTaggedUnion<Repository.Kind,,Object> TaggedUnion<Repository.Kind,Object>
@JsonpDeserializable
public class Repository
extends Object
implements OpenTaggedUnion<Repository.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRepository(RepositoryVariant value) Repository(String kind, JsonData value) Build a custom plugin-definedRepository, given its kind and some JSON data -
Method Summary
Modifier and TypeMethodDescription_custom()Get the custom plugin-defined variant value.final StringGet the actual kind when_kind()equalsRepository.Kind._Custom(plugin-defined variant).final Object_get()booleanIs this a customRepositorydefined by a plugin?final Repository.Kind_kind()Get the of the kind of variant held by this object.azure()Get theazurevariant value.fs()Get thefsvariant value.gcs()Get thegcsvariant value.booleanisAzure()Is this variant instance of kindazure?booleanisFs()Is this variant instance of kindfs?booleanisGcs()Is this variant instance of kindgcs?booleanisS3()Is this variant instance of kinds3?booleanisSource()Is this variant instance of kindsource?booleanisUrl()Is this variant instance of kindurl?static Repositorys3()Get thes3variant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsource()Get thesourcevariant value.toString()url()Get theurlvariant value.
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Repository
-
Repository
Build a custom plugin-definedRepository, given its kind and some JSON data
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Repository.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Repository.Kind,Object>
-
of
-
isAzure
public boolean isAzure()Is this variant instance of kindazure? -
azure
Get theazurevariant value.- Throws:
IllegalStateException- if the current variant is not of theazurekind.
-
isGcs
public boolean isGcs()Is this variant instance of kindgcs? -
gcs
Get thegcsvariant value.- Throws:
IllegalStateException- if the current variant is not of thegcskind.
-
isUrl
public boolean isUrl()Is this variant instance of kindurl? -
url
Get theurlvariant value.- Throws:
IllegalStateException- if the current variant is not of theurlkind.
-
isS3
public boolean isS3()Is this variant instance of kinds3? -
s3
Get thes3variant value.- Throws:
IllegalStateException- if the current variant is not of thes3kind.
-
isFs
public boolean isFs()Is this variant instance of kindfs? -
fs
Get thefsvariant value.- Throws:
IllegalStateException- if the current variant is not of thefskind.
-
isSource
public boolean isSource()Is this variant instance of kindsource? -
source
Get thesourcevariant value.- Throws:
IllegalStateException- if the current variant is not of thesourcekind.
-
_isCustom
public boolean _isCustom()Is this a customRepositorydefined by a plugin? -
_customKind
Get the actual kind when_kind()equalsRepository.Kind._Custom(plugin-defined variant).- Specified by:
_customKindin interfaceOpenTaggedUnion<Repository.Kind,Object>
-
_custom
Get the custom plugin-defined variant value.- Throws:
IllegalStateException- if the current variant is notRepository.Kind._Custom.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupRepositoryDeserializer
-