Class GetUserRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.security.GetUserRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<GetUserRequest>
- Enclosing class:
- GetUserRequest
public static class GetUserRequest.Builder extends java.lang.Object implements ObjectBuilder<GetUserRequest>
Builder for
GetUserRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description GetUserRequest.Builder
addUsername(java.lang.String value)
Add a value tousername(List)
, creating the list if needed.GetUserRequest
build()
Builds aGetUserRequest
.GetUserRequest.Builder
username(java.lang.String... value)
An identifier for the user.GetUserRequest.Builder
username(java.util.List<java.lang.String> value)
An identifier for the user.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
-
username
An identifier for the user. You can specify multiple usernames as a comma-separated list. If you omit this parameter, the API retrieves information about all users.API name:
username
-
username
An identifier for the user. You can specify multiple usernames as a comma-separated list. If you omit this parameter, the API retrieves information about all users.API name:
username
-
addUsername
Add a value tousername(List)
, creating the list if needed. -
build
Builds aGetUserRequest
.- Specified by:
build
in interfaceObjectBuilder<GetUserRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-