{-# 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 #-}
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
data Scte35SegmentationDescriptor = Scte35SegmentationDescriptor'
{
Scte35SegmentationDescriptor -> Maybe Natural
segmentationUpidType :: Prelude.Maybe Prelude.Natural,
Scte35SegmentationDescriptor -> Maybe Natural
segmentsExpected :: Prelude.Maybe Prelude.Natural,
Scte35SegmentationDescriptor -> Maybe Natural
subSegmentsExpected :: Prelude.Maybe Prelude.Natural,
Scte35SegmentationDescriptor -> Maybe Natural
segmentNum :: Prelude.Maybe Prelude.Natural,
Scte35SegmentationDescriptor -> Maybe Natural
segmentationDuration :: Prelude.Maybe Prelude.Natural,
Scte35SegmentationDescriptor -> Maybe Natural
segmentationTypeId :: Prelude.Maybe Prelude.Natural,
Scte35SegmentationDescriptor -> Maybe Scte35DeliveryRestrictions
deliveryRestrictions :: Prelude.Maybe Scte35DeliveryRestrictions,
Scte35SegmentationDescriptor -> Maybe Text
segmentationUpid :: Prelude.Maybe Prelude.Text,
Scte35SegmentationDescriptor -> Maybe Natural
subSegmentNum :: Prelude.Maybe Prelude.Natural,
Scte35SegmentationDescriptor -> Natural
segmentationEventId :: Prelude.Natural,
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)
newScte35SegmentationDescriptor ::
Prelude.Natural ->
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_
}
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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
)
]
)