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.Builder
addIndex(java.lang.String value)
Add a value toindex(List)
, creating the list if needed.ExploreRequest.Builder
addType(java.lang.String value)
Add a value totype(List)
, creating the list if needed.ExploreRequest.Builder
addVertices(VertexDefinition value)
Add a value tovertices(List)
, creating the list if needed.ExploreRequest.Builder
addVertices(java.util.function.Function<VertexDefinition.Builder,ObjectBuilder<VertexDefinition>> fn)
Add a value tovertices(List)
, creating the list if needed.ExploreRequest
build()
Builds aExploreRequest
.ExploreRequest.Builder
connections(Hop value)
API name:connections
ExploreRequest.Builder
connections(java.util.function.Function<Hop.Builder,ObjectBuilder<Hop>> fn)
API name:connections
ExploreRequest.Builder
controls(ExploreControls value)
API name:controls
ExploreRequest.Builder
controls(java.util.function.Function<ExploreControls.Builder,ObjectBuilder<ExploreControls>> fn)
API name:controls
ExploreRequest.Builder
index(java.lang.String... value)
Required - A comma-separated list of index names to search; use_all
or empty string to perform the operation on all indicesExploreRequest.Builder
index(java.util.List<java.lang.String> value)
Required - A comma-separated list of index names to search; use_all
or empty string to perform the operation on all indicesExploreRequest.Builder
query(Query value)
API name:query
ExploreRequest.Builder
query(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)
API name:query
ExploreRequest.Builder
routing(java.lang.String value)
Specific routing valueExploreRequest.Builder
timeout(java.lang.String value)
Explicit operation timeoutExploreRequest.Builder
type(java.lang.String... value)
A comma-separated list of document types to search; leave empty to perform the operation on all typesExploreRequest.Builder
type(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.Builder
vertices(VertexDefinition... value)
API name:vertices
ExploreRequest.Builder
vertices(java.util.function.Function<VertexDefinition.Builder,ObjectBuilder<VertexDefinition>> fn)
Setvertices(List)
to a singleton list.ExploreRequest.Builder
vertices(java.util.List<VertexDefinition> value)
API name:vertices
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
-
index
Required - A comma-separated list of index names to search; use_all
or empty string to perform the operation on all indicesAPI name:
index
-
index
Required - A comma-separated list of index names to search; use_all
or empty string to perform the operation on all indicesAPI name:
index
-
addIndex
Add a value toindex(List)
, creating the list if needed. -
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. -
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. -
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. -
build
Builds aExploreRequest
.- Specified by:
build
in interfaceObjectBuilder<ExploreRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-