Class HttpEmailAttachment.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<HttpEmailAttachment.Builder>
co.elastic.clients.elasticsearch.watcher.HttpEmailAttachment.Builder
- All Implemented Interfaces:
WithJson<HttpEmailAttachment.Builder>
,ObjectBuilder<HttpEmailAttachment>
- Enclosing class:
- HttpEmailAttachment
public static class HttpEmailAttachment.Builder
extends WithJsonObjectBuilderBase<HttpEmailAttachment.Builder>
implements ObjectBuilder<HttpEmailAttachment>
Builder for
HttpEmailAttachment
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aHttpEmailAttachment
.contentType
(String value) API name:content_type
API name:inline
API name:request
API name:request
protected HttpEmailAttachment.Builder
self()
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
-
contentType
API name:content_type
-
inline
API name:inline
-
request
API name:request
-
request
public final HttpEmailAttachment.Builder request(Function<HttpInputRequestDefinition.Builder, ObjectBuilder<HttpInputRequestDefinition>> fn) API name:request
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<HttpEmailAttachment.Builder>
-
build
Builds aHttpEmailAttachment
.- Specified by:
build
in interfaceObjectBuilder<HttpEmailAttachment>
- Throws:
NullPointerException
- if some of the required fields are null.
-