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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aHint.final Hint.BuilderA single key-value pair to match against the labels section of a profile.final Hint.BuilderA single key-value pair to match against the labels section of a profile.protected Hint.Builderself()final Hint.BuilderA list of profile UIDs to match against.final Hint.BuilderA list of profile UIDs to match against.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
-
uids
A list of profile UIDs to match against.API name:
uidsAdds all elements of
listtouids. -
uids
A list of profile UIDs to match against.API name:
uidsAdds 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:
labelsAdds all entries of
maptolabels. -
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:
labelsAdds an entry to
labels. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Hint.Builder>
-
build
Builds aHint.- Specified by:
buildin interfaceObjectBuilder<Hint>- Throws:
NullPointerException- if some of the required fields are null.
-