Module org.elasticsearch.xcore
Class AbstractCreateApiKeyRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.LegacyActionRequest
org.elasticsearch.xpack.core.security.action.apikey.AbstractCreateApiKeyRequest
- All Implemented Interfaces:
Writeable,org.elasticsearch.core.RefCounted,TaskAwareRequest
- Direct Known Subclasses:
CreateApiKeyRequest,CreateCrossClusterApiKeyRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.elasticsearch.core.TimeValueprotected final Stringprotected Stringprotected WriteRequest.RefreshPolicyprotected List<RoleDescriptor> Fields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsearch.core.TimeValuegetId()getName()abstract ApiKey.TypegetType()voidsetRefreshPolicy(WriteRequest.RefreshPolicy refreshPolicy) validate()final voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, getRequestId, setParentTask, setRequestId, toStringMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRefMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Field Details
-
id
-
name
-
expiration
protected org.elasticsearch.core.TimeValue expiration -
metadata
-
roleDescriptors
-
refreshPolicy
-
-
Constructor Details
-
AbstractCreateApiKeyRequest
public AbstractCreateApiKeyRequest()
-
-
Method Details
-
getId
-
getName
-
getType
-
getExpiration
public org.elasticsearch.core.TimeValue getExpiration() -
getRoleDescriptors
-
getRefreshPolicy
-
setRefreshPolicy
-
getMetadata
-
validate
- Specified by:
validatein classActionRequest
-
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classActionRequest- Throws:
IOException
-