Class AuthenticatedUser.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.security.User.AbstractBuilder<AuthenticatedUser.Builder>
co.elastic.clients.elasticsearch.security.get_token.AuthenticatedUser.Builder
- All Implemented Interfaces:
WithJson<AuthenticatedUser.Builder>
,ObjectBuilder<AuthenticatedUser>
- Enclosing class:
- AuthenticatedUser
public static class AuthenticatedUser.Builder extends User.AbstractBuilder<AuthenticatedUser.Builder> implements ObjectBuilder<AuthenticatedUser>
Builder for
AuthenticatedUser
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Methods inherited from class co.elastic.clients.elasticsearch.security.User.AbstractBuilder
email, enabled, fullName, metadata, metadata, roles, roles, username
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
-
authenticationRealm
Required - API name:authentication_realm
-
authenticationRealm
public final AuthenticatedUser.Builder authenticationRealm(java.util.function.Function<UserRealm.Builder,ObjectBuilder<UserRealm>> fn)Required - API name:authentication_realm
-
lookupRealm
Required - API name:lookup_realm
-
lookupRealm
public final AuthenticatedUser.Builder lookupRealm(java.util.function.Function<UserRealm.Builder,ObjectBuilder<UserRealm>> fn)Required - API name:lookup_realm
-
authenticationProvider
public final AuthenticatedUser.Builder authenticationProvider(@Nullable AuthenticationProvider value)API name:authentication_provider
-
authenticationProvider
public final AuthenticatedUser.Builder authenticationProvider(java.util.function.Function<AuthenticationProvider.Builder,ObjectBuilder<AuthenticationProvider>> fn)API name:authentication_provider
-
authenticationType
Required - API name:authentication_type
-
self
- Specified by:
self
in classUser.AbstractBuilder<AuthenticatedUser.Builder>
-
build
Builds aAuthenticatedUser
.- Specified by:
build
in interfaceObjectBuilder<AuthenticatedUser>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-