{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Timecode Config Source
newtype TimecodeConfigSource = TimecodeConfigSource'
  { TimecodeConfigSource -> Text
fromTimecodeConfigSource ::
      Data.Text
  }
  deriving stock
    ( Int -> TimecodeConfigSource -> ShowS
[TimecodeConfigSource] -> ShowS
TimecodeConfigSource -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq TimecodeConfigSource
Int -> TimecodeConfigSource -> Int
TimecodeConfigSource -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: TimecodeConfigSource -> ()
$crnf :: TimecodeConfigSource -> ()
Prelude.NFData,
      Text -> Either String TimecodeConfigSource
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TimecodeConfigSource
$cfromText :: Text -> Either String TimecodeConfigSource
Data.FromText,
      TimecodeConfigSource -> Text
forall a. (a -> Text) -> ToText a
toText :: TimecodeConfigSource -> Text
$ctoText :: TimecodeConfigSource -> Text
Data.ToText,
      TimecodeConfigSource -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: TimecodeConfigSource -> ByteString
$ctoBS :: TimecodeConfigSource -> ByteString
Data.ToByteString,
      TimecodeConfigSource -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TimecodeConfigSource -> ByteStringBuilder
$cbuild :: TimecodeConfigSource -> ByteStringBuilder
Data.ToLog,
      HeaderName -> TimecodeConfigSource -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TimecodeConfigSource -> [Header]
$ctoHeader :: HeaderName -> TimecodeConfigSource -> [Header]
Data.ToHeader,
      TimecodeConfigSource -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TimecodeConfigSource -> QueryString
$ctoQuery :: TimecodeConfigSource -> QueryString
Data.ToQuery,
      Value -> Parser [TimecodeConfigSource]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [TimecodeConfigSource]
FromJSONKeyFunction TimecodeConfigSource
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TimecodeConfigSource]
$cfromJSONKeyList :: FromJSONKeyFunction [TimecodeConfigSource]
fromJSONKey :: FromJSONKeyFunction TimecodeConfigSource
$cfromJSONKey :: FromJSONKeyFunction TimecodeConfigSource
Data.FromJSONKey,
      [TimecodeConfigSource] -> Encoding
[TimecodeConfigSource] -> Value
TimecodeConfigSource -> Encoding
TimecodeConfigSource -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [TimecodeConfigSource]
ToJSONKeyFunction TimecodeConfigSource
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TimecodeConfigSource]
$ctoJSONKeyList :: ToJSONKeyFunction [TimecodeConfigSource]
toJSONKey :: ToJSONKeyFunction TimecodeConfigSource
$ctoJSONKey :: ToJSONKeyFunction TimecodeConfigSource
Data.ToJSONKey,
      [Node] -> Either String TimecodeConfigSource
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TimecodeConfigSource
$cparseXML :: [Node] -> Either String TimecodeConfigSource
Data.FromXML,
      TimecodeConfigSource -> XML
forall a. (a -> XML) -> ToXML a
toXML :: TimecodeConfigSource -> XML
$ctoXML :: TimecodeConfigSource -> XML
Data.ToXML
    )

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

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

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

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