Class Hint.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Hint.Builder>
co.elastic.clients.elasticsearch.security.suggest_user_profiles.Hint.Builder
- All Implemented Interfaces:
WithJson<Hint.Builder>
,ObjectBuilder<Hint>
- Enclosing class:
- Hint
public static class Hint.Builder
extends WithJsonObjectBuilderBase<Hint.Builder>
implements ObjectBuilder<Hint>
Builder for
Hint
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aHint
.final Hint.Builder
A single key-value pair to match against the labels section of a profile.final Hint.Builder
A single key-value pair to match against the labels section of a profile.protected Hint.Builder
self()
final Hint.Builder
A list of Profile UIDs to match against.final Hint.Builder
A list of Profile UIDs to match against.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
-
uids
A list of Profile UIDs to match against.API name:
uids
Adds all elements of
list
touids
. -
uids
A list of Profile UIDs to match against.API name:
uids
Adds one or more values to
uids
. -
labels
A single key-value pair to match against the labels section of a profile. A profile is considered matching if it matches at least one of the strings.API name:
labels
Adds all entries of
map
tolabels
. -
labels
A single key-value pair to match against the labels section of a profile. A profile is considered matching if it matches at least one of the strings.API name:
labels
Adds an entry to
labels
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<Hint.Builder>
-
build
Builds aHint
.- Specified by:
build
in interfaceObjectBuilder<Hint>
- Throws:
NullPointerException
- if some of the required fields are null.
-