Record Class IsolationPolicyViolation
java.lang.Object
java.lang.Record
org.j7m.middleware.api.isolation.IsolationPolicyViolation
- Record Components:
type- violation typesubject- subject identifieraction- safe action nameresourceSummary- redacted resource summaryreasonCode- stable reason codetimestamp- event timestampmetadata- safe redacted metadata
public record IsolationPolicyViolation(IsolationPolicyViolationType type, IsolationSubjectId subject, String action, String resourceSummary, String reasonCode, Instant timestamp, Map<String,String> metadata)
extends Record
Safe policy violation evidence.
-
Constructor Summary
ConstructorsConstructorDescriptionIsolationPolicyViolation(IsolationPolicyViolationType type, IsolationSubjectId subject, String action, String resourceSummary, String reasonCode, Instant timestamp, Map<String, String> metadata) Creates a validated violation. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord 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 thereasonCoderecord component.Returns the value of theresourceSummaryrecord component.subject()Returns the value of thesubjectrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
IsolationPolicyViolation
public IsolationPolicyViolation(IsolationPolicyViolationType type, IsolationSubjectId subject, String action, String resourceSummary, String reasonCode, Instant timestamp, Map<String, String> metadata) Creates a validated violation.
-
-
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). -
type
-
subject
-
action
-
resourceSummary
Returns the value of theresourceSummaryrecord component.- Returns:
- the value of the
resourceSummaryrecord component
-
reasonCode
Returns the value of thereasonCoderecord component.- Returns:
- the value of the
reasonCoderecord component
-
timestamp
-
metadata
-