{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MediaLive.Types.Scte35SegmentationDescriptor
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaLive.Types.Scte35SegmentationDescriptor where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaLive.Types.Scte35DeliveryRestrictions
import Amazonka.MediaLive.Types.Scte35SegmentationCancelIndicator
import qualified Amazonka.Prelude as Prelude

-- | Corresponds to SCTE-35 segmentation_descriptor.
--
-- /See:/ 'newScte35SegmentationDescriptor' smart constructor.
data Scte35SegmentationDescriptor = Scte35SegmentationDescriptor'
  { -- | Corresponds to SCTE-35 segmentation_upid_type. On the console, enter one
    -- of the types listed in the SCTE-35 specification, converted to a
    -- decimal. For example, \"0x0C\" hex from the specification is \"12\" in
    -- decimal. In the CLI, API, or an SDK, enter one of the types listed in
    -- the SCTE-35 specification, in either hex (for example, \"0x0C\" ) or in
    -- decimal (for example, \"12\").
    Scte35SegmentationDescriptor -> Maybe Natural
segmentationUpidType :: Prelude.Maybe Prelude.Natural,
    -- | Corresponds to SCTE-35 segments_expected. A value that is valid for the
    -- specified segmentation_type_id.
    Scte35SegmentationDescriptor -> Maybe Natural
segmentsExpected :: Prelude.Maybe Prelude.Natural,
    -- | Corresponds to SCTE-35 sub_segments_expected. A value that is valid for
    -- the specified segmentation_type_id.
    Scte35SegmentationDescriptor -> Maybe Natural
subSegmentsExpected :: Prelude.Maybe Prelude.Natural,
    -- | Corresponds to SCTE-35 segment_num. A value that is valid for the
    -- specified segmentation_type_id.
    Scte35SegmentationDescriptor -> Maybe Natural
segmentNum :: Prelude.Maybe Prelude.Natural,
    -- | Corresponds to SCTE-35 segmentation_duration. Optional. The duration for
    -- the time_signal, in 90 KHz ticks. To convert seconds to ticks, multiple
    -- the seconds by 90,000. Enter time in 90 KHz clock ticks. If you do not
    -- enter a duration, the time_signal will continue until you insert a
    -- cancellation message.
    Scte35SegmentationDescriptor -> Maybe Natural
segmentationDuration :: Prelude.Maybe Prelude.Natural,
    -- | Corresponds to SCTE-35 segmentation_type_id. One of the
    -- segmentation_type_id values listed in the SCTE-35 specification. On the
    -- console, enter the ID in decimal (for example, \"52\"). In the CLI, API,
    -- or an SDK, enter the ID in hex (for example, \"0x34\") or decimal (for
    -- example, \"52\").
    Scte35SegmentationDescriptor -> Maybe Natural
segmentationTypeId :: Prelude.Maybe Prelude.Natural,
    -- | Holds the four SCTE-35 delivery restriction parameters.
    Scte35SegmentationDescriptor -> Maybe Scte35DeliveryRestrictions
deliveryRestrictions :: Prelude.Maybe Scte35DeliveryRestrictions,
    -- | Corresponds to SCTE-35 segmentation_upid. Enter a string containing the
    -- hexadecimal representation of the characters that make up the SCTE-35
    -- segmentation_upid value. Must contain an even number of hex characters.
    -- Do not include spaces between each hex pair. For example, the ASCII
    -- \"ADS Information\" becomes hex \"41445320496e666f726d6174696f6e.
    Scte35SegmentationDescriptor -> Maybe Text
segmentationUpid :: Prelude.Maybe Prelude.Text,
    -- | Corresponds to SCTE-35 sub_segment_num. A value that is valid for the
    -- specified segmentation_type_id.
    Scte35SegmentationDescriptor -> Maybe Natural
subSegmentNum :: Prelude.Maybe Prelude.Natural,
    -- | Corresponds to SCTE-35 segmentation_event_id.
    Scte35SegmentationDescriptor -> Natural
segmentationEventId :: Prelude.Natural,
    -- | Corresponds to SCTE-35 segmentation_event_cancel_indicator.
    Scte35SegmentationDescriptor -> Scte35SegmentationCancelIndicator
segmentationCancelIndicator :: Scte35SegmentationCancelIndicator
  }
  deriving (Scte35SegmentationDescriptor
-> Scte35SegmentationDescriptor -> Bool
(Scte35SegmentationDescriptor
 -> Scte35SegmentationDescriptor -> Bool)
-> (Scte35SegmentationDescriptor
    -> Scte35SegmentationDescriptor -> Bool)
-> Eq Scte35SegmentationDescriptor
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Scte35SegmentationDescriptor
-> Scte35SegmentationDescriptor -> Bool
$c/= :: Scte35SegmentationDescriptor
-> Scte35SegmentationDescriptor -> Bool
== :: Scte35SegmentationDescriptor
-> Scte35SegmentationDescriptor -> Bool
$c== :: Scte35SegmentationDescriptor
-> Scte35SegmentationDescriptor -> Bool
Prelude.Eq, ReadPrec [Scte35SegmentationDescriptor]
ReadPrec Scte35SegmentationDescriptor
Int -> ReadS Scte35SegmentationDescriptor
ReadS [Scte35SegmentationDescriptor]
(Int -> ReadS Scte35SegmentationDescriptor)
-> ReadS [Scte35SegmentationDescriptor]
-> ReadPrec Scte35SegmentationDescriptor
-> ReadPrec [Scte35SegmentationDescriptor]
-> Read Scte35SegmentationDescriptor
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Scte35SegmentationDescriptor]
$creadListPrec :: ReadPrec [Scte35SegmentationDescriptor]
readPrec :: ReadPrec Scte35SegmentationDescriptor
$creadPrec :: ReadPrec Scte35SegmentationDescriptor
readList :: ReadS [Scte35SegmentationDescriptor]
$creadList :: ReadS [Scte35SegmentationDescriptor]
readsPrec :: Int -> ReadS Scte35SegmentationDescriptor
$creadsPrec :: Int -> ReadS Scte35SegmentationDescriptor
Prelude.Read, Int -> Scte35SegmentationDescriptor -> ShowS
[Scte35SegmentationDescriptor] -> ShowS
Scte35SegmentationDescriptor -> String
(Int -> Scte35SegmentationDescriptor -> ShowS)
-> (Scte35SegmentationDescriptor -> String)
-> ([Scte35SegmentationDescriptor] -> ShowS)
-> Show Scte35SegmentationDescriptor
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Scte35SegmentationDescriptor] -> ShowS
$cshowList :: [Scte35SegmentationDescriptor] -> ShowS
show :: Scte35SegmentationDescriptor -> String
$cshow :: Scte35SegmentationDescriptor -> String
showsPrec :: Int -> Scte35SegmentationDescriptor -> ShowS
$cshowsPrec :: Int -> Scte35SegmentationDescriptor -> ShowS
Prelude.Show, (forall x.
 Scte35SegmentationDescriptor -> Rep Scte35SegmentationDescriptor x)
-> (forall x.
    Rep Scte35SegmentationDescriptor x -> Scte35SegmentationDescriptor)
-> Generic Scte35SegmentationDescriptor
forall x.
Rep Scte35SegmentationDescriptor x -> Scte35SegmentationDescriptor
forall x.
Scte35SegmentationDescriptor -> Rep Scte35SegmentationDescriptor x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep Scte35SegmentationDescriptor x -> Scte35SegmentationDescriptor
$cfrom :: forall x.
Scte35SegmentationDescriptor -> Rep Scte35SegmentationDescriptor x
Prelude.Generic)

-- |
-- Create a value of 'Scte35SegmentationDescriptor' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'segmentationUpidType', 'scte35SegmentationDescriptor_segmentationUpidType' - Corresponds to SCTE-35 segmentation_upid_type. On the console, enter one
-- of the types listed in the SCTE-35 specification, converted to a
-- decimal. For example, \"0x0C\" hex from the specification is \"12\" in
-- decimal. In the CLI, API, or an SDK, enter one of the types listed in
-- the SCTE-35 specification, in either hex (for example, \"0x0C\" ) or in
-- decimal (for example, \"12\").
--
-- 'segmentsExpected', 'scte35SegmentationDescriptor_segmentsExpected' - Corresponds to SCTE-35 segments_expected. A value that is valid for the
-- specified segmentation_type_id.
--
-- 'subSegmentsExpected', 'scte35SegmentationDescriptor_subSegmentsExpected' - Corresponds to SCTE-35 sub_segments_expected. A value that is valid for
-- the specified segmentation_type_id.
--
-- 'segmentNum', 'scte35SegmentationDescriptor_segmentNum' - Corresponds to SCTE-35 segment_num. A value that is valid for the
-- specified segmentation_type_id.
--
-- 'segmentationDuration', 'scte35SegmentationDescriptor_segmentationDuration' - Corresponds to SCTE-35 segmentation_duration. Optional. The duration for
-- the time_signal, in 90 KHz ticks. To convert seconds to ticks, multiple
-- the seconds by 90,000. Enter time in 90 KHz clock ticks. If you do not
-- enter a duration, the time_signal will continue until you insert a
-- cancellation message.
--
-- 'segmentationTypeId', 'scte35SegmentationDescriptor_segmentationTypeId' - Corresponds to SCTE-35 segmentation_type_id. One of the
-- segmentation_type_id values listed in the SCTE-35 specification. On the
-- console, enter the ID in decimal (for example, \"52\"). In the CLI, API,
-- or an SDK, enter the ID in hex (for example, \"0x34\") or decimal (for
-- example, \"52\").
--
-- 'deliveryRestrictions', 'scte35SegmentationDescriptor_deliveryRestrictions' - Holds the four SCTE-35 delivery restriction parameters.
--
-- 'segmentationUpid', 'scte35SegmentationDescriptor_segmentationUpid' - Corresponds to SCTE-35 segmentation_upid. Enter a string containing the
-- hexadecimal representation of the characters that make up the SCTE-35
-- segmentation_upid value. Must contain an even number of hex characters.
-- Do not include spaces between each hex pair. For example, the ASCII
-- \"ADS Information\" becomes hex \"41445320496e666f726d6174696f6e.
--
-- 'subSegmentNum', 'scte35SegmentationDescriptor_subSegmentNum' - Corresponds to SCTE-35 sub_segment_num. A value that is valid for the
-- specified segmentation_type_id.
--
-- 'segmentationEventId', 'scte35SegmentationDescriptor_segmentationEventId' - Corresponds to SCTE-35 segmentation_event_id.
--
-- 'segmentationCancelIndicator', 'scte35SegmentationDescriptor_segmentationCancelIndicator' - Corresponds to SCTE-35 segmentation_event_cancel_indicator.
newScte35SegmentationDescriptor ::
  -- | 'segmentationEventId'
  Prelude.Natural ->
  -- | 'segmentationCancelIndicator'
  Scte35SegmentationCancelIndicator ->
  Scte35SegmentationDescriptor
newScte35SegmentationDescriptor :: Natural
-> Scte35SegmentationCancelIndicator
-> Scte35SegmentationDescriptor
newScte35SegmentationDescriptor
  Natural
pSegmentationEventId_
  Scte35SegmentationCancelIndicator
pSegmentationCancelIndicator_ =
    Scte35SegmentationDescriptor' :: Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Scte35DeliveryRestrictions
-> Maybe Text
-> Maybe Natural
-> Natural
-> Scte35SegmentationCancelIndicator
-> Scte35SegmentationDescriptor
Scte35SegmentationDescriptor'
      { $sel:segmentationUpidType:Scte35SegmentationDescriptor' :: Maybe Natural
segmentationUpidType =
          Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:segmentsExpected:Scte35SegmentationDescriptor' :: Maybe Natural
segmentsExpected = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:subSegmentsExpected:Scte35SegmentationDescriptor' :: Maybe Natural
subSegmentsExpected = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:segmentNum:Scte35SegmentationDescriptor' :: Maybe Natural
segmentNum = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:segmentationDuration:Scte35SegmentationDescriptor' :: Maybe Natural
segmentationDuration = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:segmentationTypeId:Scte35SegmentationDescriptor' :: Maybe Natural
segmentationTypeId = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:deliveryRestrictions:Scte35SegmentationDescriptor' :: Maybe Scte35DeliveryRestrictions
deliveryRestrictions = Maybe Scte35DeliveryRestrictions
forall a. Maybe a
Prelude.Nothing,
        $sel:segmentationUpid:Scte35SegmentationDescriptor' :: Maybe Text
segmentationUpid = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:subSegmentNum:Scte35SegmentationDescriptor' :: Maybe Natural
subSegmentNum = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:segmentationEventId:Scte35SegmentationDescriptor' :: Natural
segmentationEventId = Natural
pSegmentationEventId_,
        $sel:segmentationCancelIndicator:Scte35SegmentationDescriptor' :: Scte35SegmentationCancelIndicator
segmentationCancelIndicator =
          Scte35SegmentationCancelIndicator
pSegmentationCancelIndicator_
      }

-- | Corresponds to SCTE-35 segmentation_upid_type. On the console, enter one
-- of the types listed in the SCTE-35 specification, converted to a
-- decimal. For example, \"0x0C\" hex from the specification is \"12\" in
-- decimal. In the CLI, API, or an SDK, enter one of the types listed in
-- the SCTE-35 specification, in either hex (for example, \"0x0C\" ) or in
-- decimal (for example, \"12\").
scte35SegmentationDescriptor_segmentationUpidType :: Lens.Lens' Scte35SegmentationDescriptor (Prelude.Maybe Prelude.Natural)
scte35SegmentationDescriptor_segmentationUpidType :: (Maybe Natural -> f (Maybe Natural))
-> Scte35SegmentationDescriptor -> f Scte35SegmentationDescriptor
scte35SegmentationDescriptor_segmentationUpidType = (Scte35SegmentationDescriptor -> Maybe Natural)
-> (Scte35SegmentationDescriptor
    -> Maybe Natural -> Scte35SegmentationDescriptor)
-> Lens
     Scte35SegmentationDescriptor
     Scte35SegmentationDescriptor
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Scte35SegmentationDescriptor' {Maybe Natural
segmentationUpidType :: Maybe Natural
$sel:segmentationUpidType:Scte35SegmentationDescriptor' :: Scte35SegmentationDescriptor -> Maybe Natural
segmentationUpidType} -> Maybe Natural
segmentationUpidType) (\s :: Scte35SegmentationDescriptor
s@Scte35SegmentationDescriptor' {} Maybe Natural
a -> Scte35SegmentationDescriptor
s {$sel:segmentationUpidType:Scte35SegmentationDescriptor' :: Maybe Natural
segmentationUpidType = Maybe Natural
a} :: Scte35SegmentationDescriptor)

-- | Corresponds to SCTE-35 segments_expected. A value that is valid for the
-- specified segmentation_type_id.
scte35SegmentationDescriptor_segmentsExpected :: Lens.Lens' Scte35SegmentationDescriptor (Prelude.Maybe Prelude.Natural)
scte35SegmentationDescriptor_segmentsExpected :: (Maybe Natural -> f (Maybe Natural))
-> Scte35SegmentationDescriptor -> f Scte35SegmentationDescriptor
scte35SegmentationDescriptor_segmentsExpected = (Scte35SegmentationDescriptor -> Maybe Natural)
-> (Scte35SegmentationDescriptor
    -> Maybe Natural -> Scte35SegmentationDescriptor)
-> Lens
     Scte35SegmentationDescriptor
     Scte35SegmentationDescriptor
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Scte35SegmentationDescriptor' {Maybe Natural
segmentsExpected :: Maybe Natural
$sel:segmentsExpected:Scte35SegmentationDescriptor' :: Scte35SegmentationDescriptor -> Maybe Natural
segmentsExpected} -> Maybe Natural
segmentsExpected) (\s :: Scte35SegmentationDescriptor
s@Scte35SegmentationDescriptor' {} Maybe Natural
a -> Scte35SegmentationDescriptor
s {$sel:segmentsExpected:Scte35SegmentationDescriptor' :: Maybe Natural
segmentsExpected = Maybe Natural
a} :: Scte35SegmentationDescriptor)

-- | Corresponds to SCTE-35 sub_segments_expected. A value that is valid for
-- the specified segmentation_type_id.
scte35SegmentationDescriptor_subSegmentsExpected :: Lens.Lens' Scte35SegmentationDescriptor (Prelude.Maybe Prelude.Natural)
scte35SegmentationDescriptor_subSegmentsExpected :: (Maybe Natural -> f (Maybe Natural))
-> Scte35SegmentationDescriptor -> f Scte35SegmentationDescriptor
scte35SegmentationDescriptor_subSegmentsExpected = (Scte35SegmentationDescriptor -> Maybe Natural)
-> (Scte35SegmentationDescriptor
    -> Maybe Natural -> Scte35SegmentationDescriptor)
-> Lens
     Scte35SegmentationDescriptor
     Scte35SegmentationDescriptor
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Scte35SegmentationDescriptor' {Maybe Natural
subSegmentsExpected :: Maybe Natural
$sel:subSegmentsExpected:Scte35SegmentationDescriptor' :: Scte35SegmentationDescriptor -> Maybe Natural
subSegmentsExpected} -> Maybe Natural
subSegmentsExpected) (\s :: Scte35SegmentationDescriptor
s@Scte35SegmentationDescriptor' {} Maybe Natural
a -> Scte35SegmentationDescriptor
s {$sel:subSegmentsExpected:Scte35SegmentationDescriptor' :: Maybe Natural
subSegmentsExpected = Maybe Natural
a} :: Scte35SegmentationDescriptor)

-- | Corresponds to SCTE-35 segment_num. A value that is valid for the
-- specified segmentation_type_id.
scte35SegmentationDescriptor_segmentNum :: Lens.Lens' Scte35SegmentationDescriptor (Prelude.Maybe Prelude.Natural)
scte35SegmentationDescriptor_segmentNum :: (Maybe Natural -> f (Maybe Natural))
-> Scte35SegmentationDescriptor -> f Scte35SegmentationDescriptor
scte35SegmentationDescriptor_segmentNum = (Scte35SegmentationDescriptor -> Maybe Natural)
-> (Scte35SegmentationDescriptor
    -> Maybe Natural -> Scte35SegmentationDescriptor)
-> Lens
     Scte35SegmentationDescriptor
     Scte35SegmentationDescriptor
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Scte35SegmentationDescriptor' {Maybe Natural
segmentNum :: Maybe Natural
$sel:segmentNum:Scte35SegmentationDescriptor' :: Scte35SegmentationDescriptor -> Maybe Natural
segmentNum} -> Maybe Natural
segmentNum) (\s :: Scte35SegmentationDescriptor
s@Scte35SegmentationDescriptor' {} Maybe Natural
a -> Scte35SegmentationDescriptor
s {$sel:segmentNum:Scte35SegmentationDescriptor' :: Maybe Natural
segmentNum = Maybe Natural
a} :: Scte35SegmentationDescriptor)

-- | Corresponds to SCTE-35 segmentation_duration. Optional. The duration for
-- the time_signal, in 90 KHz ticks. To convert seconds to ticks, multiple
-- the seconds by 90,000. Enter time in 90 KHz clock ticks. If you do not
-- enter a duration, the time_signal will continue until you insert a
-- cancellation message.
scte35SegmentationDescriptor_segmentationDuration :: Lens.Lens' Scte35SegmentationDescriptor (Prelude.Maybe Prelude.Natural)
scte35SegmentationDescriptor_segmentationDuration :: (Maybe Natural -> f (Maybe Natural))
-> Scte35SegmentationDescriptor -> f Scte35SegmentationDescriptor
scte35SegmentationDescriptor_segmentationDuration = (Scte35SegmentationDescriptor -> Maybe Natural)
-> (Scte35SegmentationDescriptor
    -> Maybe Natural -> Scte35SegmentationDescriptor)
-> Lens
     Scte35SegmentationDescriptor
     Scte35SegmentationDescriptor
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Scte35SegmentationDescriptor' {Maybe Natural
segmentationDuration :: Maybe Natural
$sel:segmentationDuration:Scte35SegmentationDescriptor' :: Scte35SegmentationDescriptor -> Maybe Natural
segmentationDuration} -> Maybe Natural
segmentationDuration) (\s :: Scte35SegmentationDescriptor
s@Scte35SegmentationDescriptor' {} Maybe Natural
a -> Scte35SegmentationDescriptor
s {$sel:segmentationDuration:Scte35SegmentationDescriptor' :: Maybe Natural
segmentationDuration = Maybe Natural
a} :: Scte35SegmentationDescriptor)

