Record Class Batch

java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.Batch

public record Batch(String id, String endpoint, Batch.Errors errors, String inputFileId, String completionWindow, String status, String outputFileId, String errorFileId, long createdAt, Long inProgressAt, Long expiresAt, Long finalizingAt, Long completedAt, Long failedAt, Long expiredAt, Long cancellingAt, Long cancelledAt, Batch.RequestCounts requestCounts, Map<String,String> metadata) extends Record
  • Constructor Details

    • Batch

      public Batch(String id, String endpoint, Batch.Errors errors, String inputFileId, String completionWindow, String status, String outputFileId, String errorFileId, long createdAt, Long inProgressAt, Long expiresAt, Long finalizingAt, Long completedAt, Long failedAt, Long expiredAt, Long cancellingAt, Long cancelledAt, Batch.RequestCounts requestCounts, Map<String,String> metadata)
      Creates an instance of a Batch record class.
      Parameters:
      id - the value for the id record component
      endpoint - the value for the endpoint record component
      errors - the value for the errors record component
      inputFileId - the value for the inputFileId record component
      completionWindow - the value for the completionWindow record component
      status - the value for the status record component
      outputFileId - the value for the outputFileId record component
      errorFileId - the value for the errorFileId record component
      createdAt - the value for the createdAt record component
      inProgressAt - the value for the inProgressAt record component
      expiresAt - the value for the expiresAt record component
      finalizingAt - the value for the finalizingAt record component
      completedAt - the value for the completedAt record component
      failedAt - the value for the failedAt record component
      expiredAt - the value for the expiredAt record component
      cancellingAt - the value for the cancellingAt record component
      cancelledAt - the value for the cancelledAt record component
      requestCounts - the value for the requestCounts record component
      metadata - the value for the metadata record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • endpoint

      public String endpoint()
      Returns the value of the endpoint record component.
      Returns:
      the value of the endpoint record component
    • errors

      public Batch.Errors errors()
      Returns the value of the errors record component.
      Returns:
      the value of the errors record component
    • inputFileId

      public String inputFileId()
      Returns the value of the inputFileId record component.
      Returns:
      the value of the inputFileId record component
    • completionWindow

      public String completionWindow()
      Returns the value of the completionWindow record component.
      Returns:
      the value of the completionWindow record component
    • status

      public String status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • outputFileId

      public String outputFileId()
      Returns the value of the outputFileId record component.
      Returns:
      the value of the outputFileId record component
    • errorFileId

      public String errorFileId()
      Returns the value of the errorFileId record component.
      Returns:
      the value of the errorFileId record component
    • createdAt

      public long createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • inProgressAt

      public Long inProgressAt()
      Returns the value of the inProgressAt record component.
      Returns:
      the value of the inProgressAt record component
    • expiresAt

      public Long expiresAt()
      Returns the value of the expiresAt record component.
      Returns:
      the value of the expiresAt record component
    • finalizingAt

      public Long finalizingAt()
      Returns the value of the finalizingAt record component.
      Returns:
      the value of the finalizingAt record component
    • completedAt

      public Long completedAt()
      Returns the value of the completedAt record component.
      Returns:
      the value of the completedAt record component
    • failedAt

      public Long failedAt()
      Returns the value of the failedAt record component.
      Returns:
      the value of the failedAt record component
    • expiredAt

      public Long expiredAt()
      Returns the value of the expiredAt record component.
      Returns:
      the value of the expiredAt record component
    • cancellingAt

      public Long cancellingAt()
      Returns the value of the cancellingAt record component.
      Returns:
      the value of the cancellingAt record component
    • cancelledAt

      public Long cancelledAt()
      Returns the value of the cancelledAt record component.
      Returns:
      the value of the cancelledAt record component
    • requestCounts

      public Batch.RequestCounts requestCounts()
      Returns the value of the requestCounts record component.
      Returns:
      the value of the requestCounts record component
    • metadata

      public Map<String,String> metadata()
      Returns the value of the metadata record component.
      Returns:
      the value of the metadata record component