Class VerifyRepositoryResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<VerifyRepositoryResponse.Builder>
co.elastic.clients.elasticsearch.snapshot.VerifyRepositoryResponse.Builder
- All Implemented Interfaces:
WithJson<VerifyRepositoryResponse.Builder>,ObjectBuilder<VerifyRepositoryResponse>
- Enclosing class:
- VerifyRepositoryResponse
public static class VerifyRepositoryResponse.Builder
extends WithJsonObjectBuilderBase<VerifyRepositoryResponse.Builder>
implements ObjectBuilder<VerifyRepositoryResponse>
Builder for
VerifyRepositoryResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aVerifyRepositoryResponse.nodes(String key, CompactNodeInfo value) Required - Information about the nodes connected to the snapshot repository.Required - Information about the nodes connected to the snapshot repository.nodes(Map<String, CompactNodeInfo> map) Required - Information about the nodes connected to the snapshot repository.protected VerifyRepositoryResponse.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
-
nodes
Required - Information about the nodes connected to the snapshot repository. The key is the ID of the node.API name:
nodesAdds all entries of
maptonodes. -
nodes
Required - Information about the nodes connected to the snapshot repository. The key is the ID of the node.API name:
nodesAdds an entry to
nodes. -
nodes
public final VerifyRepositoryResponse.Builder nodes(String key, Function<CompactNodeInfo.Builder, ObjectBuilder<CompactNodeInfo>> fn) Required - Information about the nodes connected to the snapshot repository. The key is the ID of the node.API name:
nodesAdds an entry to
nodesusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<VerifyRepositoryResponse.Builder>
-
build
Builds aVerifyRepositoryResponse.- Specified by:
buildin interfaceObjectBuilder<VerifyRepositoryResponse>- Throws:
NullPointerException- if some of the required fields are null.
-