Class ApplicationPrivileges
java.lang.Object
co.elastic.clients.elasticsearch.security.ApplicationPrivileges
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class ApplicationPrivileges extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApplicationPrivileges.BuilderBuilder forApplicationPrivileges. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ApplicationPrivileges>_DESERIALIZERJson deserializer forApplicationPrivileges -
Constructor Summary
Constructors Constructor Description ApplicationPrivileges(ApplicationPrivileges.Builder builder)ApplicationPrivileges(java.util.function.Function<ApplicationPrivileges.Builder,ApplicationPrivileges.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.Stringapplication()Required - The name of the application to which this entry applies.java.util.List<java.lang.String>privileges()Required - A list of strings, where each element is the name of an application privilege or action.java.util.List<java.lang.String>resources()Required - A list resources to which the privileges are applied.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupApplicationPrivilegesDeserializer(DelegatingDeserializer<ApplicationPrivileges.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 forApplicationPrivileges
-
-
Constructor Details
-
ApplicationPrivileges
-
ApplicationPrivileges
public ApplicationPrivileges(java.util.function.Function<ApplicationPrivileges.Builder,ApplicationPrivileges.Builder> fn)
-
-
Method Details
-
application
public java.lang.String application()Required - The name of the application to which this entry applies.API name:
application -
privileges
public java.util.List<java.lang.String> privileges()Required - A list of strings, where each element is the name of an application privilege or action.API name:
privileges -
resources
public java.util.List<java.lang.String> resources()Required - A list resources to which the privileges are applied.API name:
resources -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupApplicationPrivilegesDeserializer
protected static void setupApplicationPrivilegesDeserializer(DelegatingDeserializer<ApplicationPrivileges.Builder> op)
-