Module org.elasticsearch.xcore
Record Class ConfigurableClusterPrivileges.ManageRolesPrivilege.ManageRolesIndexPermissionGroup
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.core.security.authz.privilege.ConfigurableClusterPrivileges.ManageRolesPrivilege.ManageRolesIndexPermissionGroup
- All Implemented Interfaces:
Writeable
- Enclosing class:
ConfigurableClusterPrivileges.ManageRolesPrivilege
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionManageRolesIndexPermissionGroup(String[] indexPatterns, String[] privileges) Creates an instance of aManageRolesIndexPermissionGrouprecord 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[]Returns the value of theindexPatternsrecord component.String[]Returns the value of theprivilegesrecord component.toString()Returns a string representation of this record class.voidwriteTo(StreamOutput out)
-
Constructor Details
-
ManageRolesIndexPermissionGroup
Creates an instance of aManageRolesIndexPermissionGrouprecord class.- Parameters:
indexPatterns- the value for theindexPatternsrecord componentprivileges- the value for theprivilegesrecord component
-
-
Method Details
-
createFrom
public static ConfigurableClusterPrivileges.ManageRolesPrivilege.ManageRolesIndexPermissionGroup createFrom(StreamInput in) throws IOException - Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
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. -
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. -
indexPatterns
Returns the value of theindexPatternsrecord component.- Returns:
- the value of the
indexPatternsrecord component
-
privileges
Returns the value of theprivilegesrecord component.- Returns:
- the value of the
privilegesrecord component
-