Class Profile.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.core.search.Profile.Builder
-
- All Implemented Interfaces:
ObjectBuilder<Profile>
- Enclosing class:
- Profile
public static class Profile.Builder extends ObjectBuilderBase implements ObjectBuilder<Profile>
Builder forProfile.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Profilebuild()Builds aProfile.Profile.Buildershards(java.util.function.Function<ShardProfile.Builder,ObjectBuilder<ShardProfile>> fn)Required - API name:shardsProfile.Buildershards(java.util.List<ShardProfile> list)Required - API name:shardsProfile.Buildershards(ShardProfile value, ShardProfile... values)Required - API name:shards-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
shards
public final Profile.Builder shards(java.util.List<ShardProfile> list)
Required - API name:shardsAdds all elements of
listtoshards.
-
shards
public final Profile.Builder shards(ShardProfile value, ShardProfile... values)
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.
-
build
public Profile build()
Builds aProfile.- Specified by:
buildin interfaceObjectBuilder<Profile>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-