Module org.elasticsearch.xcore
Record Class ConfigurableClusterPrivileges.DatasourcePrivileges.DatasourcePermissionGroup
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.core.security.authz.privilege.ConfigurableClusterPrivileges.DatasourcePrivileges.DatasourcePermissionGroup
- All Implemented Interfaces:
Writeable
- Enclosing class:
ConfigurableClusterPrivileges.DatasourcePrivileges
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionDatasourcePermissionGroup(String[] names, String[] privileges) Creates an instance of aDatasourcePermissionGrouprecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.String[]names()Returns the value of thenamesrecord component.String[]Returns the value of theprivilegesrecord component.toString()Returns a string representation of this record class.voidwriteTo(StreamOutput out)
-
Constructor Details
-
DatasourcePermissionGroup
Creates an instance of aDatasourcePermissionGrouprecord class.- Parameters:
names- the value for thenamesrecord componentprivileges- the value for theprivilegesrecord component
-
-
Method Details
-
createFrom
public static ConfigurableClusterPrivileges.DatasourcePrivileges.DatasourcePermissionGroup createFrom(StreamInput in) throws IOException - Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
names
Returns the value of thenamesrecord component.- Returns:
- the value of the
namesrecord component
-
privileges
Returns the value of theprivilegesrecord component.- Returns:
- the value of the
privilegesrecord component
-