Class SuggestUserProfilesResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SuggestUserProfilesResponse.Builder>
co.elastic.clients.elasticsearch.security.SuggestUserProfilesResponse.Builder
- All Implemented Interfaces:
WithJson<SuggestUserProfilesResponse.Builder>
,ObjectBuilder<SuggestUserProfilesResponse>
- Enclosing class:
- SuggestUserProfilesResponse
public static class SuggestUserProfilesResponse.Builder
extends WithJsonObjectBuilderBase<SuggestUserProfilesResponse.Builder>
implements ObjectBuilder<SuggestUserProfilesResponse>
Builder for
SuggestUserProfilesResponse
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aSuggestUserProfilesResponse
.profiles
(UserProfile value, UserProfile... values) Required - API name:profiles
Required - API name:profiles
profiles
(List<UserProfile> list) Required - API name:profiles
protected SuggestUserProfilesResponse.Builder
self()
took
(long value) Required - API name:took
total
(TotalUserProfiles value) Required - API name:total
Required - API name:total
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
total
Required - API name:total
-
total
public final SuggestUserProfilesResponse.Builder total(Function<TotalUserProfiles.Builder, ObjectBuilder<TotalUserProfiles>> fn) Required - API name:total
-
took
Required - API name:took
-
profiles
Required - API name:profiles
Adds all elements of
list
toprofiles
. -
profiles
Required - API name:profiles
Adds one or more values to
profiles
. -
profiles
public final SuggestUserProfilesResponse.Builder profiles(Function<UserProfile.Builder, ObjectBuilder<UserProfile>> fn) Required - API name:profiles
Adds a value to
profiles
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<SuggestUserProfilesResponse.Builder>
-
build
Builds aSuggestUserProfilesResponse
.- Specified by:
build
in interfaceObjectBuilder<SuggestUserProfilesResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-