Class GetAutoFollowPatternResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GetAutoFollowPatternResponse.Builder>
co.elastic.clients.elasticsearch.ccr.GetAutoFollowPatternResponse.Builder
- All Implemented Interfaces:
WithJson<GetAutoFollowPatternResponse.Builder>
,ObjectBuilder<GetAutoFollowPatternResponse>
- Enclosing class:
- GetAutoFollowPatternResponse
public static class GetAutoFollowPatternResponse.Builder
extends WithJsonObjectBuilderBase<GetAutoFollowPatternResponse.Builder>
implements ObjectBuilder<GetAutoFollowPatternResponse>
Builder for
GetAutoFollowPatternResponse
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aGetAutoFollowPatternResponse
.patterns
(AutoFollowPattern value, AutoFollowPattern... values) Required - API name:patterns
Required - API name:patterns
patterns
(List<AutoFollowPattern> list) Required - API name:patterns
protected GetAutoFollowPatternResponse.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
-
patterns
Required - API name:patterns
Adds all elements of
list
topatterns
. -
patterns
public final GetAutoFollowPatternResponse.Builder patterns(AutoFollowPattern value, AutoFollowPattern... values) Required - API name:patterns
Adds one or more values to
patterns
. -
patterns
public final GetAutoFollowPatternResponse.Builder patterns(Function<AutoFollowPattern.Builder, ObjectBuilder<AutoFollowPattern>> fn) Required - API name:patterns
Adds a value to
patterns
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<GetAutoFollowPatternResponse.Builder>
-
build
Builds aGetAutoFollowPatternResponse
.- Specified by:
build
in interfaceObjectBuilder<GetAutoFollowPatternResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-