{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

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

-- |
-- Module      : Amazonka.MediaConvert.Types.DashIsoWriteSegmentTimelineInRepresentation
-- 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.MediaConvert.Types.DashIsoWriteSegmentTimelineInRepresentation
  ( DashIsoWriteSegmentTimelineInRepresentation
      ( ..,
        DashIsoWriteSegmentTimelineInRepresentation_DISABLED,
        DashIsoWriteSegmentTimelineInRepresentation_ENABLED
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

-- | When you enable Precise segment duration in manifests
-- (writeSegmentTimelineInRepresentation), your DASH manifest shows precise
-- segment durations. The segment duration information appears inside the
-- SegmentTimeline element, inside SegmentTemplate at the Representation
-- level. When this feature isn\'t enabled, the segment durations in your
-- DASH manifest are approximate. The segment duration information appears
-- in the duration attribute of the SegmentTemplate element.
newtype DashIsoWriteSegmentTimelineInRepresentation = DashIsoWriteSegmentTimelineInRepresentation'
  { DashIsoWriteSegmentTimelineInRepresentation -> Text
fromDashIsoWriteSegmentTimelineInRepresentation ::
      Core.Text
  }
  deriving stock
    ( Int -> DashIsoWriteSegmentTimelineInRepresentation -> ShowS
[DashIsoWriteSegmentTimelineInRepresentation] -> ShowS
DashIsoWriteSegmentTimelineInRepresentation -> String
(Int -> DashIsoWriteSegmentTimelineInRepresentation -> ShowS)
-> (DashIsoWriteSegmentTimelineInRepresentation -> String)
-> ([DashIsoWriteSegmentTimelineInRepresentation] -> ShowS)
-> Show DashIsoWriteSegmentTimelineInRepresentation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DashIsoWriteSegmentTimelineInRepresentation] -> ShowS
$cshowList :: [DashIsoWriteSegmentTimelineInRepresentation] -> ShowS
show :: DashIsoWriteSegmentTimelineInRepresentation -> String
$cshow :: DashIsoWriteSegmentTimelineInRepresentation -> String
showsPrec :: Int -> DashIsoWriteSegmentTimelineInRepresentation -> ShowS
$cshowsPrec :: Int -> DashIsoWriteSegmentTimelineInRepresentation -> ShowS
Prelude.Show,
      ReadPrec [DashIsoWriteSegmentTimelineInRepresentation]
ReadPrec DashIsoWriteSegmentTimelineInRepresentation
Int -> ReadS DashIsoWriteSegmentTimelineInRepresentation
ReadS [DashIsoWriteSegmentTimelineInRepresentation]
(Int -> ReadS DashIsoWriteSegmentTimelineInRepresentation)
-> ReadS [DashIsoWriteSegmentTimelineInRepresentation]
-> ReadPrec DashIsoWriteSegmentTimelineInRepresentation
-> ReadPrec [DashIsoWriteSegmentTimelineInRepresentation]
-> Read DashIsoWriteSegmentTimelineInRepresentation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DashIsoWriteSegmentTimelineInRepresentation]
$creadListPrec :: ReadPrec [DashIsoWriteSegmentTimelineInRepresentation]
readPrec :: ReadPrec DashIsoWriteSegmentTimelineInRepresentation
$creadPrec :: ReadPrec DashIsoWriteSegmentTimelineInRepresentation
readList :: ReadS [DashIsoWriteSegmentTimelineInRepresentation]
$creadList :: ReadS [DashIsoWriteSegmentTimelineInRepresentation]
readsPrec :: Int -> ReadS DashIsoWriteSegmentTimelineInRepresentation
$creadsPrec :: Int -> ReadS DashIsoWriteSegmentTimelineInRepresentation
Prelude.Read,
      DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation -> Bool
(DashIsoWriteSegmentTimelineInRepresentation
 -> DashIsoWriteSegmentTimelineInRepresentation -> Bool)
-> (DashIsoWriteSegmentTimelineInRepresentation
    -> DashIsoWriteSegmentTimelineInRepresentation -> Bool)
-> Eq DashIsoWriteSegmentTimelineInRepresentation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation -> Bool
$c/= :: DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation -> Bool
== :: DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation -> Bool
$c== :: DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation -> Bool
Prelude.Eq,
      Eq DashIsoWriteSegmentTimelineInRepresentation
Eq DashIsoWriteSegmentTimelineInRepresentation
-> (DashIsoWriteSegmentTimelineInRepresentation
    -> DashIsoWriteSegmentTimelineInRepresentation -> Ordering)
-> (DashIsoWriteSegmentTimelineInRepresentation
    -> DashIsoWriteSegmentTimelineInRepresentation -> Bool)
-> (DashIsoWriteSegmentTimelineInRepresentation
    -> DashIsoWriteSegmentTimelineInRepresentation -> Bool)
-> (DashIsoWriteSegmentTimelineInRepresentation
    -> DashIsoWriteSegmentTimelineInRepresentation -> Bool)
-> (DashIsoWriteSegmentTimelineInRepresentation
    -> DashIsoWriteSegmentTimelineInRepresentation -> Bool)
-> (DashIsoWriteSegmentTimelineInRepresentation
    -> DashIsoWriteSegmentTimelineInRepresentation
    -> DashIsoWriteSegmentTimelineInRepresentation)
-> (DashIsoWriteSegmentTimelineInRepresentation
    -> DashIsoWriteSegmentTimelineInRepresentation
    -> DashIsoWriteSegmentTimelineInRepresentation)
-> Ord DashIsoWriteSegmentTimelineInRepresentation
DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation -> Bool
DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation -> Ordering
DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation
$cmin :: DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation
max :: DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation
$cmax :: DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation
>= :: DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation -> Bool
$c>= :: DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation -> Bool
> :: DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation -> Bool
$c> :: DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation -> Bool
<= :: DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation -> Bool
$c<= :: DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation -> Bool
< :: DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation -> Bool
$c< :: DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation -> Bool
compare :: DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation -> Ordering
$ccompare :: DashIsoWriteSegmentTimelineInRepresentation
-> DashIsoWriteSegmentTimelineInRepresentation -> Ordering
$cp1Ord :: Eq DashIsoWriteSegmentTimelineInRepresentation
Prelude.Ord,
      (forall x.
 DashIsoWriteSegmentTimelineInRepresentation
 -> Rep DashIsoWriteSegmentTimelineInRepresentation x)
-> (forall x.
    Rep DashIsoWriteSegmentTimelineInRepresentation x
    -> DashIsoWriteSegmentTimelineInRepresentation)
-> Generic DashIsoWriteSegmentTimelineInRepresentation
forall x.
Rep DashIsoWriteSegmentTimelineInRepresentation x
-> DashIsoWriteSegmentTimelineInRepresentation
forall x.
DashIsoWriteSegmentTimelineInRepresentation
-> Rep DashIsoWriteSegmentTimelineInRepresentation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DashIsoWriteSegmentTimelineInRepresentation x
-> DashIsoWriteSegmentTimelineInRepresentation
$cfrom :: forall x.
DashIsoWriteSegmentTimelineInRepresentation
-> Rep DashIsoWriteSegmentTimelineInRepresentation x
Prelude.Generic
    )
  deriving newtype
    ( Int -> DashIsoWriteSegmentTimelineInRepresentation -> Int
DashIsoWriteSegmentTimelineInRepresentation -> Int
(Int -> DashIsoWriteSegmentTimelineInRepresentation -> Int)
-> (DashIsoWriteSegmentTimelineInRepresentation -> Int)
-> Hashable DashIsoWriteSegmentTimelineInRepresentation
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DashIsoWriteSegmentTimelineInRepresentation -> Int
$chash :: DashIsoWriteSegmentTimelineInRepresentation -> Int
hashWithSalt :: Int -> DashIsoWriteSegmentTimelineInRepresentation -> Int
$chashWithSalt :: Int -> DashIsoWriteSegmentTimelineInRepresentation -> Int
Prelude.Hashable,
      DashIsoWriteSegmentTimelineInRepresentation -> ()
(DashIsoWriteSegmentTimelineInRepresentation -> ())
-> NFData DashIsoWriteSegmentTimelineInRepresentation
forall a. (a -> ()) -> NFData a
rnf :: DashIsoWriteSegmentTimelineInRepresentation -> ()
$crnf :: DashIsoWriteSegmentTimelineInRepresentation -> ()
Prelude.NFData,
      Text -> Either String DashIsoWriteSegmentTimelineInRepresentation
(Text -> Either String DashIsoWriteSegmentTimelineInRepresentation)
-> FromText DashIsoWriteSegmentTimelineInRepresentation
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DashIsoWriteSegmentTimelineInRepresentation
$cfromText :: Text -> Either String DashIsoWriteSegmentTimelineInRepresentation
Core.FromText,
      DashIsoWriteSegmentTimelineInRepresentation -> Text
(DashIsoWriteSegmentTimelineInRepresentation -> Text)
-> ToText DashIsoWriteSegmentTimelineInRepresentation
forall a. (a -> Text) -> ToText a
toText :: DashIsoWriteSegmentTimelineInRepresentation -> Text
$ctoText :: DashIsoWriteSegmentTimelineInRepresentation -> Text
Core.ToText,
      DashIsoWriteSegmentTimelineInRepresentation -> ByteString
(DashIsoWriteSegmentTimelineInRepresentation -> ByteString)
-> ToByteString DashIsoWriteSegmentTimelineInRepresentation
forall a. (a -> ByteString) -> ToByteString a
toBS :: DashIsoWriteSegmentTimelineInRepresentation -> ByteString
$ctoBS :: DashIsoWriteSegmentTimelineInRepresentation -> ByteString
Core.ToByteString,
      DashIsoWriteSegmentTimelineInRepresentation -> ByteStringBuilder
(DashIsoWriteSegmentTimelineInRepresentation -> ByteStringBuilder)
-> ToLog DashIsoWriteSegmentTimelineInRepresentation
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DashIsoWriteSegmentTimelineInRepresentation -> ByteStringBuilder
$cbuild :: DashIsoWriteSegmentTimelineInRepresentation -> ByteStringBuilder
Core.ToLog,
      HeaderName
-> DashIsoWriteSegmentTimelineInRepresentation -> [Header]
(HeaderName
 -> DashIsoWriteSegmentTimelineInRepresentation -> [Header])
-> ToHeader DashIsoWriteSegmentTimelineInRepresentation
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName
-> DashIsoWriteSegmentTimelineInRepresentation -> [Header]
$ctoHeader :: HeaderName
-> DashIsoWriteSegmentTimelineInRepresentation -> [Header]
Core.ToHeader,
      DashIsoWriteSegmentTimelineInRepresentation -> QueryString
(DashIsoWriteSegmentTimelineInRepresentation -> QueryString)
-> ToQuery DashIsoWriteSegmentTimelineInRepresentation
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DashIsoWriteSegmentTimelineInRepresentation -> QueryString
$ctoQuery :: DashIsoWriteSegmentTimelineInRepresentation -> QueryString
Core.ToQuery,
      Value -> Parser [DashIsoWriteSegmentTimelineInRepresentation]
Value -> Parser DashIsoWriteSegmentTimelineInRepresentation
(Value -> Parser DashIsoWriteSegmentTimelineInRepresentation)
-> (Value -> Parser [DashIsoWriteSegmentTimelineInRepresentation])
-> FromJSON DashIsoWriteSegmentTimelineInRepresentation
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DashIsoWriteSegmentTimelineInRepresentation]
$cparseJSONList :: Value -> Parser [DashIsoWriteSegmentTimelineInRepresentation]
parseJSON :: Value -> Parser DashIsoWriteSegmentTimelineInRepresentation
$cparseJSON :: Value -> Parser DashIsoWriteSegmentTimelineInRepresentation
Core.FromJSON,
      FromJSONKeyFunction [DashIsoWriteSegmentTimelineInRepresentation]
FromJSONKeyFunction DashIsoWriteSegmentTimelineInRepresentation
FromJSONKeyFunction DashIsoWriteSegmentTimelineInRepresentation
-> FromJSONKeyFunction
     [DashIsoWriteSegmentTimelineInRepresentation]
-> FromJSONKey DashIsoWriteSegmentTimelineInRepresentation
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DashIsoWriteSegmentTimelineInRepresentation]
$cfromJSONKeyList :: FromJSONKeyFunction [DashIsoWriteSegmentTimelineInRepresentation]
fromJSONKey :: FromJSONKeyFunction DashIsoWriteSegmentTimelineInRepresentation
$cfromJSONKey :: FromJSONKeyFunction DashIsoWriteSegmentTimelineInRepresentation
Core.FromJSONKey,
      [DashIsoWriteSegmentTimelineInRepresentation] -> Encoding