-- | Corresponds to SCTE-35 segmentation_type_id. One of the
-- segmentation_type_id values listed in the SCTE-35 specification. On the
-- console, enter the ID in decimal (for example, \"52\"). In the CLI, API,
-- or an SDK, enter the ID in hex (for example, \"0x34\") or decimal (for
-- example, \"52\").
scte35SegmentationDescriptor_segmentationTypeId :: Lens.Lens' Scte35SegmentationDescriptor (Prelude.Maybe Prelude.Natural)
scte35SegmentationDescriptor_segmentationTypeId :: (Maybe Natural -> f (Maybe Natural))
-> Scte35SegmentationDescriptor -> f Scte35SegmentationDescriptor
scte35SegmentationDescriptor_segmentationTypeId = (Scte35SegmentationDescriptor -> Maybe Natural)
-> (Scte35SegmentationDescriptor
    -> Maybe Natural -> Scte35SegmentationDescriptor)
-> Lens
     Scte35SegmentationDescriptor
     Scte35SegmentationDescriptor
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Scte35SegmentationDescriptor' {Maybe Natural
segmentationTypeId :: Maybe Natural
$sel:segmentationTypeId:Scte35SegmentationDescriptor' :: Scte35SegmentationDescriptor -> Maybe Natural
segmentationTypeId} -> Maybe Natural
segmentationTypeId) (\s :: Scte35SegmentationDescriptor
s@Scte35SegmentationDescriptor' {} Maybe Natural
a -> Scte35SegmentationDescriptor
s {$sel:segmentationTypeId:Scte35SegmentationDescriptor' :: Maybe Natural
segmentationTypeId = Maybe Natural
a} :: Scte35SegmentationDescriptor)

