Class UpdateUserProfileDataRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<UpdateUserProfileDataRequest.Builder>
co.elastic.clients.elasticsearch.security.UpdateUserProfileDataRequest.Builder
- All Implemented Interfaces:
WithJson<UpdateUserProfileDataRequest.Builder>
,ObjectBuilder<UpdateUserProfileDataRequest>
- Enclosing class:
- UpdateUserProfileDataRequest
public static class UpdateUserProfileDataRequest.Builder extends RequestBase.AbstractBuilder<UpdateUserProfileDataRequest.Builder> implements ObjectBuilder<UpdateUserProfileDataRequest>
Builder for
UpdateUserProfileDataRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description UpdateUserProfileDataRequest
build()
Builds aUpdateUserProfileDataRequest
.UpdateUserProfileDataRequest.Builder
data(java.lang.String key, JsonData value)
Non-searchable data that you want to associate with the user profile.UpdateUserProfileDataRequest.Builder
data(java.util.Map<java.lang.String,JsonData> map)
Non-searchable data that you want to associate with the user profile.UpdateUserProfileDataRequest.Builder
ifPrimaryTerm(java.lang.Long value)
Only perform the operation if the document has this primary term.UpdateUserProfileDataRequest.Builder
ifSeqNo(java.lang.Long value)
Only perform the operation if the document has this sequence number.UpdateUserProfileDataRequest.Builder
labels(java.lang.String key, JsonData value)
Searchable data that you want to associate with the user profile.UpdateUserProfileDataRequest.Builder
labels(java.util.Map<java.lang.String,JsonData> map)
Searchable data that you want to associate with the user profile.UpdateUserProfileDataRequest.Builder
refresh(Refresh value)
If 'true', Elasticsearch refreshes the affected shards to make this operation visible to search, if 'wait_for' then wait for a refresh to make this operation visible to search, if 'false' do nothing with refreshes.protected UpdateUserProfileDataRequest.Builder
self()
UpdateUserProfileDataRequest.Builder
uid(java.lang.String value)
Required - A unique identifier for the user profile.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods 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
public final UpdateUserProfileDataRequest.Builder data(java.util.Map<java.lang.String,JsonData> map)Non-searchable data that you want to associate with the user profile. This field supports a nested data structure.API name:
data
Adds all entries of
map
todata
. -
data
Non-searchable data that you want to associate with the user profile. This field supports a nested data structure.API name:
data
Adds an entry to
data
. -
ifPrimaryTerm
Only perform the operation if the document has this primary term.API name:
if_primary_term
-
ifSeqNo
Only perform the operation if the document has this sequence number.API name:
if_seq_no
-
labels
public final UpdateUserProfileDataRequest.Builder labels(java.util.Map<java.lang.String,JsonData> map)Searchable data that you want to associate with the user profile. This field supports a nested data structure.API name:
labels
Adds all entries of
map
tolabels
. -
labels
Searchable data that you want to associate with the user profile. This field supports a nested data structure.API name:
labels
Adds an entry to
labels
. -
refresh
If 'true', Elasticsearch refreshes the affected shards to make this operation visible to search, if 'wait_for' then wait for a refresh to make this operation visible to search, if 'false' do nothing with refreshes.API name:
refresh
-
uid
Required - A unique identifier for the user profile.API name:
uid
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<UpdateUserProfileDataRequest.Builder>
-
build
Builds aUpdateUserProfileDataRequest
.- Specified by:
build
in interfaceObjectBuilder<UpdateUserProfileDataRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-