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
Nested ClassesModifier and TypeClassDescriptionstatic final recordThe actor who performed the audit logged action.static final recordThe project that the action was scoped to. -
Constructor Summary
ConstructorsConstructorDescriptionAuditLog(String id, String type, long effectiveAt, AuditLog.Project project, AuditLog.Actor actor, AuditLogEvent event) Creates an instance of aAuditLogrecord class. -
Method Summary
Modifier and TypeMethodDescriptionactor()Returns the value of theactorrecord component.longReturns the value of theeffectiveAtrecord component.final booleanIndicates whether some other object is "equal to" this one.event()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.project()Returns the value of theprojectrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
AuditLog
public AuditLog(String id, String type, long effectiveAt, AuditLog.Project project, AuditLog.Actor actor, AuditLogEvent event) Creates an instance of aAuditLogrecord class.- Parameters:
id- the value for theidrecord componenttype- the value for thetyperecord componenteffectiveAt- the value for theeffectiveAtrecord componentproject- the value for theprojectrecord componentactor- the value for theactorrecord componentevent- the value for theeventrecord 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 theidrecord component.- Returns:
- the value of the
idrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
effectiveAt
public long effectiveAt()Returns the value of theeffectiveAtrecord component.- Returns:
- the value of the
effectiveAtrecord component
-
project
Returns the value of theprojectrecord component.- Returns:
- the value of the
projectrecord component
-
actor
Returns the value of theactorrecord component.- Returns:
- the value of the
actorrecord component
-
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-