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 classApplicationPrivileges.BuilderBuilder forApplicationPrivileges. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ApplicationPrivileges>_DESERIALIZERJson deserializer forApplicationPrivileges -
Method Summary
Modifier and Type Method Description java.lang.Stringapplication()Required - The name of the application to which this entry applies.static ApplicationPrivilegesof(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.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(ObjectDeserializer<ApplicationPrivileges.Builder> op)java.lang.StringtoString()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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupApplicationPrivilegesDeserializer
protected static void setupApplicationPrivilegesDeserializer(ObjectDeserializer<ApplicationPrivileges.Builder> op)
-