Class SlackDynamicAttachment.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SlackDynamicAttachment.Builder>
co.elastic.clients.elasticsearch.watcher.SlackDynamicAttachment.Builder
- All Implemented Interfaces:
WithJson<SlackDynamicAttachment.Builder>,ObjectBuilder<SlackDynamicAttachment>
- Enclosing class:
- SlackDynamicAttachment
public static class SlackDynamicAttachment.Builder
extends WithJsonObjectBuilderBase<SlackDynamicAttachment.Builder>
implements ObjectBuilder<SlackDynamicAttachment>
Builder for
SlackDynamicAttachment.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRequired - API name:attachment_templateRequired - API name:attachment_templatebuild()Builds aSlackDynamicAttachment.Required - API name:list_pathprotected SlackDynamicAttachment.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attachmentTemplate
Required - API name:attachment_template -
attachmentTemplate
public final SlackDynamicAttachment.Builder attachmentTemplate(Function<SlackAttachment.Builder, ObjectBuilder<SlackAttachment>> fn) Required - API name:attachment_template -
listPath
Required - API name:list_path -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<SlackDynamicAttachment.Builder>
-
build
Builds aSlackDynamicAttachment.- Specified by:
buildin interfaceObjectBuilder<SlackDynamicAttachment>- Throws:
NullPointerException- if some of the required fields are null.
-