Class ServiceToken.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.security.authenticate.ServiceToken.Builder
- All Implemented Interfaces:
ObjectBuilder<ServiceToken>
- Enclosing class:
- ServiceToken
public static class ServiceToken.Builder extends ObjectBuilderBase implements ObjectBuilder<ServiceToken>
Builder for
ServiceToken.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description ServiceTokenbuild()Builds aServiceToken.ServiceToken.Buildername(java.lang.String value)Required - API name:nameServiceToken.Buildertype(java.lang.String value)API name:typeMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Required - API name:name -
type
API name:type -
build
Builds aServiceToken.- Specified by:
buildin interfaceObjectBuilder<ServiceToken>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-