Class MessageBatch

  • All Implemented Interfaces:

    
    public final class MessageBatch
    
                        
    • Constructor Detail

    • Method Detail

      • id

         final String id()

        Unique object identifier.

        The format and length of IDs may change over time.

      • archivedAt

         final Optional<OffsetDateTime> archivedAt()

        RFC 3339 datetime string representing the time at which the Message Batch was archived and its results became unavailable.

      • cancelInitiatedAt

         final Optional<OffsetDateTime> cancelInitiatedAt()

        RFC 3339 datetime string representing the time at which cancellation was initiated for the Message Batch. Specified only if cancellation was initiated.

      • createdAt

         final OffsetDateTime createdAt()

        RFC 3339 datetime string representing the time at which the Message Batch was created.

      • endedAt

         final Optional<OffsetDateTime> endedAt()

        RFC 3339 datetime string representing the time at which processing for the Message Batch ended. Specified only once processing ends.

        Processing ends when every request in a Message Batch has either succeeded, errored, canceled, or expired.

      • expiresAt

         final OffsetDateTime expiresAt()

        RFC 3339 datetime string representing the time at which the Message Batch will expire and end processing, which is 24 hours after creation.

      • requestCounts

         final MessageBatchRequestCounts requestCounts()

        Tallies requests within the Message Batch, categorized by their status.

        Requests start as processing and move to one of the other statuses only once processing of the entire batch ends. The sum of all values always matches the total number of requests in the batch.

      • resultsUrl

         final Optional<String> resultsUrl()

        URL to a .jsonl file containing the results of the Message Batch requests. Specified only once processing ends.

        Results in the file are not guaranteed to be in the same order as requests. Use the custom_id field to match results to requests.

      • _id

         final JsonField<String> _id()

        Unique object identifier.

        The format and length of IDs may change over time.

      • _archivedAt

         final JsonField<OffsetDateTime> _archivedAt()

        RFC 3339 datetime string representing the time at which the Message Batch was archived and its results became unavailable.

      • _cancelInitiatedAt

         final JsonField<OffsetDateTime> _cancelInitiatedAt()

        RFC 3339 datetime string representing the time at which cancellation was initiated for the Message Batch. Specified only if cancellation was initiated.

      • _endedAt

         final JsonField<OffsetDateTime> _endedAt()

        RFC 3339 datetime string representing the time at which processing for the Message Batch ended. Specified only once processing ends.

        Processing ends when every request in a Message Batch has either succeeded, errored, canceled, or expired.

      • _expiresAt

         final JsonField<OffsetDateTime> _expiresAt()

        RFC 3339 datetime string representing the time at which the Message Batch will expire and end processing, which is 24 hours after creation.

      • _requestCounts

         final JsonField<MessageBatchRequestCounts> _requestCounts()

        Tallies requests within the Message Batch, categorized by their status.

        Requests start as processing and move to one of the other statuses only once processing of the entire batch ends. The sum of all values always matches the total number of requests in the batch.

      • _resultsUrl

         final JsonField<String> _resultsUrl()

        URL to a .jsonl file containing the results of the Message Batch requests. Specified only once processing ends.

        Results in the file are not guaranteed to be in the same order as requests. Use the custom_id field to match results to requests.