Module org.elasticsearch.xcore
Class CreateApiKeyRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<CreateApiKeyRequest,CreateApiKeyResponse>
org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyRequestBuilder
- All Implemented Interfaces:
RequestBuilder<CreateApiKeyRequest,CreateApiKeyResponse>
public class CreateApiKeyRequestBuilder
extends ActionRequestBuilder<CreateApiKeyRequest,CreateApiKeyResponse>
Request builder for populating a
CreateApiKeyRequest-
Field Summary
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.elasticsearch.xcontent.ConstructingObjectParser<CreateApiKeyRequest, Void> createParser(CheckedBiFunction<String, org.elasticsearch.xcontent.XContentParser, RoleDescriptor, IOException> roleDescriptorParser) protected CreateApiKeyRequestparse(BytesReference source, org.elasticsearch.xcontent.XContentType xContentType) static CreateApiKeyRequestparse(org.elasticsearch.xcontent.XContentParser parser) setExpiration(org.elasticsearch.core.TimeValue expiration) setMetadata(Map<String, Object> metadata) setRefreshPolicy(WriteRequest.RefreshPolicy refreshPolicy) setRoleDescriptors(List<RoleDescriptor> roleDescriptors) source(BytesReference source, org.elasticsearch.xcontent.XContentType xContentType)
-
Constructor Details
-
CreateApiKeyRequestBuilder
-
-
Method Details
-
createParser
public static org.elasticsearch.xcontent.ConstructingObjectParser<CreateApiKeyRequest,Void> createParser(CheckedBiFunction<String, org.elasticsearch.xcontent.XContentParser, RoleDescriptor, IOException> roleDescriptorParser) -
setName
-
setExpiration
-
setRoleDescriptors
-
setRefreshPolicy
-
setMetadata
-
source
public CreateApiKeyRequestBuilder source(BytesReference source, org.elasticsearch.xcontent.XContentType xContentType) throws IOException - Throws:
IOException
-
parse
protected CreateApiKeyRequest parse(BytesReference source, org.elasticsearch.xcontent.XContentType xContentType) throws IOException - Throws:
IOException
-
parse
public static CreateApiKeyRequest parse(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-