Class EmailBody.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<EmailBody.Builder>
co.elastic.clients.elasticsearch.watcher.EmailBody.Builder
- All Implemented Interfaces:
WithJson<EmailBody.Builder>
,ObjectBuilder<EmailBody>
- Enclosing class:
- EmailBody
public static class EmailBody.Builder extends WithJsonObjectBuilderBase<EmailBody.Builder> implements ObjectBuilder<EmailBody>
Builder for
EmailBody
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description EmailBody
build()
Builds aEmailBody
.EmailBody.Builder
html(java.lang.String value)
API name:html
protected EmailBody.Builder
self()
EmailBody.Builder
text(java.lang.String value)
API name:text
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
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
-
html
API name:html
-
text
API name:text
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<EmailBody.Builder>
-
build
Builds aEmailBody
.- Specified by:
build
in interfaceObjectBuilder<EmailBody>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-