Class Jobs.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Jobs.Builder>
co.elastic.clients.elasticsearch.xpack.usage.Jobs.Builder
- All Implemented Interfaces:
WithJson<Jobs.Builder>,ObjectBuilder<Jobs>
- Enclosing class:
- Jobs
public static class Jobs.Builder extends WithJsonObjectBuilderBase<Jobs.Builder> implements ObjectBuilder<Jobs>
Builder for
Jobs.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description Jobs.Builderall(AllJobs value)API name:_allJobs.Builderall(java.util.function.Function<AllJobs.Builder,ObjectBuilder<AllJobs>> fn)API name:_allJobsbuild()Builds aJobs.Jobs.Builderjobs(java.lang.String key, Job value)Detailed job dataJobs.Builderjobs(java.lang.String key, java.util.function.Function<Job.Builder,ObjectBuilder<Job>> fn)Detailed job dataJobs.Builderjobs(java.util.Map<java.lang.String,Job> map)Detailed job dataprotected Jobs.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
jobs
Detailed job dataAdds all entries of
maptojobs. -
jobs
Detailed job dataAdds an entry to
jobs. -
jobs
public final Jobs.Builder jobs(java.lang.String key, java.util.function.Function<Job.Builder,ObjectBuilder<Job>> fn)Detailed job dataAdds an entry to
jobsusing a builder lambda. -
all
API name:_all -
all
public final Jobs.Builder all(java.util.function.Function<AllJobs.Builder,ObjectBuilder<AllJobs>> fn)API name:_all -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Jobs.Builder>
-
build
Builds aJobs.- Specified by:
buildin interfaceObjectBuilder<Jobs>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-