Class Deprecation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Deprecation.Builder>
co.elastic.clients.elasticsearch.migration.deprecations.Deprecation.Builder
- All Implemented Interfaces:
WithJson<Deprecation.Builder>
,ObjectBuilder<Deprecation>
- Enclosing class:
- Deprecation
public static class Deprecation.Builder
extends WithJsonObjectBuilderBase<Deprecation.Builder>
implements ObjectBuilder<Deprecation>
Builder for
Deprecation
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aDeprecation
.final Deprecation.Builder
Optional details about the deprecation warning.final Deprecation.Builder
level
(DeprecationLevel value) Required - The level property describes the significance of the issue.final Deprecation.Builder
Required - Descriptive information about the deprecation warning.final Deprecation.Builder
API name:_meta
final Deprecation.Builder
API name:_meta
final Deprecation.Builder
resolveDuringRollingUpgrade
(boolean value) Required - API name:resolve_during_rolling_upgrade
protected Deprecation.Builder
self()
final Deprecation.Builder
Required - A link to the breaking change documentation, where you can find more information about this change.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
details
Optional details about the deprecation warning.API name:
details
-
level
Required - The level property describes the significance of the issue.API name:
level
-
message
Required - Descriptive information about the deprecation warning.API name:
message
-
url
Required - A link to the breaking change documentation, where you can find more information about this change.API name:
url
-
resolveDuringRollingUpgrade
Required - API name:resolve_during_rolling_upgrade
-
meta
API name:_meta
Adds all entries of
map
tometa
. -
meta
API name:_meta
Adds an entry to
meta
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<Deprecation.Builder>
-
build
Builds aDeprecation
.- Specified by:
build
in interfaceObjectBuilder<Deprecation>
- Throws:
NullPointerException
- if some of the required fields are null.
-