-- | Holds the four SCTE-35 delivery restriction parameters.
scte35SegmentationDescriptor_deliveryRestrictions :: Lens.Lens' Scte35SegmentationDescriptor (Prelude.Maybe Scte35DeliveryRestrictions)
scte35SegmentationDescriptor_deliveryRestrictions :: (Maybe Scte35DeliveryRestrictions
 -> f (Maybe Scte35DeliveryRestrictions))
-> Scte35SegmentationDescriptor -> f Scte35SegmentationDescriptor
scte35SegmentationDescriptor_deliveryRestrictions = (Scte35SegmentationDescriptor -> Maybe Scte35DeliveryRestrictions)
-> (Scte35SegmentationDescriptor
    -> Maybe Scte35DeliveryRestrictions
    -> Scte35SegmentationDescriptor)
-> Lens
     Scte35SegmentationDescriptor
     Scte35SegmentationDescriptor
     (Maybe Scte35DeliveryRestrictions)
     (Maybe Scte35DeliveryRestrictions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Scte35SegmentationDescriptor' {Maybe Scte35DeliveryRestrictions
deliveryRestrictions :: Maybe Scte35DeliveryRestrictions
$sel:deliveryRestrictions:Scte35SegmentationDescriptor' :: Scte35SegmentationDescriptor -> Maybe Scte35DeliveryRestrictions
deliveryRestrictions} -> Maybe Scte35DeliveryRestrictions
deliveryRestrictions) (\s :: Scte35SegmentationDescriptor
s@Scte35SegmentationDescriptor' {} Maybe Scte35DeliveryRestrictions
a -> Scte35SegmentationDescriptor
s {$sel:deliveryRestrictions:Scte35SegmentationDescriptor' :: Maybe Scte35DeliveryRestrictions
deliveryRestrictions = Maybe Scte35DeliveryRestrictions
a} :: Scte35SegmentationDescriptor)

