Class Profile.Builder
java.lang.Object
org.opensearch.client.opensearch._global.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.-
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 Profile.BuilderaddShards(java.util.function.Function<ShardProfile.Builder,ObjectBuilder<ShardProfile>> fn)Add a value toshards(List), creating the list if needed.Profile.BuilderaddShards(ShardProfile value)Add a value toshards(List), creating the list if needed.Profilebuild()Builds aProfile.Profile.Buildershards(java.util.function.Function<ShardProfile.Builder,ObjectBuilder<ShardProfile>> fn)Setshards(List)to a singleton list.Profile.Buildershards(java.util.List<ShardProfile> value)API name:shardsProfile.Buildershards(ShardProfile... value)API name:shards
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
shards
API name:shards -
shards
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.
-