Class InvalidateApiKeyRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<InvalidateApiKeyRequest.Builder>
co.elastic.clients.elasticsearch.security.InvalidateApiKeyRequest.Builder
- All Implemented Interfaces:
WithJson<InvalidateApiKeyRequest.Builder>,ObjectBuilder<InvalidateApiKeyRequest>
- Enclosing class:
- InvalidateApiKeyRequest
public static class InvalidateApiKeyRequest.Builder
extends RequestBase.AbstractBuilder<InvalidateApiKeyRequest.Builder>
implements ObjectBuilder<InvalidateApiKeyRequest>
Builder for
InvalidateApiKeyRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aInvalidateApiKeyRequest.API name:idA list of API key ids.A list of API key ids.An API key name.Query API keys owned by the currently authenticated user.The name of an authentication realm.protected InvalidateApiKeyRequest.Builderself()The username of a user.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
-
id
API name:id -
ids
A list of API key ids. This parameter cannot be used with any ofname,realm_name, orusername.API name:
idsAdds all elements of
listtoids. -
ids
A list of API key ids. This parameter cannot be used with any ofname,realm_name, orusername.API name:
idsAdds one or more values to
ids. -
name
An API key name. This parameter cannot be used with any ofids,realm_nameorusername.API name:
name -
owner
Query API keys owned by the currently authenticated user. Therealm_nameorusernameparameters cannot be specified when this parameter is set totrueas they are assumed to be the currently authenticated ones.NOTE: At least one of
ids,name,username, andrealm_namemust be specified ifownerisfalse.API name:
owner -
realmName
The name of an authentication realm. This parameter cannot be used with eitheridsorname, or whenownerflag is set totrue.API name:
realm_name -
username
The username of a user. This parameter cannot be used with eitheridsornameor whenownerflag is set totrue.API name:
username -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<InvalidateApiKeyRequest.Builder>
-
build
Builds aInvalidateApiKeyRequest.- Specified by:
buildin interfaceObjectBuilder<InvalidateApiKeyRequest>- Throws:
NullPointerException- if some of the required fields are null.
-