-- | Corresponds to SCTE-35 segmentation_upid. Enter a string containing the
-- hexadecimal representation of the characters that make up the SCTE-35
-- segmentation_upid value. Must contain an even number of hex characters.
-- Do not include spaces between each hex pair. For example, the ASCII
-- \"ADS Information\" becomes hex \"41445320496e666f726d6174696f6e.
scte35SegmentationDescriptor_segmentationUpid :: Lens.Lens' Scte35SegmentationDescriptor (Prelude.Maybe Prelude.Text)
scte35SegmentationDescriptor_segmentationUpid :: (Maybe Text -> f (Maybe Text))
-> Scte35SegmentationDescriptor -> f Scte35SegmentationDescriptor
scte35SegmentationDescriptor_segmentationUpid = (Scte35SegmentationDescriptor -> Maybe Text)
-> (Scte35SegmentationDescriptor
    -> Maybe Text -> Scte35SegmentationDescriptor)
-> Lens
     Scte35SegmentationDescriptor
     Scte35SegmentationDescriptor
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Scte35SegmentationDescriptor' {Maybe Text
segmentationUpid :: Maybe Text
$sel:segmentationUpid:Scte35SegmentationDescriptor' :: Scte35SegmentationDescriptor -> Maybe Text
segmentationUpid} -> Maybe Text
segmentationUpid) (\s :: Scte35SegmentationDescriptor
s@Scte35SegmentationDescriptor' {} Maybe Text
a -> Scte35SegmentationDescriptor
s {$sel:segmentationUpid:Scte35SegmentationDescriptor' :: Maybe Text
segmentationUpid = Maybe Text
a} :: Scte35SegmentationDescriptor)

