Class SourceOnlyRepositorySettings
java.lang.Object
co.elastic.clients.elasticsearch.snapshot.SourceOnlyRepositorySettings
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<SourceOnlyRepositorySettings.Kind,SourceOnlyRepositorySettingsVariant>
@JsonpDeserializable
public class SourceOnlyRepositorySettings
extends Object
implements TaggedUnion<SourceOnlyRepositorySettings.Kind,SourceOnlyRepositorySettingsVariant>, JsonpSerializable
The delegated repository type. Source repositories can use
settings properties for its delegated repository type.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumSourceOnlyRepositorySettingsvariant kinds. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_get()_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?booleanisUrl()Is this variant instance of kindurl?static SourceOnlyRepositorySettingss3()Get thes3variant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupSourceOnlyRepositorySettingsDeserializer(ObjectDeserializer<SourceOnlyRepositorySettings.Builder> op) toString()url()Get theurlvariant value.
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
SourceOnlyRepositorySettings
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<SourceOnlyRepositorySettings.Kind,SourceOnlyRepositorySettingsVariant> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<SourceOnlyRepositorySettings.Kind,SourceOnlyRepositorySettingsVariant>
-
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.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupSourceOnlyRepositorySettingsDeserializer
protected static void setupSourceOnlyRepositorySettingsDeserializer(ObjectDeserializer<SourceOnlyRepositorySettings.Builder> op)
-