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 Deprecationbuild()Builds aDeprecation.Deprecation.Builderdetails(java.lang.String value)Required - API name:detailsDeprecation.Builderlevel(DeprecationLevel value)Required - The level property describes the significance of the issue.Deprecation.Buildermessage(java.lang.String value)Required - API name:messageDeprecation.Builderurl(java.lang.String value)Required - API name:urlMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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:
buildin interfaceObjectBuilder<Deprecation>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-