Class FollowInfoResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ccr.FollowInfoResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<FollowInfoResponse>
- Enclosing class:
- FollowInfoResponse
public static class FollowInfoResponse.Builder extends java.lang.Object implements ObjectBuilder<FollowInfoResponse>
Builder for
FollowInfoResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description FollowInfoResponse.Builder
addFollowerIndices(FollowerIndex value)
Add a value tofollowerIndices(List)
, creating the list if needed.FollowInfoResponse.Builder
addFollowerIndices(java.util.function.Function<FollowerIndex.Builder,ObjectBuilder<FollowerIndex>> fn)
Add a value tofollowerIndices(List)
, creating the list if needed.FollowInfoResponse
build()
Builds aFollowInfoResponse
.FollowInfoResponse.Builder
followerIndices(FollowerIndex... value)
Required - API name:follower_indices
FollowInfoResponse.Builder
followerIndices(java.util.function.Function<FollowerIndex.Builder,ObjectBuilder<FollowerIndex>> fn)
SetfollowerIndices(List)
to a singleton list.FollowInfoResponse.Builder
followerIndices(java.util.List<FollowerIndex> value)
Required - API name:follower_indices
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
followerIndices
Required - API name:follower_indices
-
followerIndices
Required - API name:follower_indices
-
addFollowerIndices
Add a value tofollowerIndices(List)
, creating the list if needed. -
followerIndices
public FollowInfoResponse.Builder followerIndices(java.util.function.Function<FollowerIndex.Builder,ObjectBuilder<FollowerIndex>> fn)SetfollowerIndices(List)
to a singleton list. -
addFollowerIndices
public FollowInfoResponse.Builder addFollowerIndices(java.util.function.Function<FollowerIndex.Builder,ObjectBuilder<FollowerIndex>> fn)Add a value tofollowerIndices(List)
, creating the list if needed. -
build
Builds aFollowInfoResponse
.- Specified by:
build
in interfaceObjectBuilder<FollowInfoResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-