Module org.elasticsearch.xcore
Class PutRoleRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<PutRoleRequest,PutRoleResponse>
org.elasticsearch.xpack.core.security.action.role.PutRoleRequestBuilder
- All Implemented Interfaces:
RequestBuilder<PutRoleRequest,PutRoleResponse>
Builder for requests to add a role to the administrative index
-
Field Summary
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddIndices(String[] indices, String[] privileges, String[] grantedFields, String[] deniedFields, BytesReference query, boolean allowRestrictedIndices) description(String description) setRefreshPolicy(String refreshPolicy) source(String name, BytesReference source, org.elasticsearch.xcontent.XContentType xContentType) Populate the put role request from the source and the role's name
-
Constructor Details
-
PutRoleRequestBuilder
-
-
Method Details
-
source
public PutRoleRequestBuilder source(String name, BytesReference source, org.elasticsearch.xcontent.XContentType xContentType) throws IOException Populate the put role request from the source and the role's name- Throws:
IOException
-
name
-
description
-
cluster
-
runAs
-
addIndices
public PutRoleRequestBuilder addIndices(String[] indices, String[] privileges, String[] grantedFields, String[] deniedFields, @Nullable BytesReference query, boolean allowRestrictedIndices) -
metadata
-
setRefreshPolicy
-