Class RecordingAvailableCallback


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2023-02-21T09:43:53.001100-05:00[America/New_York]")
    public class RecordingAvailableCallback
    extends Object
    The Recording Available event is sent after a recording has been processed. It indicates that the recording is available for download.
    • Constructor Detail

      • RecordingAvailableCallback

        public RecordingAvailableCallback()
    • Method Detail

      • getEventType

        @Nullable
        public String getEventType()
        The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
        Returns:
        eventType
      • setEventType

        public void setEventType​(String eventType)
      • getEventTime

        @Nullable
        public String getEventTime()
        The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution.
        Returns:
        eventTime
      • setEventTime

        public void setEventTime​(String eventTime)
      • getAccountId

        @Nullable
        public String getAccountId()
        The user account associated with the call.
        Returns:
        accountId
      • setAccountId

        public void setAccountId​(String accountId)
      • getApplicationId

        @Nullable
        public String getApplicationId()
        The id of the application associated with the call.
        Returns:
        applicationId
      • setApplicationId

        public void setApplicationId​(String applicationId)
      • getFrom

        @Nullable
        public String getFrom()
        The provided identifier of the caller: can be a phone number in E.164 format (e.g. +15555555555) or one of Private, Restricted, Unavailable, or Anonymous.
        Returns:
        from
      • setFrom

        public void setFrom​(String from)
      • getTo

        @Nullable
        public String getTo()
        The phone number that received the call, in E.164 format (e.g. +15555555555).
        Returns:
        to
      • setTo

        public void setTo​(String to)
      • getDirection

        @Nullable
        public CallDirectionEnum getDirection()
        Get direction
        Returns:
        direction
      • getCallId

        @Nullable
        public String getCallId()
        The call id associated with the event.
        Returns:
        callId
      • setCallId

        public void setCallId​(String callId)
      • getCallUrl

        @Nullable
        public String getCallUrl()
        The URL of the call associated with the event.
        Returns:
        callUrl
      • setCallUrl

        public void setCallUrl​(String callUrl)
      • getParentCallId

        @Nullable
        public String getParentCallId()
        (optional) If the event is related to the B leg of a <Transfer>, the call id of the original call leg that executed the <Transfer>. Otherwise, this field will not be present.
        Returns:
        parentCallId
      • setParentCallId

        public void setParentCallId​(String parentCallId)
      • getRecordingId

        @Nullable
        public String getRecordingId()
        The unique ID of this recording
        Returns:
        recordingId
      • setRecordingId

        public void setRecordingId​(String recordingId)
      • getMediaUrl

        @Nullable
        public URI getMediaUrl()
        The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded.
        Returns:
        mediaUrl
      • setMediaUrl

        public void setMediaUrl​(URI mediaUrl)
      • getEnqueuedTime

        @Nullable
        public OffsetDateTime getEnqueuedTime()
        (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format.
        Returns:
        enqueuedTime
      • setEnqueuedTime

        public void setEnqueuedTime​(OffsetDateTime enqueuedTime)
      • getStartTime

        @Nullable
        public OffsetDateTime getStartTime()
        Time the call was started, in ISO 8601 format.
        Returns:
        startTime
      • setStartTime

        public void setStartTime​(OffsetDateTime startTime)
      • getEndTime

        @Nullable
        public OffsetDateTime getEndTime()
        The time that the recording ended in ISO-8601 format
        Returns:
        endTime
      • getDuration

        @Nullable
        public String getDuration()
        The duration of the recording in ISO-8601 format
        Returns:
        duration
      • setDuration

        public void setDuration​(String duration)
      • getFileFormat

        @Nullable
        public FileFormatEnum getFileFormat()
        Get fileFormat
        Returns:
        fileFormat
      • setFileFormat

        public void setFileFormat​(FileFormatEnum fileFormat)
      • getChannels

        @Nullable
        public String getChannels()
        The current status of the process. For recording, current possible values are 'processing', 'partial', 'complete', 'deleted', and 'error'. For transcriptions, current possible values are 'none', 'processing', 'available', 'error', 'timeout', 'file-size-too-big', and 'file-size-too-small'. Additional states may be added in the future, so your application must be tolerant of unknown values.
        Returns:
        channels
      • setChannels

        public void setChannels​(String channels)
      • getTag

        @Nullable
        public String getTag()
        (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present.
        Returns:
        tag
      • setTag

        public void setTag​(String tag)
      • getStatus

        @Nullable
        public String getStatus()
        The current status of the process. For recording, current possible values are 'processing', 'partial', 'complete', 'deleted', and 'error'. For transcriptions, current possible values are 'none', 'processing', 'available', 'error', 'timeout', 'file-size-too-big', and 'file-size-too-small'. Additional states may be added in the future, so your application must be tolerant of unknown values.
        Returns:
        status
      • setStatus

        public void setStatus​(String status)
      • getTransferCallerId

        @Nullable
        public String getTransferCallerId()
        The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555) or one of Restricted, Anonymous, Private, or Unavailable.
        Returns:
        transferCallerId
      • setTransferCallerId

        public void setTransferCallerId​(String transferCallerId)
      • getTransferTo

        @Nullable
        public String getTransferTo()
        The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555).
        Returns:
        transferTo
      • setTransferTo

        public void setTransferTo​(String transferTo)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to RecordingAvailableCallback
      • fromJson

        public static RecordingAvailableCallback fromJson​(String jsonString)
                                                   throws IOException
        Create an instance of RecordingAvailableCallback given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of RecordingAvailableCallback
        Throws:
        IOException - if the JSON string is invalid with respect to RecordingAvailableCallback
      • toJson

        public String toJson()
        Convert an instance of RecordingAvailableCallback to an JSON string
        Returns:
        JSON string