Class LiveEventStreamEventData

java.lang.Object
com.azure.resourcemanager.mediaservices.models.LiveEventStreamEventData

public final class LiveEventStreamEventData extends Object
The live event stream event data.
  • Constructor Details

    • LiveEventStreamEventData

      public LiveEventStreamEventData()
      Creates an instance of LiveEventStreamEventData class.
  • Method Details

    • trackName

      public String trackName()
      Get the trackName property: Name of the track.
      Returns:
      the trackName value.
    • withTrackName

      public LiveEventStreamEventData withTrackName(String trackName)
      Set the trackName property: Name of the track.
      Parameters:
      trackName - the trackName value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • streamId

      public String streamId()
      Get the streamId property: Stream ID in the format "trackName_bitrate".
      Returns:
      the streamId value.
    • withStreamId

      public LiveEventStreamEventData withStreamId(String streamId)
      Set the streamId property: Stream ID in the format "trackName_bitrate".
      Parameters:
      streamId - the streamId value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • trackId

      public Integer trackId()
      Get the trackId property: Track index.
      Returns:
      the trackId value.
    • withTrackId

      public LiveEventStreamEventData withTrackId(Integer trackId)
      Set the trackId property: Track index.
      Parameters:
      trackId - the trackId value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • mediaType

      public LiveEventStreamEventMediaType mediaType()
      Get the mediaType property: Type of the track.
      Returns:
      the mediaType value.
    • withMediaType

      public LiveEventStreamEventData withMediaType(LiveEventStreamEventMediaType mediaType)
      Set the mediaType property: Type of the track.
      Parameters:
      mediaType - the mediaType value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • bitrate

      public Long bitrate()
      Get the bitrate property: Bitrate of the track.
      Returns:
      the bitrate value.
    • withBitrate

      public LiveEventStreamEventData withBitrate(Long bitrate)
      Set the bitrate property: Bitrate of the track.
      Parameters:
      bitrate - the bitrate value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • mediaTimestamp

      public String mediaTimestamp()
      Get the mediaTimestamp property: Fragment timestamp in timescale.
      Returns:
      the mediaTimestamp value.
    • withMediaTimestamp

      public LiveEventStreamEventData withMediaTimestamp(String mediaTimestamp)
      Set the mediaTimestamp property: Fragment timestamp in timescale.
      Parameters:
      mediaTimestamp - the mediaTimestamp value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • timescale

      public String timescale()
      Get the timescale property: Timescale in which timestamps are expressed.
      Returns:
      the timescale value.
    • withTimescale

      public LiveEventStreamEventData withTimescale(String timescale)
      Set the timescale property: Timescale in which timestamps are expressed.
      Parameters:
      timescale - the timescale value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • previousFragmentTimestamp

      public String previousFragmentTimestamp()
      Get the previousFragmentTimestamp property: Previous fragment timestamp in timescale.
      Returns:
      the previousFragmentTimestamp value.
    • withPreviousFragmentTimestamp

      public LiveEventStreamEventData withPreviousFragmentTimestamp(String previousFragmentTimestamp)
      Set the previousFragmentTimestamp property: Previous fragment timestamp in timescale.
      Parameters:
      previousFragmentTimestamp - the previousFragmentTimestamp value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • previousFragmentDuration

      public String previousFragmentDuration()
      Get the previousFragmentDuration property: Previous fragment duration in timescale.
      Returns:
      the previousFragmentDuration value.
    • withPreviousFragmentDuration

      public LiveEventStreamEventData withPreviousFragmentDuration(String previousFragmentDuration)
      Set the previousFragmentDuration property: Previous fragment duration in timescale.
      Parameters:
      previousFragmentDuration - the previousFragmentDuration value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • currentFragmentTimestamp

      public String currentFragmentTimestamp()
      Get the currentFragmentTimestamp property: Current fragment timestamp in timescale.
      Returns:
      the currentFragmentTimestamp value.
    • withCurrentFragmentTimestamp

      public LiveEventStreamEventData withCurrentFragmentTimestamp(String currentFragmentTimestamp)
      Set the currentFragmentTimestamp property: Current fragment timestamp in timescale.
      Parameters:
      currentFragmentTimestamp - the currentFragmentTimestamp value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • fragmentOneTimestamp

      public String fragmentOneTimestamp()
      Get the fragmentOneTimestamp property: Timestamp of first fragment used to make a comparison, in timescale.
      Returns:
      the fragmentOneTimestamp value.
    • withFragmentOneTimestamp

      public LiveEventStreamEventData withFragmentOneTimestamp(String fragmentOneTimestamp)
      Set the fragmentOneTimestamp property: Timestamp of first fragment used to make a comparison, in timescale.
      Parameters:
      fragmentOneTimestamp - the fragmentOneTimestamp value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • fragmentOneDuration

      public String fragmentOneDuration()
      Get the fragmentOneDuration property: Duration of first fragment used to make a comparison, in timescale.
      Returns:
      the fragmentOneDuration value.
    • withFragmentOneDuration

      public LiveEventStreamEventData withFragmentOneDuration(String fragmentOneDuration)
      Set the fragmentOneDuration property: Duration of first fragment used to make a comparison, in timescale.
      Parameters:
      fragmentOneDuration - the fragmentOneDuration value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • fragmentTwoTimestamp

      public String fragmentTwoTimestamp()
      Get the fragmentTwoTimestamp property: Timestamp of second fragment used to make a comparison, in timescale.
      Returns:
      the fragmentTwoTimestamp value.
    • withFragmentTwoTimestamp

      public LiveEventStreamEventData withFragmentTwoTimestamp(String fragmentTwoTimestamp)
      Set the fragmentTwoTimestamp property: Timestamp of second fragment used to make a comparison, in timescale.
      Parameters:
      fragmentTwoTimestamp - the fragmentTwoTimestamp value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • fragmentTwoDuration

      public String fragmentTwoDuration()
      Get the fragmentTwoDuration property: Duration of second fragment used to make a comparison, in timescale.
      Returns:
      the fragmentTwoDuration value.
    • withFragmentTwoDuration

      public LiveEventStreamEventData withFragmentTwoDuration(String fragmentTwoDuration)
      Set the fragmentTwoDuration property: Duration of second fragment used to make a comparison, in timescale.
      Parameters:
      fragmentTwoDuration - the fragmentTwoDuration value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • fragmentDropReason

      public String fragmentDropReason()
      Get the fragmentDropReason property: Reason the fragment was dropped.
      Returns:
      the fragmentDropReason value.
    • withFragmentDropReason

      public LiveEventStreamEventData withFragmentDropReason(String fragmentDropReason)
      Set the fragmentDropReason property: Reason the fragment was dropped.
      Parameters:
      fragmentDropReason - the fragmentDropReason value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • discontinuityGap

      public Long discontinuityGap()
      Get the discontinuityGap property: Length of the discontinuity gap in timescale.
      Returns:
      the discontinuityGap value.
    • withDiscontinuityGap

      public LiveEventStreamEventData withDiscontinuityGap(Long discontinuityGap)
      Set the discontinuityGap property: Length of the discontinuity gap in timescale.
      Parameters:
      discontinuityGap - the discontinuityGap value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • streamName

      public String streamName()
      Get the streamName property: Identifier of the stream or connection. Encoder or customer is responsible to add this ID in the ingest URL.
      Returns:
      the streamName value.
    • withStreamName

      public LiveEventStreamEventData withStreamName(String streamName)
      Set the streamName property: Identifier of the stream or connection. Encoder or customer is responsible to add this ID in the ingest URL.
      Parameters:
      streamName - the streamName value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • resultCode

      public String resultCode()
      Get the resultCode property: Result code.
      Returns:
      the resultCode value.
    • withResultCode

      public LiveEventStreamEventData withResultCode(String resultCode)
      Set the resultCode property: Result code.
      Parameters:
      resultCode - the resultCode value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • resultMessage

      public String resultMessage()
      Get the resultMessage property: Result message.
      Returns:
      the resultMessage value.
    • withResultMessage

      public LiveEventStreamEventData withResultMessage(String resultMessage)
      Set the resultMessage property: Result message.
      Parameters:
      resultMessage - the resultMessage value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • duration

      public String duration()
      Get the duration property: Fragment duration.
      Returns:
      the duration value.
    • withDuration

      public LiveEventStreamEventData withDuration(String duration)
      Set the duration property: Fragment duration.
      Parameters:
      duration - the duration value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • resolution

      public String resolution()
      Get the resolution property: Width x Height for video, null otherwise.
      Returns:
      the resolution value.
    • withResolution

      public LiveEventStreamEventData withResolution(String resolution)
      Set the resolution property: Width x Height for video, null otherwise.
      Parameters:
      resolution - the resolution value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • minTime

      public String minTime()
      Get the minTime property: The smaller timestamp of the two fragments compared.
      Returns:
      the minTime value.
    • withMinTime

      public LiveEventStreamEventData withMinTime(String minTime)
      Set the minTime property: The smaller timestamp of the two fragments compared.
      Parameters:
      minTime - the minTime value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • minTimeMediaType

      public LiveEventStreamEventMinTimeMediaType minTimeMediaType()
      Get the minTimeMediaType property: The media type of the smaller timestamp of two fragments compared.
      Returns:
      the minTimeMediaType value.
    • withMinTimeMediaType

      public LiveEventStreamEventData withMinTimeMediaType(LiveEventStreamEventMinTimeMediaType minTimeMediaType)
      Set the minTimeMediaType property: The media type of the smaller timestamp of two fragments compared.
      Parameters:
      minTimeMediaType - the minTimeMediaType value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • maxTime

      public String maxTime()
      Get the maxTime property: The larger timestamp of the two fragments compared.
      Returns:
      the maxTime value.
    • withMaxTime

      public LiveEventStreamEventData withMaxTime(String maxTime)
      Set the maxTime property: The larger timestamp of the two fragments compared.
      Parameters:
      maxTime - the maxTime value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • maxTimeMediaType

      public LiveEventStreamEventMaxTimeMediaType maxTimeMediaType()
      Get the maxTimeMediaType property: The media type of the larger timestamp of two fragments compared.
      Returns:
      the maxTimeMediaType value.
    • withMaxTimeMediaType

      public LiveEventStreamEventData withMaxTimeMediaType(LiveEventStreamEventMaxTimeMediaType maxTimeMediaType)
      Set the maxTimeMediaType property: The media type of the larger timestamp of two fragments compared.
      Parameters:
      maxTimeMediaType - the maxTimeMediaType value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • timescaleOfMinTime

      public String timescaleOfMinTime()
      Get the timescaleOfMinTime property: Timescale of the fragment with the smaller timestamp.
      Returns:
      the timescaleOfMinTime value.
    • withTimescaleOfMinTime

      public LiveEventStreamEventData withTimescaleOfMinTime(String timescaleOfMinTime)
      Set the timescaleOfMinTime property: Timescale of the fragment with the smaller timestamp.
      Parameters:
      timescaleOfMinTime - the timescaleOfMinTime value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • timescaleOfMaxTime

      public String timescaleOfMaxTime()
      Get the timescaleOfMaxTime property: Timescale of the fragment with the larger timestamp.
      Returns:
      the timescaleOfMaxTime value.
    • withTimescaleOfMaxTime

      public LiveEventStreamEventData withTimescaleOfMaxTime(String timescaleOfMaxTime)
      Set the timescaleOfMaxTime property: Timescale of the fragment with the larger timestamp.
      Parameters:
      timescaleOfMaxTime - the timescaleOfMaxTime value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • remoteIp

      public String remoteIp()
      Get the remoteIp property: Truncated IP of the encoder.
      Returns:
      the remoteIp value.
    • withRemoteIp

      public LiveEventStreamEventData withRemoteIp(String remoteIp)
      Set the remoteIp property: Truncated IP of the encoder.
      Parameters:
      remoteIp - the remoteIp value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • remotePort

      public String remotePort()
      Get the remotePort property: Port of the encoder.
      Returns:
      the remotePort value.
    • withRemotePort

      public LiveEventStreamEventData withRemotePort(String remotePort)
      Set the remotePort property: Port of the encoder.
      Parameters:
      remotePort - the remotePort value to set.
      Returns:
      the LiveEventStreamEventData object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.