{-# 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.MediaLive.Types.TimecodeConfigSource
-- 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.TimecodeConfigSource
  ( TimecodeConfigSource
      ( ..,
        TimecodeConfigSource_EMBEDDED,
        TimecodeConfigSource_SYSTEMCLOCK,
        TimecodeConfigSource_ZEROBASED
      ),
  )
where

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

-- | Timecode Config Source
newtype TimecodeConfigSource = TimecodeConfigSource'
  { TimecodeConfigSource -> Text
fromTimecodeConfigSource ::
      Core.Text
  }
  deriving stock
    ( Int -> TimecodeConfigSource -> ShowS
[TimecodeConfigSource] -> ShowS
TimecodeConfigSource -> String
(Int -> TimecodeConfigSource -> ShowS)
-> (TimecodeConfigSource -> String)
-> ([TimecodeConfigSource] -> ShowS)
-> Show TimecodeConfigSource
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TimecodeConfigSource] -> ShowS
$cshowList :: [TimecodeConfigSource] -> ShowS
show :: TimecodeConfigSource -> String
$cshow :: TimecodeConfigSource -> String
showsPrec :: Int -> TimecodeConfigSource -> ShowS
$cshowsPrec :: Int -> TimecodeConfigSource -> ShowS
Prelude.Show,
      ReadPrec [TimecodeConfigSource]
ReadPrec TimecodeConfigSource
Int -> ReadS TimecodeConfigSource
ReadS [TimecodeConfigSource]
(Int -> ReadS TimecodeConfigSource)
-> ReadS [TimecodeConfigSource]
-> ReadPrec TimecodeConfigSource
-> ReadPrec [TimecodeConfigSource]
-> Read TimecodeConfigSource
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TimecodeConfigSource]
$creadListPrec :: ReadPrec [TimecodeConfigSource]
readPrec :: ReadPrec TimecodeConfigSource
$creadPrec :: ReadPrec TimecodeConfigSource
readList :: ReadS [TimecodeConfigSource]
$creadList :: ReadS [TimecodeConfigSource]
readsPrec :: Int -> ReadS TimecodeConfigSource
$creadsPrec :: Int -> ReadS TimecodeConfigSource
Prelude.Read,
      TimecodeConfigSource -> TimecodeConfigSource -> Bool
(TimecodeConfigSource -> TimecodeConfigSource -> Bool)
-> (TimecodeConfigSource -> TimecodeConfigSource -> Bool)
-> Eq TimecodeConfigSource
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TimecodeConfigSource -> TimecodeConfigSource -> Bool
$c/= :: TimecodeConfigSource -> TimecodeConfigSource -> Bool
== :: TimecodeConfigSource -> TimecodeConfigSource -> Bool
$c== :: TimecodeConfigSource -> TimecodeConfigSource -> Bool
Prelude.Eq,
      Eq TimecodeConfigSource
Eq TimecodeConfigSource
-> (TimecodeConfigSource -> TimecodeConfigSource -> Ordering)
-> (TimecodeConfigSource -> TimecodeConfigSource -> Bool)
-> (TimecodeConfigSource -> TimecodeConfigSource -> Bool)
-> (TimecodeConfigSource -> TimecodeConfigSource -> Bool)
-> (TimecodeConfigSource -> TimecodeConfigSource -> Bool)
-> (TimecodeConfigSource
    -> TimecodeConfigSource -> TimecodeConfigSource)
-> (TimecodeConfigSource
    -> TimecodeConfigSource -> TimecodeConfigSource)
-> Ord TimecodeConfigSource
TimecodeConfigSource -> TimecodeConfigSource -> Bool
TimecodeConfigSource -> TimecodeConfigSource -> Ordering
TimecodeConfigSource
-> TimecodeConfigSource -> TimecodeConfigSource
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 :: TimecodeConfigSource
-> TimecodeConfigSource -> TimecodeConfigSource
$cmin :: TimecodeConfigSource
-> TimecodeConfigSource -> TimecodeConfigSource
max :: TimecodeConfigSource
-> TimecodeConfigSource -> TimecodeConfigSource
$cmax :: TimecodeConfigSource
-> TimecodeConfigSource -> TimecodeConfigSource
>= :: TimecodeConfigSource -> TimecodeConfigSource -> Bool
$c>= :: TimecodeConfigSource -> TimecodeConfigSource -> Bool
> :: TimecodeConfigSource -> TimecodeConfigSource -> Bool
$c> :: TimecodeConfigSource -> TimecodeConfigSource -> Bool
<= :: TimecodeConfigSource -> TimecodeConfigSource -> Bool
$c<= :: TimecodeConfigSource -> TimecodeConfigSource -> Bool
< :: TimecodeConfigSource -> TimecodeConfigSource -> Bool
$c< :: TimecodeConfigSource -> TimecodeConfigSource -> Bool
compare :: TimecodeConfigSource -> TimecodeConfigSource -> Ordering
$ccompare :: TimecodeConfigSource -> TimecodeConfigSource -> Ordering
$cp1Ord :: Eq TimecodeConfigSource
Prelude.Ord,
      (forall x. TimecodeConfigSource -> Rep TimecodeConfigSource x)
