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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aFollowerIndex.final FollowerIndex.BuilderfollowerIndex(String value) Required - The name of the follower index.final FollowerIndex.BuilderleaderIndex(String value) Required - The name of the index in the leader cluster that is followed.final FollowerIndex.BuilderAn object that encapsulates cross-cluster replication parameters.final FollowerIndex.BuilderAn object that encapsulates cross-cluster replication parameters.final FollowerIndex.BuilderremoteCluster(String value) Required - The remote cluster that contains the leader index.protected FollowerIndex.Builderself()final FollowerIndex.Builderstatus(FollowerIndexStatus value) Required - The status of the index following:activeorpaused.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
-
followerIndex
Required - The name of the follower index.API name:
follower_index -
leaderIndex
Required - The name of the index in the leader cluster that is followed.API name:
leader_index -
parameters
An object that encapsulates cross-cluster replication parameters. If the follower index's status is paused, this object is omitted.API name:
parameters -
parameters
public final FollowerIndex.Builder parameters(Function<FollowerIndexParameters.Builder, ObjectBuilder<FollowerIndexParameters>> fn) An object that encapsulates cross-cluster replication parameters. If the follower index's status is paused, this object is omitted.API name:
parameters -
remoteCluster
Required - The remote cluster that contains the leader index.API name:
remote_cluster -
status
Required - The status of the index following:activeorpaused.API name:
status -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<FollowerIndex.Builder>
-
build
Builds aFollowerIndex.- Specified by:
buildin interfaceObjectBuilder<FollowerIndex>- Throws:
NullPointerException- if some of the required fields are null.
-