{-# 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.InputTimecodeSource
-- 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.InputTimecodeSource
  ( InputTimecodeSource
      ( ..,
        InputTimecodeSource_EMBEDDED,
        InputTimecodeSource_ZEROBASED
      ),
  )
where

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

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

pattern InputTimecodeSource_EMBEDDED :: InputTimecodeSource
pattern $bInputTimecodeSource_EMBEDDED :: InputTimecodeSource
$mInputTimecodeSource_EMBEDDED :: forall r. InputTimecodeSource -> (Void# -> r) -> (Void# -> r) -> r
InputTimecodeSource_EMBEDDED = InputTimecodeSource' "EMBEDDED"

pattern InputTimecodeSource_ZEROBASED :: InputTimecodeSource
pattern $bInputTimecodeSource_ZEROBASED :: InputTimecodeSource
$mInputTimecodeSource_ZEROBASED :: forall r. InputTimecodeSource -> (Void# -> r) -> (Void# -> r) -> r
InputTimecodeSource_ZEROBASED = InputTimecodeSource' "ZEROBASED"

{-# COMPLETE
  InputTimecodeSource_EMBEDDED,
  InputTimecodeSource_ZEROBASED,
  InputTimecodeSource'
  #-}