Class FollowerIndex.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<FollowerIndex.Builder>
co.elastic.clients.elasticsearch.ccr.follow_info.FollowerIndex.Builder
- All Implemented Interfaces:
WithJson<FollowerIndex.Builder>
,ObjectBuilder<FollowerIndex>
- Enclosing class:
- FollowerIndex
public static class FollowerIndex.Builder
extends WithJsonObjectBuilderBase<FollowerIndex.Builder>
implements ObjectBuilder<FollowerIndex>
Builder for
FollowerIndex
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aFollowerIndex
.final FollowerIndex.Builder
followerIndex
(String value) Required - API name:follower_index
final FollowerIndex.Builder
leaderIndex
(String value) Required - API name:leader_index
final FollowerIndex.Builder
API name:parameters
final FollowerIndex.Builder
API name:parameters
final FollowerIndex.Builder
remoteCluster
(String value) Required - API name:remote_cluster
protected FollowerIndex.Builder
self()
final FollowerIndex.Builder
status
(FollowerIndexStatus value) Required - API name:status
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
-
followerIndex
Required - API name:follower_index
-
leaderIndex
Required - API name:leader_index
-
parameters
API name:parameters
-
parameters
public final FollowerIndex.Builder parameters(Function<FollowerIndexParameters.Builder, ObjectBuilder<FollowerIndexParameters>> fn) API name:parameters
-
remoteCluster
Required - API name:remote_cluster
-
status
Required - API name:status
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<FollowerIndex.Builder>
-
build
Builds aFollowerIndex
.- Specified by:
build
in interfaceObjectBuilder<FollowerIndex>
- Throws:
NullPointerException
- if some of the required fields are null.
-