-> (forall x. Rep TimecodeConfigSource x -> TimecodeConfigSource)
-> Generic TimecodeConfigSource
forall x. Rep TimecodeConfigSource x -> TimecodeConfigSource
forall x. TimecodeConfigSource -> Rep TimecodeConfigSource x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TimecodeConfigSource x -> TimecodeConfigSource
$cfrom :: forall x. TimecodeConfigSource -> Rep TimecodeConfigSource x
Prelude.Generic
    )
  deriving newtype
    ( Int -> TimecodeConfigSource -> Int
TimecodeConfigSource -> Int
(Int -> TimecodeConfigSource -> Int)
-> (TimecodeConfigSource -> Int) -> Hashable TimecodeConfigSource
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TimecodeConfigSource -> Int
$chash :: TimecodeConfigSource -> Int
hashWithSalt :: Int -> TimecodeConfigSource -> Int
$chashWithSalt :: Int -> TimecodeConfigSource -> Int
Prelude.Hashable,
      TimecodeConfigSource -> ()
(TimecodeConfigSource -> ()) -> NFData TimecodeConfigSource
forall a. (a -> ()) -> NFData a
rnf :: TimecodeConfigSource -> ()
$crnf :: TimecodeConfigSource -> ()
Prelude.NFData,
      Text -> Either String TimecodeConfigSource
(Text -> Either String TimecodeConfigSource)
-> FromText TimecodeConfigSource
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TimecodeConfigSource
$cfromText :: Text -> Either String TimecodeConfigSource
Core.FromText,
      TimecodeConfigSource -> Text
(TimecodeConfigSource -> Text) -> ToText TimecodeConfigSource
forall a. (a -> Text) -> ToText a
toText :: TimecodeConfigSource -> Text
$ctoText :: TimecodeConfigSource -> Text
Core.ToText,
      TimecodeConfigSource -> ByteString
(TimecodeConfigSource -> ByteString)
-> ToByteString TimecodeConfigSource
forall a. (a -> ByteString) -> ToByteString a
toBS :: TimecodeConfigSource -> ByteString
$ctoBS :: TimecodeConfigSource -> ByteString
Core.ToByteString,
      TimecodeConfigSource -> ByteStringBuilder
(TimecodeConfigSource -> ByteStringBuilder)
-> ToLog TimecodeConfigSource
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TimecodeConfigSource -> ByteStringBuilder
$cbuild :: TimecodeConfigSource -> ByteStringBuilder
Core.ToLog,
      HeaderName -> TimecodeConfigSource -> [Header]
(HeaderName -> TimecodeConfigSource -> [Header])
-> ToHeader TimecodeConfigSource
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TimecodeConfigSource -> [Header]
$ctoHeader :: HeaderName -> TimecodeConfigSource -> [Header]
Core.ToHeader,
      TimecodeConfigSource -> QueryString
(TimecodeConfigSource -> QueryString)
-> ToQuery TimecodeConfigSource
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TimecodeConfigSource -> QueryString
$ctoQuery :: TimecodeConfigSource -> QueryString
Core.ToQuery,
      Value -> Parser [TimecodeConfigSource]
Value -> Parser TimecodeConfigSource
(Value -> Parser TimecodeConfigSource)
-> (Value -> Parser [TimecodeConfigSource])
-> FromJSON TimecodeConfigSource
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TimecodeConfigSource]
$cparseJSONList :: Value -> Parser [TimecodeConfigSource]
parseJSON :: Value -> Parser TimecodeConfigSource
$cparseJSON :: Value -> Parser TimecodeConfigSource
Core.FromJSON,
      FromJSONKeyFunction [TimecodeConfigSource]
