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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSuggestUserProfilesResponse.profiles(UserProfile value, UserProfile... values) Required - A list of profile documents, ordered by relevance, that match the search criteria.Required - A list of profile documents, ordered by relevance, that match the search criteria.profiles(List<UserProfile> list) Required - A list of profile documents, ordered by relevance, that match the search criteria.protected SuggestUserProfilesResponse.Builderself()took(long value) Required - The number of milliseconds it took Elasticsearch to run the request.total(TotalUserProfiles value) Required - Metadata about the number of matching profiles.Required - Metadata about the number of matching profiles.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
total
Required - Metadata about the number of matching profiles.API name:
total -
total
public final SuggestUserProfilesResponse.Builder total(Function<TotalUserProfiles.Builder, ObjectBuilder<TotalUserProfiles>> fn) Required - Metadata about the number of matching profiles.API name:
total -
took
Required - The number of milliseconds it took Elasticsearch to run the request.API name:
took -
profiles
Required - A list of profile documents, ordered by relevance, that match the search criteria.API name:
profilesAdds all elements of
listtoprofiles. -
profiles
Required - A list of profile documents, ordered by relevance, that match the search criteria.API name:
profilesAdds one or more values to
profiles. -
profiles
public final SuggestUserProfilesResponse.Builder profiles(Function<UserProfile.Builder, ObjectBuilder<UserProfile>> fn) Required - A list of profile documents, ordered by relevance, that match the search criteria.API name:
profilesAdds a value to
profilesusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<SuggestUserProfilesResponse.Builder>
-
build
Builds aSuggestUserProfilesResponse.- Specified by:
buildin interfaceObjectBuilder<SuggestUserProfilesResponse>- Throws:
NullPointerException- if some of the required fields are null.
-