Class Profile.Builder
java.lang.Object
co.elastic.clients.elasticsearch._core.search.Profile.Builder
- All Implemented Interfaces:
ObjectBuilder<Profile>
- Enclosing class:
- Profile
public static class Profile.Builder extends java.lang.Object implements ObjectBuilder<Profile>
Builder for
Profile
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description Profile.Builder
addShards(ShardProfile value)
Add a value toshards(List)
, creating the list if needed.Profile.Builder
addShards(java.util.function.Function<ShardProfile.Builder,ObjectBuilder<ShardProfile>> fn)
Add a value toshards(List)
, creating the list if needed.Profile
build()
Builds aProfile
.Profile.Builder
shards(ShardProfile... value)
Required - API name:shards
Profile.Builder
shards(java.util.function.Function<ShardProfile.Builder,ObjectBuilder<ShardProfile>> fn)
Setshards(List)
to a singleton list.Profile.Builder
shards(java.util.List<ShardProfile> value)
Required - API name:shards
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
-
shards
Required - API name:shards
-
shards
Required - API name:shards
-
addShards
Add a value toshards(List)
, creating the list if needed. -
shards
public Profile.Builder shards(java.util.function.Function<ShardProfile.Builder,ObjectBuilder<ShardProfile>> fn)Setshards(List)
to a singleton list. -
addShards
public Profile.Builder addShards(java.util.function.Function<ShardProfile.Builder,ObjectBuilder<ShardProfile>> fn)Add a value toshards(List)
, creating the list if needed. -
build
Builds aProfile
.- Specified by:
build
in interfaceObjectBuilder<Profile>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-