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 String
Get the actual kind when_kind()
equalsRepository.Kind._Custom
(plugin-defined variant).final Object
_get()
boolean
Is this a customRepository
defined by a plugin?final Repository.Kind
_kind()
Get the of the kind of variant held by this object.azure()
Get theazure
variant value.fs()
Get thefs
variant value.gcs()
Get thegcs
variant value.boolean
isAzure()
Is this variant instance of kindazure
?boolean
isFs()
Is this variant instance of kindfs
?boolean
isGcs()
Is this variant instance of kindgcs
?boolean
isS3()
Is this variant instance of kinds3
?boolean
isSource()
Is this variant instance of kindsource
?boolean
isUrl()
Is this variant instance of kindurl
?static Repository
s3()
Get thes3
variant value.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
source()
Get thesource
variant value.toString()
url()
Get theurl
variant 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:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<Repository.Kind,
Object> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in interfaceTaggedUnion<Repository.Kind,
Object>
-
of
-
isAzure
public boolean isAzure()Is this variant instance of kindazure
? -
azure
Get theazure
variant value.- Throws:
IllegalStateException
- if the current variant is not of theazure
kind.
-
isGcs
public boolean isGcs()Is this variant instance of kindgcs
? -
gcs
Get thegcs
variant value.- Throws:
IllegalStateException
- if the current variant is not of thegcs
kind.
-
isUrl
public boolean isUrl()Is this variant instance of kindurl
? -
url
Get theurl
variant value.- Throws:
IllegalStateException
- if the current variant is not of theurl
kind.
-
isS3
public boolean isS3()Is this variant instance of kinds3
? -
s3
Get thes3
variant value.- Throws:
IllegalStateException
- if the current variant is not of thes3
kind.
-
isFs
public boolean isFs()Is this variant instance of kindfs
? -
fs
Get thefs
variant value.- Throws:
IllegalStateException
- if the current variant is not of thefs
kind.
-
isSource
public boolean isSource()Is this variant instance of kindsource
? -
source
Get thesource
variant value.- Throws:
IllegalStateException
- if the current variant is not of thesource
kind.
-
_isCustom
public boolean _isCustom()Is this a customRepository
defined by a plugin? -
_customKind
Get the actual kind when_kind()
equalsRepository.Kind._Custom
(plugin-defined variant).- Specified by:
_customKind
in 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:
serialize
in interfaceJsonpSerializable
-
toString
-
setupRepositoryDeserializer
-