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.BuilderaddShards(ShardProfile value)Add a value toshards(List), creating the list if needed.Profile.BuilderaddShards(java.util.function.Function<ShardProfile.Builder,ObjectBuilder<ShardProfile>> fn)Add a value toshards(List), creating the list if needed.Profilebuild()Builds aProfile.Profile.Buildershards(ShardProfile... value)Required - API name:shardsProfile.Buildershards(java.util.function.Function<ShardProfile.Builder,ObjectBuilder<ShardProfile>> fn)Setshards(List)to a singleton list.Profile.Buildershards(java.util.List<ShardProfile> value)Required - API name:shardsMethods 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:
buildin interfaceObjectBuilder<Profile>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-