-- | Corresponds to SCTE-35 sub_segment_num. A value that is valid for the
-- specified segmentation_type_id.
scte35SegmentationDescriptor_subSegmentNum :: Lens.Lens' Scte35SegmentationDescriptor (Prelude.Maybe Prelude.Natural)
scte35SegmentationDescriptor_subSegmentNum :: (Maybe Natural -> f (Maybe Natural))
-> Scte35SegmentationDescriptor -> f Scte35SegmentationDescriptor
scte35SegmentationDescriptor_subSegmentNum = (Scte35SegmentationDescriptor -> Maybe Natural)
-> (Scte35SegmentationDescriptor
    -> Maybe Natural -> Scte35SegmentationDescriptor)
-> Lens
     Scte35SegmentationDescriptor
     Scte35SegmentationDescriptor
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Scte35SegmentationDescriptor' {Maybe Natural
subSegmentNum :: Maybe Natural
$sel:subSegmentNum:Scte35SegmentationDescriptor' :: Scte35SegmentationDescriptor -> Maybe Natural
subSegmentNum} -> Maybe Natural
subSegmentNum) (\s :: Scte35SegmentationDescriptor
s@Scte35SegmentationDescriptor' {} Maybe Natural
a -> Scte35SegmentationDescriptor
s {$sel:subSegmentNum:Scte35SegmentationDescriptor' :: Maybe Natural
subSegmentNum = Maybe Natural
a} :: Scte35SegmentationDescriptor)

