Class SuggestUserProfilesRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SuggestUserProfilesRequest.Builder>
co.elastic.clients.elasticsearch.security.SuggestUserProfilesRequest.Builder
- All Implemented Interfaces:
WithJson<SuggestUserProfilesRequest.Builder>,ObjectBuilder<SuggestUserProfilesRequest>
- Enclosing class:
- SuggestUserProfilesRequest
public static class SuggestUserProfilesRequest.Builder extends WithJsonObjectBuilderBase<SuggestUserProfilesRequest.Builder> implements ObjectBuilder<SuggestUserProfilesRequest>
Builder for
SuggestUserProfilesRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description SuggestUserProfilesRequestbuild()Builds aSuggestUserProfilesRequest.SuggestUserProfilesRequest.Builderdata(java.lang.String value, java.lang.String... values)List of filters for thedatafield of the profile document.SuggestUserProfilesRequest.Builderdata(java.util.List<java.lang.String> list)List of filters for thedatafield of the profile document.SuggestUserProfilesRequest.Buildername(java.lang.String value)Query string used to match name-related fields in user profile documents.protected SuggestUserProfilesRequest.Builderself()SuggestUserProfilesRequest.Buildersize(java.lang.Long value)Number of profiles to return.Methods 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
-
data
List of filters for thedatafield of the profile document. To return all content usedata=*. To return a subset of content usedata=<key>to retrieve content nested under the specified<key>. By default returns nodatacontent.API name:
dataAdds all elements of
listtodata. -
data
public final SuggestUserProfilesRequest.Builder data(java.lang.String value, java.lang.String... values)List of filters for thedatafield of the profile document. To return all content usedata=*. To return a subset of content usedata=<key>to retrieve content nested under the specified<key>. By default returns nodatacontent.API name:
dataAdds one or more values to
data. -
name
Query string used to match name-related fields in user profile documents. Name-related fields are the user'susername,full_name, andemail.API name:
name -
size
Number of profiles to return.API name:
size -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<SuggestUserProfilesRequest.Builder>
-
build
Builds aSuggestUserProfilesRequest.- Specified by:
buildin interfaceObjectBuilder<SuggestUserProfilesRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-