Class DeleteServiceTokenResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DeleteServiceTokenResponse.Builder>
co.elastic.clients.elasticsearch.security.DeleteServiceTokenResponse.Builder
- All Implemented Interfaces:
WithJson<DeleteServiceTokenResponse.Builder>,ObjectBuilder<DeleteServiceTokenResponse>
- Enclosing class:
- DeleteServiceTokenResponse
public static class DeleteServiceTokenResponse.Builder
extends WithJsonObjectBuilderBase<DeleteServiceTokenResponse.Builder>
implements ObjectBuilder<DeleteServiceTokenResponse>
Builder for
DeleteServiceTokenResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDeleteServiceTokenResponse.found(boolean value) Required - If the service account token is successfully deleted, the request returns{"found": true}.protected DeleteServiceTokenResponse.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
found
Required - If the service account token is successfully deleted, the request returns{"found": true}. Otherwise, the response will have status code 404 andfoundis set tofalse.API name:
found -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DeleteServiceTokenResponse.Builder>
-
build
Builds aDeleteServiceTokenResponse.- Specified by:
buildin interfaceObjectBuilder<DeleteServiceTokenResponse>- Throws:
NullPointerException- if some of the required fields are null.
-