-- | Corresponds to SCTE-35 segmentation_event_id.
scte35SegmentationDescriptor_segmentationEventId :: Lens.Lens' Scte35SegmentationDescriptor Prelude.Natural
scte35SegmentationDescriptor_segmentationEventId :: (Natural -> f Natural)
-> Scte35SegmentationDescriptor -> f Scte35SegmentationDescriptor
scte35SegmentationDescriptor_segmentationEventId = (Scte35SegmentationDescriptor -> Natural)
-> (Scte35SegmentationDescriptor
    -> Natural -> Scte35SegmentationDescriptor)
-> Lens
     Scte35SegmentationDescriptor
     Scte35SegmentationDescriptor
     Natural
     Natural
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Scte35SegmentationDescriptor' {Natural
segmentationEventId :: Natural
$sel:segmentationEventId:Scte35SegmentationDescriptor' :: Scte35SegmentationDescriptor -> Natural
segmentationEventId} -> Natural
segmentationEventId) (\s :: Scte35SegmentationDescriptor
s@Scte35SegmentationDescriptor' {} Natural
a -> Scte35SegmentationDescriptor
s {$sel:segmentationEventId:Scte35SegmentationDescriptor' :: Natural
segmentationEventId = Natural
a} :: Scte35SegmentationDescriptor)

-- | Corresponds to SCTE-35 segmentation_event_cancel_indicator.
scte35SegmentationDescriptor_segmentationCancelIndicator :: Lens.Lens' Scte35SegmentationDescriptor Scte35SegmentationCancelIndicator
scte35SegmentationDescriptor_segmentationCancelIndicator :: (Scte35SegmentationCancelIndicator
 -> f Scte35SegmentationCancelIndicator)
-> Scte35SegmentationDescriptor -> f Scte35SegmentationDescriptor
scte35SegmentationDescriptor_segmentationCancelIndicator = (Scte35SegmentationDescriptor -> Scte35SegmentationCancelIndicator)
-> (Scte35SegmentationDescriptor
    -> Scte35SegmentationCancelIndicator
    -> Scte35SegmentationDescriptor)
-> Lens
     Scte35SegmentationDescriptor
     Scte35SegmentationDescriptor
     Scte35SegmentationCancelIndicator
     Scte35SegmentationCancelIndicator
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Scte35SegmentationDescriptor' {Scte35SegmentationCancelIndicator
segmentationCancelIndicator :: Scte35SegmentationCancelIndicator
$sel:segmentationCancelIndicator:Scte35SegmentationDescriptor' :: Scte35SegmentationDescriptor -> Scte35SegmentationCancelIndicator
segmentationCancelIndicator} -> Scte35SegmentationCancelIndicator
segmentationCancelIndicator) (\s :: Scte35SegmentationDescriptor
s@Scte35SegmentationDescriptor' {} Scte35SegmentationCancelIndicator
a -> Scte35SegmentationDescriptor
s {$sel:segmentationCancelIndicator:Scte35SegmentationDescriptor' :: Scte35SegmentationCancelIndicator
segmentationCancelIndicator = Scte35SegmentationCancelIndicator
a} :: Scte35SegmentationDescriptor)