FromJSONKeyFunction TimecodeConfigSource
FromJSONKeyFunction TimecodeConfigSource
-> FromJSONKeyFunction [TimecodeConfigSource]
-> FromJSONKey TimecodeConfigSource
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TimecodeConfigSource]
$cfromJSONKeyList :: FromJSONKeyFunction [TimecodeConfigSource]
fromJSONKey :: FromJSONKeyFunction TimecodeConfigSource
$cfromJSONKey :: FromJSONKeyFunction TimecodeConfigSource
Core.FromJSONKey,
      [TimecodeConfigSource] -> Encoding
[TimecodeConfigSource] -> Value
TimecodeConfigSource -> Encoding
TimecodeConfigSource -> Value
(TimecodeConfigSource -> Value)
-> (TimecodeConfigSource -> Encoding)
-> ([TimecodeConfigSource] -> Value)
-> ([TimecodeConfigSource] -> Encoding)
-> ToJSON TimecodeConfigSource
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TimecodeConfigSource] -> Encoding
$ctoEncodingList :: [TimecodeConfigSource] -> Encoding
toJSONList :: [TimecodeConfigSource] -> Value
$ctoJSONList :: [TimecodeConfigSource] -> Value
toEncoding :: TimecodeConfigSource -> Encoding
$ctoEncoding :: TimecodeConfigSource -> Encoding
toJSON :: TimecodeConfigSource -> Value
$ctoJSON :: TimecodeConfigSource -> Value
Core.ToJSON,
      ToJSONKeyFunction [TimecodeConfigSource]
ToJSONKeyFunction TimecodeConfigSource
ToJSONKeyFunction TimecodeConfigSource
-> ToJSONKeyFunction [TimecodeConfigSource]
-> ToJSONKey TimecodeConfigSource
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TimecodeConfigSource]
$ctoJSONKeyList :: ToJSONKeyFunction [TimecodeConfigSource]
toJSONKey :: ToJSONKeyFunction TimecodeConfigSource
$ctoJSONKey :: ToJSONKeyFunction TimecodeConfigSource
Core.ToJSONKey,
      [Node] -> Either String TimecodeConfigSource
([Node] -> Either String TimecodeConfigSource)
-> FromXML TimecodeConfigSource
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TimecodeConfigSource
$cparseXML :: [Node] -> Either String TimecodeConfigSource
Core.FromXML,
      TimecodeConfigSource -> XML
(TimecodeConfigSource -> XML) -> ToXML TimecodeConfigSource
forall a. (a -> XML) -> ToXML a
toXML :: TimecodeConfigSource -> XML
$ctoXML :: TimecodeConfigSource -> XML
Core.ToXML
    )

pattern TimecodeConfigSource_EMBEDDED :: TimecodeConfigSource
pattern $bTimecodeConfigSource_EMBEDDED :: TimecodeConfigSource
$mTimecodeConfigSource_EMBEDDED :: forall r. TimecodeConfigSource -> (Void# -> r) -> (Void# -> r) -> r
TimecodeConfigSource_EMBEDDED = TimecodeConfigSource' "EMBEDDED"

pattern TimecodeConfigSource_SYSTEMCLOCK :: TimecodeConfigSource
pattern $bTimecodeConfigSource_SYSTEMCLOCK :: TimecodeConfigSource
$mTimecodeConfigSource_SYSTEMCLOCK :: forall r. TimecodeConfigSource -> (Void# -> r) -> (Void# -> r) -> r
TimecodeConfigSource_SYSTEMCLOCK = TimecodeConfigSource' "SYSTEMCLOCK"

pattern TimecodeConfigSource_ZEROBASED :: TimecodeConfigSource
pattern $bTimecodeConfigSource_ZEROBASED :: TimecodeConfigSource
$mTimecodeConfigSource_ZEROBASED :: forall r. TimecodeConfigSource -> (Void# -> r) -> (Void# -> r) -> r
TimecodeConfigSource_ZEROBASED = TimecodeConfigSource' "ZEROBASED"

{-# COMPLETE
  TimecodeConfigSource_EMBEDDED,
  TimecodeConfigSource_SYSTEMCLOCK,
  TimecodeConfigSource_ZEROBASED,
  TimecodeConfigSource'
  #-}