Class Profile.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Profile.Builder>
co.elastic.clients.elasticsearch.core.search.Profile.Builder
- All Implemented Interfaces:
WithJson<Profile.Builder>,ObjectBuilder<Profile>
- Enclosing class:
- Profile
public static class Profile.Builder extends WithJsonObjectBuilderBase<Profile.Builder> implements ObjectBuilder<Profile>
Builder for
Profile.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description Profilebuild()Builds aProfile.protected Profile.Builderself()Profile.Buildershards(ShardProfile value, ShardProfile... values)Required - API name:shardsProfile.Buildershards(java.util.function.Function<ShardProfile.Builder,ObjectBuilder<ShardProfile>> fn)Required - API name:shardsProfile.Buildershards(java.util.List<ShardProfile> list)Required - API name:shardsMethods 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
-
shards
Required - API name:shardsAdds all elements of
listtoshards. -
shards
Required - API name:shardsAdds one or more values to
shards. -
shards
public final Profile.Builder shards(java.util.function.Function<ShardProfile.Builder,ObjectBuilder<ShardProfile>> fn)Required - API name:shardsAdds a value to
shardsusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Profile.Builder>
-
build
Builds aProfile.- Specified by:
buildin interfaceObjectBuilder<Profile>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-