instance Core.FromJSON Scte35SegmentationDescriptor where
  parseJSON :: Value -> Parser Scte35SegmentationDescriptor
parseJSON =
    String
-> (Object -> Parser Scte35SegmentationDescriptor)
-> Value
-> Parser Scte35SegmentationDescriptor
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"Scte35SegmentationDescriptor"
      ( \Object
x ->
          Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Scte35DeliveryRestrictions
-> Maybe Text
-> Maybe Natural
-> Natural
-> Scte35SegmentationCancelIndicator
-> Scte35SegmentationDescriptor
Scte35SegmentationDescriptor'
            (Maybe Natural
 -> Maybe Natural
 -> Maybe Natural
 -> Maybe Natural
 -> Maybe Natural
 -> Maybe Natural
 -> Maybe Scte35DeliveryRestrictions
 -> Maybe Text
 -> Maybe Natural
 -> Natural
 -> Scte35SegmentationCancelIndicator
 -> Scte35SegmentationDescriptor)
-> Parser (Maybe Natural)
-> Parser
     (Maybe Natural
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe Scte35DeliveryRestrictions
      -> Maybe Text
      -> Maybe Natural
      -> Natural
      -> Scte35SegmentationCancelIndicator
      -> Scte35SegmentationDescriptor)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"segmentationUpidType")
            Parser
  (Maybe Natural
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe Scte35DeliveryRestrictions
   -> Maybe Text
   -> Maybe Natural
   -> Natural
   -> Scte35SegmentationCancelIndicator
   -> Scte35SegmentationDescriptor)
-> Parser (Maybe Natural)
-> Parser
     (Maybe Natural
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe Scte35DeliveryRestrictions
      -> Maybe Text
      -> Maybe Natural
      -> Natural
      -> Scte35SegmentationCancelIndicator
      -> Scte35SegmentationDescriptor)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"segmentsExpected")
            Parser
  (Maybe Natural
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe Scte35DeliveryRestrictions
   -> Maybe Text
   -> Maybe Natural
   -> Natural
   -> Scte35SegmentationCancelIndicator
   -> Scte35SegmentationDescriptor)
-> Parser (Maybe Natural)
-> Parser
     (Maybe Natural
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe Scte35DeliveryRestrictions
      -> Maybe Text
      -> Maybe Natural
      -> Natural
      -> Scte35SegmentationCancelIndicator
      -> Scte35SegmentationDescriptor)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"subSegmentsExpected")
            Parser
  (Maybe Natural
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe Scte35DeliveryRestrictions
   -> Maybe Text
   -> Maybe Natural
   -> Natural
   -> Scte35SegmentationCancelIndicator
   -> Scte35SegmentationDescriptor)
-> Parser (Maybe Natural)
-> Parser
     (Maybe Natural
      -> Maybe Natural
      -> Maybe Scte35DeliveryRestrictions
      -> Maybe Text
      -> Maybe Natural
      -> Natural
      -> Scte35SegmentationCancelIndicator
      -> Scte35SegmentationDescriptor)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"segmentNum")
            Parser
  (Maybe Natural
   -> Maybe Natural
   -> Maybe Scte35DeliveryRestrictions
   -> Maybe Text
   -> Maybe Natural
   -> Natural
   -> Scte35SegmentationCancelIndicator
   -> Scte35SegmentationDescriptor)
-> Parser (Maybe Natural)
-> Parser
     (Maybe Natural
      -> Maybe Scte35DeliveryRestrictions
      -> Maybe Text
      -> Maybe Natural
      -> Natural
      -> Scte35SegmentationCancelIndicator
      -> Scte35SegmentationDescriptor)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"segmentationDuration")
            Parser
  (Maybe Natural
   -> Maybe Scte35DeliveryRestrictions
   -> Maybe Text
   -> Maybe Natural
   -> Natural
   -> Scte35SegmentationCancelIndicator
   -> Scte35SegmentationDescriptor)
-> Parser (Maybe Natural)
-> Parser
     (Maybe Scte35DeliveryRestrictions
      -> Maybe Text
      -> Maybe Natural
      -> Natural
      -> Scte35SegmentationCancelIndicator
      -> Scte35SegmentationDescriptor)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"segmentationTypeId")
            Parser
  (Maybe Scte35DeliveryRestrictions
   -> Maybe Text
   -> Maybe Natural
   -> Natural
   -> Scte35SegmentationCancelIndicator
   -> Scte35SegmentationDescriptor)
