Class ServiceToken.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ServiceToken.Builder>
co.elastic.clients.elasticsearch.security.authenticate.ServiceToken.Builder
- All Implemented Interfaces:
WithJson<ServiceToken.Builder>
,ObjectBuilder<ServiceToken>
- Enclosing class:
- ServiceToken
public static class ServiceToken.Builder
extends WithJsonObjectBuilderBase<ServiceToken.Builder>
implements ObjectBuilder<ServiceToken>
Builder for
ServiceToken
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aServiceToken
.final ServiceToken.Builder
Required - API name:name
protected ServiceToken.Builder
self()
final ServiceToken.Builder
API name:type
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
-
name
Required - API name:name
-
type
API name:type
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ServiceToken.Builder>
-
build
Builds aServiceToken
.- Specified by:
build
in interfaceObjectBuilder<ServiceToken>
- Throws:
NullPointerException
- if some of the required fields are null.
-