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 Constructor Description Builder() -
Method Summary
Modifier and Type Method Description SuggestUserProfilesResponsebuild()Builds aSuggestUserProfilesResponse.SuggestUserProfilesResponse.Builderprofiles(UserProfile value, UserProfile... values)Required - API name:profilesSuggestUserProfilesResponse.Builderprofiles(java.util.function.Function<UserProfile.Builder,ObjectBuilder<UserProfile>> fn)Required - API name:profilesSuggestUserProfilesResponse.Builderprofiles(java.util.List<UserProfile> list)Required - API name:profilesprotected SuggestUserProfilesResponse.Builderself()SuggestUserProfilesResponse.Buildertook(long value)Required - API name:tookSuggestUserProfilesResponse.Buildertotal(TotalUserProfiles value)Required - API name:totalSuggestUserProfilesResponse.Buildertotal(java.util.function.Function<TotalUserProfiles.Builder,ObjectBuilder<TotalUserProfiles>> fn)Required - API name:totalMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
total
Required - API name:total -
total
public final SuggestUserProfilesResponse.Builder total(java.util.function.Function<TotalUserProfiles.Builder,ObjectBuilder<TotalUserProfiles>> fn)Required - API name:total -
took
Required - API name:took -
profiles
Required - API name:profilesAdds all elements of
listtoprofiles. -
profiles
public final SuggestUserProfilesResponse.Builder profiles(UserProfile value, UserProfile... values)Required - API name:profilesAdds one or more values to
profiles. -
profiles
public final SuggestUserProfilesResponse.Builder profiles(java.util.function.Function<UserProfile.Builder,ObjectBuilder<UserProfile>> fn)Required - 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:
java.lang.NullPointerException- if some of the required fields are null.
-