Class ApiKey.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.security.authenticate.ApiKey.Builder
- All Implemented Interfaces:
ObjectBuilder<ApiKey>
- Enclosing class:
- ApiKey
public static class ApiKey.Builder extends ObjectBuilderBase implements ObjectBuilder<ApiKey>
Builder for
ApiKey
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ApiKey
build()
Builds aApiKey
.ApiKey.Builder
id(java.lang.String value)
Required - API name:id
ApiKey.Builder
name(java.lang.String value)
Required - API name:name
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
-
id
Required - API name:id
-
name
Required - API name:name
-
build
Builds aApiKey
.- Specified by:
build
in interfaceObjectBuilder<ApiKey>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-