Class ApplicationPrivilegesCheck
java.lang.Object
co.elastic.clients.elasticsearch.security.has_privileges.ApplicationPrivilegesCheck
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class ApplicationPrivilegesCheck extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ApplicationPrivilegesCheck.Builder
Builder forApplicationPrivilegesCheck
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ApplicationPrivilegesCheck>
_DESERIALIZER
Json deserializer forApplicationPrivilegesCheck
-
Method Summary
Modifier and Type Method Description java.lang.String
application()
Required - The name of the application.static ApplicationPrivilegesCheck
of(java.util.function.Function<ApplicationPrivilegesCheck.Builder,ObjectBuilder<ApplicationPrivilegesCheck>> fn)
java.util.List<java.lang.String>
privileges()
Required - A list of the privileges that you want to check for the specified resources.java.util.List<java.lang.String>
resources()
Required - A list of resource names against which the privileges should be checkedvoid
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
setupApplicationPrivilegesCheckDeserializer(ObjectDeserializer<ApplicationPrivilegesCheck.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 forApplicationPrivilegesCheck
-
-
Method Details
-
of
public static ApplicationPrivilegesCheck of(java.util.function.Function<ApplicationPrivilegesCheck.Builder,ObjectBuilder<ApplicationPrivilegesCheck>> fn) -
application
public final java.lang.String application()Required - The name of the application.API name:
application
-
privileges
public final java.util.List<java.lang.String> privileges()Required - A list of the privileges that you want to check for the specified resources. May be either application privilege names, or the names of actions that are granted by those privilegesAPI name:
privileges
-
resources
public final java.util.List<java.lang.String> resources()Required - A list of resource names against which the privileges should be checkedAPI name:
resources
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupApplicationPrivilegesCheckDeserializer
protected static void setupApplicationPrivilegesCheckDeserializer(ObjectDeserializer<ApplicationPrivilegesCheck.Builder> op)
-