Class UpdateSettingsRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<UpdateSettingsRequest.Builder>
co.elastic.clients.elasticsearch.security.UpdateSettingsRequest.Builder
- All Implemented Interfaces:
WithJson<UpdateSettingsRequest.Builder>
,ObjectBuilder<UpdateSettingsRequest>
- Enclosing class:
- UpdateSettingsRequest
public static class UpdateSettingsRequest.Builder
extends RequestBase.AbstractBuilder<UpdateSettingsRequest.Builder>
implements ObjectBuilder<UpdateSettingsRequest>
Builder for
UpdateSettingsRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aUpdateSettingsRequest
.masterTimeout
(Time value) The period to wait for a connection to the master node.The period to wait for a connection to the master node.security
(SecuritySettings value) Settings for the index used for most security configuration, including native realm users and roles configured with the API.Settings for the index used for most security configuration, including native realm users and roles configured with the API.securityProfile
(SecuritySettings value) Settings for the index used to store profile information.Settings for the index used to store profile information.securityTokens
(SecuritySettings value) Settings for the index used to store tokens.Settings for the index used to store tokens.protected UpdateSettingsRequest.Builder
self()
The period to wait for a response.The period to wait for a response.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
-
masterTimeout
The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout
-
masterTimeout
public final UpdateSettingsRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout
-
security
Settings for the index used for most security configuration, including native realm users and roles configured with the API.API name:
security
-
security
public final UpdateSettingsRequest.Builder security(Function<SecuritySettings.Builder, ObjectBuilder<SecuritySettings>> fn) Settings for the index used for most security configuration, including native realm users and roles configured with the API.API name:
security
-
securityProfile
Settings for the index used to store profile information.API name:
security-profile
-
securityProfile
public final UpdateSettingsRequest.Builder securityProfile(Function<SecuritySettings.Builder, ObjectBuilder<SecuritySettings>> fn) Settings for the index used to store profile information.API name:
security-profile
-
securityTokens
Settings for the index used to store tokens.API name:
security-tokens
-
securityTokens
public final UpdateSettingsRequest.Builder securityTokens(Function<SecuritySettings.Builder, ObjectBuilder<SecuritySettings>> fn) Settings for the index used to store tokens.API name:
security-tokens
-
timeout
The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout
-
timeout
The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<UpdateSettingsRequest.Builder>
-
build
Builds aUpdateSettingsRequest
.- Specified by:
build
in interfaceObjectBuilder<UpdateSettingsRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-