Class Profile.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.search.Profile.Builder
- All Implemented Interfaces:
CopyableBuilder<Profile.Builder,,Profile> MutableBuilder<Profile.Builder,,Profile> ObjectBuilder<Profile>
- Enclosing class:
Profile
public static class Profile.Builder
extends ObjectBuilderBase
implements CopyableBuilder<Profile.Builder,Profile>
Builder for
Profile.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aProfile.copy()Create a new builderCopyableBuilderthat is a copy of this one.final Profile.BuilderRequired - API name:shardsfinal Profile.Buildershards(List<ShardProfile> list) Required - API name:shardsfinal Profile.Buildershards(ShardProfile value, ShardProfile... values) Required - API name:shardsMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<Profile.Builder,Profile> - Returns:
- a new builder instance.
-
shards
Required - API name:shardsAdds all elements of
listtoshards. -
shards
Required - API name:shardsAdds one or more values to
shards. -
shards
@Nonnull public final Profile.Builder shards(Function<ShardProfile.Builder, ObjectBuilder<ShardProfile>> fn) Required - API name:shardsAdds a value to
shardsusing a builder lambda. -
build
Builds aProfile.- Specified by:
buildin interfaceObjectBuilder<Profile>- Throws:
NullPointerException- if some of the required fields are null.
-