Class InvalidateApiKeyResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<InvalidateApiKeyResponse.Builder>
co.elastic.clients.elasticsearch.security.InvalidateApiKeyResponse.Builder
- All Implemented Interfaces:
WithJson<InvalidateApiKeyResponse.Builder>,ObjectBuilder<InvalidateApiKeyResponse>
- Enclosing class:
- InvalidateApiKeyResponse
public static class InvalidateApiKeyResponse.Builder
extends WithJsonObjectBuilderBase<InvalidateApiKeyResponse.Builder>
implements ObjectBuilder<InvalidateApiKeyResponse>
Builder for
InvalidateApiKeyResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aInvalidateApiKeyResponse.errorCount(int value) Required - The number of errors that were encountered when invalidating the API keys.errorDetails(ErrorCause value, ErrorCause... values) Details about the errors.Details about the errors.errorDetails(List<ErrorCause> list) Details about the errors.invalidatedApiKeys(String value, String... values) Required - The IDs of the API keys that were invalidated as part of this request.invalidatedApiKeys(List<String> list) Required - The IDs of the API keys that were invalidated as part of this request.previouslyInvalidatedApiKeys(String value, String... values) Required - The IDs of the API keys that were already invalidated.Required - The IDs of the API keys that were already invalidated.protected InvalidateApiKeyResponse.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
-
errorCount
Required - The number of errors that were encountered when invalidating the API keys.API name:
error_count -
errorDetails
Details about the errors. This field is not present in the response whenerror_countis0.API name:
error_detailsAdds all elements of
listtoerrorDetails. -
errorDetails
Details about the errors. This field is not present in the response whenerror_countis0.API name:
error_detailsAdds one or more values to
errorDetails. -
errorDetails
public final InvalidateApiKeyResponse.Builder errorDetails(Function<ErrorCause.Builder, ObjectBuilder<ErrorCause>> fn) Details about the errors. This field is not present in the response whenerror_countis0.API name:
error_detailsAdds a value to
errorDetailsusing a builder lambda. -
invalidatedApiKeys
Required - The IDs of the API keys that were invalidated as part of this request.API name:
invalidated_api_keysAdds all elements of
listtoinvalidatedApiKeys. -
invalidatedApiKeys
Required - The IDs of the API keys that were invalidated as part of this request.API name:
invalidated_api_keysAdds one or more values to
invalidatedApiKeys. -
previouslyInvalidatedApiKeys
Required - The IDs of the API keys that were already invalidated.API name:
previously_invalidated_api_keysAdds all elements of
listtopreviouslyInvalidatedApiKeys. -
previouslyInvalidatedApiKeys
public final InvalidateApiKeyResponse.Builder previouslyInvalidatedApiKeys(String value, String... values) Required - The IDs of the API keys that were already invalidated.API name:
previously_invalidated_api_keysAdds one or more values to
previouslyInvalidatedApiKeys. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<InvalidateApiKeyResponse.Builder>
-
build
Builds aInvalidateApiKeyResponse.- Specified by:
buildin interfaceObjectBuilder<InvalidateApiKeyResponse>- Throws:
NullPointerException- if some of the required fields are null.
-