Record Class PolicyManager.PolicyScope
java.lang.Object
java.lang.Record
org.elasticsearch.entitlement.runtime.policy.PolicyManager.PolicyScope
- Enclosing class:
PolicyManager
public static record PolicyManager.PolicyScope(PolicyManager.ComponentKind kind, String componentName, String moduleName)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPolicyScope(PolicyManager.ComponentKind kind, String componentName, String moduleName) Creates an instance of aPolicyScoperecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PolicyManager.PolicyScopeReturns the value of thecomponentNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.Returns the value of themoduleNamerecord component.static PolicyManager.PolicyScopestatic PolicyManager.PolicyScopefinal StringtoString()Returns a string representation of this record class.static PolicyManager.PolicyScope
-
Constructor Details
-
PolicyScope
Creates an instance of aPolicyScoperecord class.- Parameters:
kind- the value for thekindrecord componentcomponentName- the value for thecomponentNamerecord componentmoduleName- the value for themoduleNamerecord component
-
-
Method Details
-
unknown
-
server
-
apmAgent
-
plugin
-
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. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code 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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
componentName
Returns the value of thecomponentNamerecord component.- Returns:
- the value of the
componentNamerecord component
-
moduleName
Returns the value of themoduleNamerecord component.- Returns:
- the value of the
moduleNamerecord component
-