[DashIsoWriteSegmentTimelineInRepresentation] -> Value
DashIsoWriteSegmentTimelineInRepresentation -> Encoding
DashIsoWriteSegmentTimelineInRepresentation -> Value
(DashIsoWriteSegmentTimelineInRepresentation -> Value)
-> (DashIsoWriteSegmentTimelineInRepresentation -> Encoding)
-> ([DashIsoWriteSegmentTimelineInRepresentation] -> Value)
-> ([DashIsoWriteSegmentTimelineInRepresentation] -> Encoding)
-> ToJSON DashIsoWriteSegmentTimelineInRepresentation
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DashIsoWriteSegmentTimelineInRepresentation] -> Encoding
$ctoEncodingList :: [DashIsoWriteSegmentTimelineInRepresentation] -> Encoding
toJSONList :: [DashIsoWriteSegmentTimelineInRepresentation] -> Value
$ctoJSONList :: [DashIsoWriteSegmentTimelineInRepresentation] -> Value
toEncoding :: DashIsoWriteSegmentTimelineInRepresentation -> Encoding
$ctoEncoding :: DashIsoWriteSegmentTimelineInRepresentation -> Encoding
toJSON :: DashIsoWriteSegmentTimelineInRepresentation -> Value
$ctoJSON :: DashIsoWriteSegmentTimelineInRepresentation -> Value
Core.ToJSON,
      ToJSONKeyFunction [DashIsoWriteSegmentTimelineInRepresentation]
