Record Class AuditLog
java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.AuditLog
public record AuditLog(String id, String type, long effectiveAt, AuditLog.Project project, AuditLog.Actor actor, AuditLogEvent event)
extends Record
A log of a user action or configuration change within this organization.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
The actor who performed the audit logged action.static final record
The project that the action was scoped to. -
Constructor Summary
ConstructorDescriptionAuditLog
(String id, String type, long effectiveAt, AuditLog.Project project, AuditLog.Actor actor, AuditLogEvent event) Creates an instance of aAuditLog
record class. -
Method Summary
Modifier and TypeMethodDescriptionactor()
Returns the value of theactor
record component.long
Returns the value of theeffectiveAt
record component.final boolean
Indicates whether some other object is "equal to" this one.event()
Returns the value of theevent
record component.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.project()
Returns the value of theproject
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Constructor Details
-
AuditLog
public AuditLog(String id, String type, long effectiveAt, AuditLog.Project project, AuditLog.Actor actor, AuditLogEvent event) Creates an instance of aAuditLog
record class.- Parameters:
id
- the value for theid
record componenttype
- the value for thetype
record componenteffectiveAt
- the value for theeffectiveAt
record componentproject
- the value for theproject
record componentactor
- the value for theactor
record componentevent
- the value for theevent
record component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
effectiveAt
public long effectiveAt()Returns the value of theeffectiveAt
record component.- Returns:
- the value of the
effectiveAt
record component
-
project
Returns the value of theproject
record component.- Returns:
- the value of the
project
record component
-
actor
Returns the value of theactor
record component.- Returns:
- the value of the
actor
record component
-
event
Returns the value of theevent
record component.- Returns:
- the value of the
event
record component
-