Class Info.Builder
java.lang.Object
org.opensearch.client.opensearch.task.Info.Builder
- All Implemented Interfaces:
ObjectBuilder<Info>
- Enclosing class:
- Info
public static class Info.Builder extends java.lang.Object implements ObjectBuilder<Info>
Builder for
Info
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V>
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description Info.Builder
action(java.lang.String value)
API name:action
Info.Builder
addChildren(java.util.function.Function<Info.Builder,ObjectBuilder<Info>> fn)
Add a value tochildren(List)
, creating the list if needed.Info.Builder
addChildren(Info value)
Add a value tochildren(List)
, creating the list if needed.Info
build()
Builds aInfo
.Info.Builder
cancellable(java.lang.Boolean value)
API name:cancellable
Info.Builder
children(java.util.function.Function<Info.Builder,ObjectBuilder<Info>> fn)
Setchildren(List)
to a singleton list.Info.Builder
children(java.util.List<Info> value)
API name:children
Info.Builder
children(Info... value)
API name:children
Info.Builder
description(java.lang.String value)
API name:description
Info.Builder
headers(java.util.Map<java.lang.String,java.util.List<java.lang.String>> value)
API name:headers
Info.Builder
id(java.lang.Number value)
API name:id
Info.Builder
node(java.lang.String value)
API name:node
Info.Builder
parentTaskId(java.lang.String value)
API name:parent_task_id
Info.Builder
putHeaders(java.lang.String key, java.util.List<java.lang.String> value)
Add a key/value toheaders(Map)
, creating the map if needed.Info.Builder
runningTimeInNanos(java.lang.Number value)
API name:running_time_in_nanos
Info.Builder
startTimeInMillis(java.lang.Number value)
API name:start_time_in_millis
Info.Builder
status(java.util.function.Function<Status.Builder,ObjectBuilder<Status>> fn)
API name:status
Info.Builder
status(Status value)
API name:status
Info.Builder
type(java.lang.String value)
API name:type
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
API name:action
-
cancellable
API name:cancellable
-
children
API name:children
-
children
API name:children
-
addChildren
Add a value tochildren(List)
, creating the list if needed. -
children
Setchildren(List)
to a singleton list. -
addChildren
Add a value tochildren(List)
, creating the list if needed. -
description
API name:description
-
headers
public Info.Builder headers(java.util.Map<java.lang.String,java.util.List<java.lang.String>> value)API name:headers
-
putHeaders
Add a key/value toheaders(Map)
, creating the map if needed. -
id
API name:id
-
node
API name:node
-
runningTimeInNanos
API name:running_time_in_nanos
-
startTimeInMillis
API name:start_time_in_millis
-
status
API name:status
-
status
API name:status
-
type
API name:type
-
parentTaskId
API name:parent_task_id
-
build
Builds aInfo
.- Specified by:
build
in interfaceObjectBuilder<Info>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-