Record Class ResourcePolicyRequest
java.lang.Object
java.lang.Record
org.j7m.middleware.security.api.ResourcePolicyRequest
- Record Components:
action- action being evaluatedapplicationContext- application contextruntimeId- runtime idserviceName- service name when knownobjectId- object id when knownmethodDescriptor- method descriptor when knownquota- configured quota snapshotusage- current usage snapshotmetadata- safe metadata
public record ResourcePolicyRequest(ResourcePolicyAction action, ApplicationContextId applicationContext, String runtimeId, String serviceName, String objectId, String methodDescriptor, ResourceQuota quota, ResourceUsageSnapshot usage, Map<String,String> metadata)
extends Record
Immutable resource-policy evaluation request.
-
Constructor Summary
ConstructorsConstructorDescriptionResourcePolicyRequest(ResourcePolicyAction action, ApplicationContextId applicationContext, String runtimeId, String serviceName, String objectId, String methodDescriptor, ResourceQuota quota, ResourceUsageSnapshot usage, Map<String, String> metadata) Creates immutable request fields. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.Returns the value of theapplicationContextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.Returns the value of themethodDescriptorrecord component.objectId()Returns the value of theobjectIdrecord component.quota()Returns the value of thequotarecord component.Returns the value of theruntimeIdrecord component.Returns the value of theserviceNamerecord component.final StringtoString()Returns a string representation of this record class.usage()Returns the value of theusagerecord component.
-
Constructor Details
-
ResourcePolicyRequest
public ResourcePolicyRequest(ResourcePolicyAction action, ApplicationContextId applicationContext, String runtimeId, String serviceName, String objectId, String methodDescriptor, ResourceQuota quota, ResourceUsageSnapshot usage, Map<String, String> metadata) Creates immutable request fields.
-
-
Method Details
-
toString
-
hashCode
-
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). -
action
-
applicationContext
Returns the value of theapplicationContextrecord component.- Returns:
- the value of the
applicationContextrecord component
-
runtimeId
-
serviceName
Returns the value of theserviceNamerecord component.- Returns:
- the value of the
serviceNamerecord component
-
objectId
-
methodDescriptor
Returns the value of themethodDescriptorrecord component.- Returns:
- the value of the
methodDescriptorrecord component
-
quota
-
usage
-
metadata
-