Class PutRoleMappingRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.PutRoleMappingRequest
- All Implemented Interfaces:
ElasticsearchCommonRequest,JsonpSerializable
@JsonpDeserializable public final class PutRoleMappingRequest extends RequestBase implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPutRoleMappingRequest.BuilderBuilder forPutRoleMappingRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<PutRoleMappingRequest>_DESERIALIZERJson deserializer forPutRoleMappingRequeststatic Endpoint<PutRoleMappingRequest,PutRoleMappingResponse,ElasticsearchError>ENDPOINTEndpoint "security.put_role_mapping". -
Constructor Summary
Constructors Constructor Description PutRoleMappingRequest(PutRoleMappingRequest.Builder builder)PutRoleMappingRequest(java.util.function.Function<PutRoleMappingRequest.Builder,PutRoleMappingRequest.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.Booleanenabled()API name:enabledjava.util.Map<java.lang.String,JsonData>metadata()API name:metadatajava.lang.Stringname()Required - Role-mapping namejakarta.json.JsonValuerefresh()Iftrue(the default) then refresh the affected shards to make this operation visible to search, ifwait_forthen wait for a refresh to make this operation visible to search, iffalsethen do nothing with refreshes.java.util.List<java.lang.String>roles()API name:rolesRoleMappingRulerules()API name:rulesjava.util.List<java.lang.String>runAs()API name:run_asvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupPutRoleMappingRequestDeserializer(DelegatingDeserializer<PutRoleMappingRequest.Builder> op)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forPutRoleMappingRequest -
ENDPOINT
public static final Endpoint<PutRoleMappingRequest,PutRoleMappingResponse,ElasticsearchError> ENDPOINTEndpoint "security.put_role_mapping".
-
-
Constructor Details
-
PutRoleMappingRequest
-
PutRoleMappingRequest
public PutRoleMappingRequest(java.util.function.Function<PutRoleMappingRequest.Builder,PutRoleMappingRequest.Builder> fn)
-
-
Method Details
-
name
public java.lang.String name()Required - Role-mapping nameAPI name:
name -
refresh
@Nullable public jakarta.json.JsonValue refresh()Iftrue(the default) then refresh the affected shards to make this operation visible to search, ifwait_forthen wait for a refresh to make this operation visible to search, iffalsethen do nothing with refreshes.API name:
refresh -
enabled
@Nullable public java.lang.Boolean enabled()API name:enabled -
metadata
API name:metadata -
roles
@Nullable public java.util.List<java.lang.String> roles()API name:roles -
rules
API name:rules -
runAs
@Nullable public java.util.List<java.lang.String> runAs()API name:run_as -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupPutRoleMappingRequestDeserializer
protected static void setupPutRoleMappingRequestDeserializer(DelegatingDeserializer<PutRoleMappingRequest.Builder> op)
-