-> Parser (Maybe Scte35DeliveryRestrictions)
-> Parser
     (Maybe Text
      -> Maybe Natural
      -> Natural
      -> Scte35SegmentationCancelIndicator
      -> Scte35SegmentationDescriptor)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Scte35DeliveryRestrictions)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"deliveryRestrictions")
            Parser
  (Maybe Text
   -> Maybe Natural
   -> Natural
   -> Scte35SegmentationCancelIndicator
   -> Scte35SegmentationDescriptor)
-> Parser (Maybe Text)
-> Parser
     (Maybe Natural
      -> Natural
      -> Scte35SegmentationCancelIndicator
      -> Scte35SegmentationDescriptor)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"segmentationUpid")
            Parser
  (Maybe Natural
   -> Natural
   -> Scte35SegmentationCancelIndicator
   -> Scte35SegmentationDescriptor)
-> Parser (Maybe Natural)
-> Parser
     (Natural
      -> Scte35SegmentationCancelIndicator
      -> Scte35SegmentationDescriptor)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"subSegmentNum")
            Parser
  (Natural
   -> Scte35SegmentationCancelIndicator
   -> Scte35SegmentationDescriptor)
-> Parser Natural
-> Parser
     (Scte35SegmentationCancelIndicator -> Scte35SegmentationDescriptor)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Natural
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"segmentationEventId")
            Parser
  (Scte35SegmentationCancelIndicator -> Scte35SegmentationDescriptor)
-> Parser Scte35SegmentationCancelIndicator
-> Parser Scte35SegmentationDescriptor
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Scte35SegmentationCancelIndicator
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"segmentationCancelIndicator")
      )

instance
  Prelude.Hashable
    Scte35SegmentationDescriptor

instance Prelude.NFData Scte35SegmentationDescriptor

instance Core.ToJSON Scte35SegmentationDescriptor where
  toJSON :: Scte35SegmentationDescriptor -> Value
toJSON Scte35SegmentationDescriptor' {Natural
Maybe Natural
Maybe Text
Maybe Scte35DeliveryRestrictions
Scte35SegmentationCancelIndicator
segmentationCancelIndicator :: Scte35SegmentationCancelIndicator
segmentationEventId :: Natural
subSegmentNum :: Maybe Natural
segmentationUpid :: Maybe Text
deliveryRestrictions :: Maybe Scte35DeliveryRestrictions
segmentationTypeId :: Maybe Natural
segmentationDuration :: Maybe Natural
segmentNum :: Maybe Natural
subSegmentsExpected :: Maybe Natural
segmentsExpected :: Maybe Natural
segmentationUpidType :: Maybe Natural
$sel:segmentationCancelIndicator:Scte35SegmentationDescriptor' :: Scte35SegmentationDescriptor -> Scte35SegmentationCancelIndicator
$sel:segmentationEventId:Scte35SegmentationDescriptor' :: Scte35SegmentationDescriptor -> Natural
$sel:subSegmentNum:Scte35SegmentationDescriptor' :: Scte35SegmentationDescriptor -> Maybe Natural
$sel:segmentationUpid:Scte35SegmentationDescriptor' :: Scte35SegmentationDescriptor -> Maybe Text
$sel:deliveryRestrictions:Scte35SegmentationDescriptor' :: Scte35SegmentationDescriptor -> Maybe Scte35DeliveryRestrictions
$sel:segmentationTypeId:Scte35SegmentationDescriptor' :: Scte35SegmentationDescriptor -> Maybe Natural
$sel:segmentationDuration:Scte35SegmentationDescriptor' :: Scte35SegmentationDescriptor -> Maybe Natural
$sel:segmentNum:Scte35SegmentationDescriptor' :: Scte35SegmentationDescriptor -> Maybe Natural
$sel:subSegmentsExpected:Scte35SegmentationDescriptor' :: Scte35SegmentationDescriptor -> Maybe Natural
$sel:segmentsExpected:Scte35SegmentationDescriptor' :: Scte35SegmentationDescriptor -> Maybe Natural
$sel:segmentationUpidType:Scte35SegmentationDescriptor' :: Scte35SegmentationDescriptor -> Maybe Natural
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"segmentationUpidType" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
segmentationUpidType,
            (Text
"segmentsExpected" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
segmentsExpected,
            (Text
"subSegmentsExpected" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
subSegmentsExpected,
            (Text
"segmentNum" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
segmentNum,
            (Text
"segmentationDuration" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
segmentationDuration,
            (Text
"segmentationTypeId" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
segmentationTypeId,
            (Text
"deliveryRestrictions" Text -> Scte35DeliveryRestrictions -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Scte35DeliveryRestrictions -> Pair)
-> Maybe Scte35DeliveryRestrictions -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Scte35DeliveryRestrictions
deliveryRestrictions,
            (Text
"segmentationUpid" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
segmentationUpid,
            (Text
"subSegmentNum" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
subSegmentNum,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"segmentationEventId" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Natural
segmentationEventId),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              ( Text
"segmentationCancelIndicator"
                  Text -> Scte35SegmentationCancelIndicator -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Scte35SegmentationCancelIndicator
segmentationCancelIndicator
              )
          ]
      )