{-# 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.Scte35InputMode
-- 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.Scte35InputMode
  ( Scte35InputMode
      ( ..,
        Scte35InputMode_FIXED,
        Scte35InputMode_FOLLOW_ACTIVE
      ),
  )
where

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

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

pattern Scte35InputMode_FIXED :: Scte35InputMode
pattern $bScte35InputMode_FIXED :: Scte35InputMode
$mScte35InputMode_FIXED :: forall {r}. Scte35InputMode -> ((# #) -> r) -> ((# #) -> r) -> r
Scte35InputMode_FIXED = Scte35InputMode' "FIXED"

pattern Scte35InputMode_FOLLOW_ACTIVE :: Scte35InputMode
pattern $bScte35InputMode_FOLLOW_ACTIVE :: Scte35InputMode
$mScte35InputMode_FOLLOW_ACTIVE :: forall {r}. Scte35InputMode -> ((# #) -> r) -> ((# #) -> r) -> r
Scte35InputMode_FOLLOW_ACTIVE = Scte35InputMode' "FOLLOW_ACTIVE"

{-# COMPLETE
  Scte35InputMode_FIXED,
  Scte35InputMode_FOLLOW_ACTIVE,
  Scte35InputMode'
  #-}