Class Deprecation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.migration.deprecations.Deprecation.Builder
- All Implemented Interfaces:
ObjectBuilder<Deprecation>
- Enclosing class:
- Deprecation
public static class Deprecation.Builder extends ObjectBuilderBase implements ObjectBuilder<Deprecation>
Builder for
Deprecation
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description Deprecation
build()
Builds aDeprecation
.Deprecation.Builder
details(java.lang.String value)
Required - API name:details
Deprecation.Builder
level(DeprecationLevel value)
Required - The level property describes the significance of the issue.Deprecation.Builder
message(java.lang.String value)
Required - API name:message
Deprecation.Builder
url(java.lang.String value)
Required - API name:url
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
details
Required - API name:details
-
level
Required - The level property describes the significance of the issue.API name:
level
-
message
Required - API name:message
-
url
Required - API name:url
-
build
Builds aDeprecation
.- Specified by:
build
in interfaceObjectBuilder<Deprecation>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-