ToJSONKeyFunction DashIsoWriteSegmentTimelineInRepresentation
ToJSONKeyFunction DashIsoWriteSegmentTimelineInRepresentation
-> ToJSONKeyFunction [DashIsoWriteSegmentTimelineInRepresentation]
-> ToJSONKey DashIsoWriteSegmentTimelineInRepresentation
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DashIsoWriteSegmentTimelineInRepresentation]
$ctoJSONKeyList :: ToJSONKeyFunction [DashIsoWriteSegmentTimelineInRepresentation]
toJSONKey :: ToJSONKeyFunction DashIsoWriteSegmentTimelineInRepresentation
$ctoJSONKey :: ToJSONKeyFunction DashIsoWriteSegmentTimelineInRepresentation
Core.ToJSONKey,
      [Node] -> Either String DashIsoWriteSegmentTimelineInRepresentation
([Node]
 -> Either String DashIsoWriteSegmentTimelineInRepresentation)
-> FromXML DashIsoWriteSegmentTimelineInRepresentation
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DashIsoWriteSegmentTimelineInRepresentation
$cparseXML :: [Node] -> Either String DashIsoWriteSegmentTimelineInRepresentation
Core.FromXML,
      DashIsoWriteSegmentTimelineInRepresentation -> XML
(DashIsoWriteSegmentTimelineInRepresentation -> XML)
-> ToXML DashIsoWriteSegmentTimelineInRepresentation
forall a. (a -> XML) -> ToXML a
toXML :: DashIsoWriteSegmentTimelineInRepresentation -> XML
$ctoXML :: DashIsoWriteSegmentTimelineInRepresentation -> XML
Core.ToXML
    )

