Class ApplicationPrivileges
java.lang.Object
co.elastic.clients.elasticsearch.security.ApplicationPrivileges
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class ApplicationPrivileges extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ApplicationPrivileges.Builder
Builder forApplicationPrivileges
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ApplicationPrivileges>
_DESERIALIZER
Json deserializer forApplicationPrivileges
-
Method Summary
Modifier and Type Method Description java.lang.String
application()
Required - The name of the application to which this entry applies.static ApplicationPrivileges
of(java.util.function.Function<ApplicationPrivileges.Builder,ObjectBuilder<ApplicationPrivileges>> fn)
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.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupApplicationPrivilegesDeserializer(ObjectDeserializer<ApplicationPrivileges.Builder> op)
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forApplicationPrivileges
-
-
Method Details
-
of
public static ApplicationPrivileges of(java.util.function.Function<ApplicationPrivileges.Builder,ObjectBuilder<ApplicationPrivileges>> fn) -
application
public final java.lang.String application()Required - The name of the application to which this entry applies.API name:
application
-
privileges
public final 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 final 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupApplicationPrivilegesDeserializer
protected static void setupApplicationPrivilegesDeserializer(ObjectDeserializer<ApplicationPrivileges.Builder> op)
-