Class ExploreRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.graph.ExploreRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<ExploreRequest>
- Enclosing class:
- ExploreRequest
public static class ExploreRequest.Builder extends java.lang.Object implements ObjectBuilder<ExploreRequest>
Builder for
ExploreRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description ExploreRequest.BuilderaddIndex(java.lang.String value)Add a value toindex(List), creating the list if needed.ExploreRequest.BuilderaddType(java.lang.String value)Add a value totype(List), creating the list if needed.ExploreRequest.BuilderaddVertices(VertexDefinition value)Add a value tovertices(List), creating the list if needed.ExploreRequest.BuilderaddVertices(java.util.function.Function<VertexDefinition.Builder,ObjectBuilder<VertexDefinition>> fn)Add a value tovertices(List), creating the list if needed.ExploreRequestbuild()Builds aExploreRequest.ExploreRequest.Builderconnections(Hop value)API name:connectionsExploreRequest.Builderconnections(java.util.function.Function<Hop.Builder,ObjectBuilder<Hop>> fn)API name:connectionsExploreRequest.Buildercontrols(ExploreControls value)API name:controlsExploreRequest.Buildercontrols(java.util.function.Function<ExploreControls.Builder,ObjectBuilder<ExploreControls>> fn)API name:controlsExploreRequest.Builderindex(java.lang.String... value)A comma-separated list of index names to search; use_allor empty string to perform the operation on all indicesExploreRequest.Builderindex(java.util.List<java.lang.String> value)A comma-separated list of index names to search; use_allor empty string to perform the operation on all indicesExploreRequest.Builderquery(Query value)API name:queryExploreRequest.Builderquery(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)API name:queryExploreRequest.Builderrouting(java.lang.String value)Specific routing valueExploreRequest.Buildertimeout(java.lang.String value)Explicit operation timeoutExploreRequest.Buildertype(java.lang.String... value)A comma-separated list of document types to search; leave empty to perform the operation on all typesExploreRequest.Buildertype(java.util.List<java.lang.String> value)A comma-separated list of document types to search; leave empty to perform the operation on all typesExploreRequest.Buildervertices(VertexDefinition... value)API name:verticesExploreRequest.Buildervertices(java.util.function.Function<VertexDefinition.Builder,ObjectBuilder<VertexDefinition>> fn)Setvertices(List)to a singleton list.ExploreRequest.Buildervertices(java.util.List<VertexDefinition> value)API name:verticesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
A comma-separated list of index names to search; use_allor empty string to perform the operation on all indicesAPI name:
index -
index
A comma-separated list of index names to search; use_allor empty string to perform the operation on all indicesAPI name:
index -
addIndex
Add a value toindex(List), creating the list if needed. 4 -
type
A comma-separated list of document types to search; leave empty to perform the operation on all typesAPI name:
type -
type
A comma-separated list of document types to search; leave empty to perform the operation on all typesAPI name:
type -
addType
Add a value totype(List), creating the list if needed. 4 -
routing
Specific routing valueAPI name:
routing -
timeout
Explicit operation timeoutAPI name:
timeout -
connections
API name:connections -
connections
public ExploreRequest.Builder connections(java.util.function.Function<Hop.Builder,ObjectBuilder<Hop>> fn)API name:connections -
controls
API name:controls -
controls
public ExploreRequest.Builder controls(java.util.function.Function<ExploreControls.Builder,ObjectBuilder<ExploreControls>> fn)API name:controls -
query
API name:query -
query
public ExploreRequest.Builder query(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)API name:query -
vertices
API name:vertices -
vertices
API name:vertices -
addVertices
Add a value tovertices(List), creating the list if needed. 4 -
vertices
public ExploreRequest.Builder vertices(java.util.function.Function<VertexDefinition.Builder,ObjectBuilder<VertexDefinition>> fn)Setvertices(List)to a singleton list. -
addVertices
public ExploreRequest.Builder addVertices(java.util.function.Function<VertexDefinition.Builder,ObjectBuilder<VertexDefinition>> fn)Add a value tovertices(List), creating the list if needed. 5 -
build
Builds aExploreRequest.- Specified by:
buildin interfaceObjectBuilder<ExploreRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-