pattern DashIsoWriteSegmentTimelineInRepresentation_DISABLED :: DashIsoWriteSegmentTimelineInRepresentation
pattern $bDashIsoWriteSegmentTimelineInRepresentation_DISABLED :: DashIsoWriteSegmentTimelineInRepresentation
$mDashIsoWriteSegmentTimelineInRepresentation_DISABLED :: forall r.
DashIsoWriteSegmentTimelineInRepresentation
-> (Void# -> r) -> (Void# -> r) -> r
DashIsoWriteSegmentTimelineInRepresentation_DISABLED = DashIsoWriteSegmentTimelineInRepresentation' "DISABLED"

pattern DashIsoWriteSegmentTimelineInRepresentation_ENABLED :: DashIsoWriteSegmentTimelineInRepresentation
pattern $bDashIsoWriteSegmentTimelineInRepresentation_ENABLED :: DashIsoWriteSegmentTimelineInRepresentation
$mDashIsoWriteSegmentTimelineInRepresentation_ENABLED :: forall r.
DashIsoWriteSegmentTimelineInRepresentation
-> (Void# -> r) -> (Void# -> r) -> r
DashIsoWriteSegmentTimelineInRepresentation_ENABLED = DashIsoWriteSegmentTimelineInRepresentation' "ENABLED"

{-# COMPLETE
  DashIsoWriteSegmentTimelineInRepresentation_DISABLED,
  DashIsoWriteSegmentTimelineInRepresentation_ENABLED,
  DashIsoWriteSegmentTimelineInRepresentation'
  #-}