{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaLive.Types.Smpte2038DataPreference
( Smpte2038DataPreference
( ..,
Smpte2038DataPreference_IGNORE,
Smpte2038DataPreference_PREFER
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype Smpte2038DataPreference = Smpte2038DataPreference'
{ Smpte2038DataPreference -> Text
fromSmpte2038DataPreference ::
Core.Text
}
deriving stock
( Int -> Smpte2038DataPreference -> ShowS
[Smpte2038DataPreference] -> ShowS
Smpte2038DataPreference -> String
(Int -> Smpte2038DataPreference -> ShowS)
-> (Smpte2038DataPreference -> String)
-> ([Smpte2038DataPreference] -> ShowS)
-> Show Smpte2038DataPreference
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Smpte2038DataPreference] -> ShowS
$cshowList :: [Smpte2038DataPreference] -> ShowS
show :: Smpte2038DataPreference -> String
$cshow :: Smpte2038DataPreference -> String
showsPrec :: Int -> Smpte2038DataPreference -> ShowS
$cshowsPrec :: Int -> Smpte2038DataPreference -> ShowS
Prelude.Show,
ReadPrec [Smpte2038DataPreference]
ReadPrec Smpte2038DataPreference
Int -> ReadS Smpte2038DataPreference
ReadS [Smpte2038DataPreference]
(Int -> ReadS Smpte2038DataPreference)
-> ReadS [Smpte2038DataPreference]
-> ReadPrec Smpte2038DataPreference
-> ReadPrec [Smpte2038DataPreference]
-> Read Smpte2038DataPreference
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Smpte2038DataPreference]
$creadListPrec :: ReadPrec [Smpte2038DataPreference]
readPrec :: ReadPrec Smpte2038DataPreference
$creadPrec :: ReadPrec Smpte2038DataPreference
readList :: ReadS [Smpte2038DataPreference]
$creadList :: ReadS [Smpte2038DataPreference]
readsPrec :: Int -> ReadS Smpte2038DataPreference
$creadsPrec :: Int -> ReadS Smpte2038DataPreference
Prelude.Read,
Smpte2038DataPreference -> Smpte2038DataPreference -> Bool
(Smpte2038DataPreference -> Smpte2038DataPreference -> Bool)
-> (Smpte2038DataPreference -> Smpte2038DataPreference -> Bool)
-> Eq Smpte2038DataPreference
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Smpte2038DataPreference -> Smpte2038DataPreference -> Bool
$c/= :: Smpte2038DataPreference -> Smpte2038DataPreference -> Bool
== :: Smpte2038DataPreference -> Smpte2038DataPreference -> Bool
$c== :: Smpte2038DataPreference -> Smpte2038DataPreference -> Bool
Prelude.Eq,
Eq Smpte2038DataPreference
Eq Smpte2038DataPreference
-> (Smpte2038DataPreference -> Smpte2038DataPreference -> Ordering)
-> (Smpte2038DataPreference -> Smpte2038DataPreference -> Bool)
-> (Smpte2038DataPreference -> Smpte2038DataPreference -> Bool)
-> (Smpte2038DataPreference -> Smpte2038DataPreference -> Bool)
-> (Smpte2038DataPreference -> Smpte2038DataPreference -> Bool)
-> (Smpte2038DataPreference
-> Smpte2038DataPreference -> Smpte2038DataPreference)
-> (Smpte2038DataPreference
-> Smpte2038DataPreference -> Smpte2038DataPreference)
-> Ord Smpte2038DataPreference
Smpte2038DataPreference -> Smpte2038DataPreference -> Bool
Smpte2038DataPreference -> Smpte2038DataPreference -> Ordering
Smpte2038DataPreference
-> Smpte2038DataPreference -> Smpte2038DataPreference
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 :: Smpte2038DataPreference
-> Smpte2038DataPreference -> Smpte2038DataPreference
$cmin :: Smpte2038DataPreference
-> Smpte2038DataPreference -> Smpte2038DataPreference
max :: Smpte2038DataPreference
-> Smpte2038DataPreference -> Smpte2038DataPreference
$cmax :: Smpte2038DataPreference
-> Smpte2038DataPreference -> Smpte2038DataPreference
>= :: Smpte2038DataPreference -> Smpte2038DataPreference -> Bool
$c>= :: Smpte2038DataPreference -> Smpte2038DataPreference -> Bool
> :: Smpte2038DataPreference -> Smpte2038DataPreference -> Bool
$c> :: Smpte2038DataPreference -> Smpte2038DataPreference -> Bool
<= :: Smpte2038DataPreference -> Smpte2038DataPreference -> Bool
$c<= :: Smpte2038DataPreference -> Smpte2038DataPreference -> Bool
< :: Smpte2038DataPreference -> Smpte2038DataPreference -> Bool
$c< :: Smpte2038DataPreference -> Smpte2038DataPreference -> Bool
compare :: Smpte2038DataPreference -> Smpte2038DataPreference -> Ordering
$ccompare :: Smpte2038DataPreference -> Smpte2038DataPreference -> Ordering
$cp1Ord :: Eq Smpte2038DataPreference
Prelude.Ord,
(forall x.
Smpte2038DataPreference -> Rep Smpte2038DataPreference x)
-> (forall x.
Rep Smpte2038DataPreference x -> Smpte2038DataPreference)
-> Generic Smpte2038DataPreference
forall x. Rep Smpte2038DataPreference x -> Smpte2038DataPreference
forall x. Smpte2038DataPreference -> Rep Smpte2038DataPreference x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Smpte2038DataPreference x -> Smpte2038DataPreference
$cfrom :: forall x. Smpte2038DataPreference -> Rep Smpte2038DataPreference x
Prelude.Generic
)
deriving newtype
( Int -> Smpte2038DataPreference -> Int
Smpte2038DataPreference -> Int
(Int -> Smpte2038DataPreference -> Int)
-> (Smpte2038DataPreference -> Int)
-> Hashable Smpte2038DataPreference
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Smpte2038DataPreference -> Int
$chash :: Smpte2038DataPreference -> Int
hashWithSalt :: Int -> Smpte2038DataPreference -> Int
$chashWithSalt :: Int -> Smpte2038DataPreference -> Int
Prelude.Hashable,
Smpte2038DataPreference -> ()
(Smpte2038DataPreference -> ()) -> NFData Smpte2038DataPreference
forall a. (a -> ()) -> NFData a
rnf :: Smpte2038DataPreference -> ()
$crnf :: Smpte2038DataPreference -> ()
Prelude.NFData,
Text -> Either String Smpte2038DataPreference
(Text -> Either String Smpte2038DataPreference)
-> FromText Smpte2038DataPreference
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Smpte2038DataPreference
$cfromText :: Text -> Either String Smpte2038DataPreference
Core.FromText,
Smpte2038DataPreference -> Text
(Smpte2038DataPreference -> Text) -> ToText Smpte2038DataPreference
forall a. (a -> Text) -> ToText a
toText :: Smpte2038DataPreference -> Text
$ctoText :: Smpte2038DataPreference -> Text
Core.ToText,
Smpte2038DataPreference -> ByteString
(Smpte2038DataPreference -> ByteString)
-> ToByteString Smpte2038DataPreference
forall a. (a -> ByteString) -> ToByteString a
toBS :: Smpte2038DataPreference -> ByteString
$ctoBS :: Smpte2038DataPreference -> ByteString
Core.ToByteString,
Smpte2038DataPreference -> ByteStringBuilder
(Smpte2038DataPreference -> ByteStringBuilder)
-> ToLog Smpte2038DataPreference
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Smpte2038DataPreference -> ByteStringBuilder
$cbuild :: Smpte2038DataPreference -> ByteStringBuilder
Core.ToLog,
HeaderName -> Smpte2038DataPreference -> [Header]
(HeaderName -> Smpte2038DataPreference -> [Header])
-> ToHeader Smpte2038DataPreference
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Smpte2038DataPreference -> [Header]
$ctoHeader :: HeaderName -> Smpte2038DataPreference -> [Header]
Core.ToHeader,
Smpte2038DataPreference -> QueryString
(Smpte2038DataPreference -> QueryString)
-> ToQuery Smpte2038DataPreference
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Smpte2038DataPreference -> QueryString
$ctoQuery :: Smpte2038DataPreference -> QueryString
Core.ToQuery,
Value -> Parser [Smpte2038DataPreference]
Value -> Parser Smpte2038DataPreference
(Value -> Parser Smpte2038DataPreference)
-> (Value -> Parser [Smpte2038DataPreference])
-> FromJSON Smpte2038DataPreference
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Smpte2038DataPreference]
$cparseJSONList :: Value -> Parser [Smpte2038DataPreference]
parseJSON :: Value -> Parser Smpte2038DataPreference
$cparseJSON :: Value -> Parser Smpte2038DataPreference
Core.FromJSON,
FromJSONKeyFunction [Smpte2038DataPreference]
FromJSONKeyFunction Smpte2038DataPreference
FromJSONKeyFunction Smpte2038DataPreference
-> FromJSONKeyFunction [Smpte2038DataPreference]
-> FromJSONKey Smpte2038DataPreference
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Smpte2038DataPreference]
$cfromJSONKeyList :: FromJSONKeyFunction [Smpte2038DataPreference]
fromJSONKey :: FromJSONKeyFunction Smpte2038DataPreference
$cfromJSONKey :: FromJSONKeyFunction Smpte2038DataPreference
Core.FromJSONKey,
[Smpte2038DataPreference] -> Encoding
[Smpte2038DataPreference] -> Value
Smpte2038DataPreference -> Encoding
Smpte2038DataPreference -> Value
(Smpte2038DataPreference -> Value)
-> (Smpte2038DataPreference -> Encoding)
-> ([Smpte2038DataPreference] -> Value)
-> ([Smpte2038DataPreference] -> Encoding)
-> ToJSON Smpte2038DataPreference
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Smpte2038DataPreference] -> Encoding
$ctoEncodingList :: [Smpte2038DataPreference] -> Encoding
toJSONList :: [Smpte2038DataPreference] -> Value
$ctoJSONList :: [Smpte2038DataPreference] -> Value
toEncoding :: Smpte2038DataPreference -> Encoding
$ctoEncoding :: Smpte2038DataPreference -> Encoding
toJSON :: Smpte2038DataPreference -> Value
$ctoJSON :: Smpte2038DataPreference -> Value
Core.ToJSON,
ToJSONKeyFunction [Smpte2038DataPreference]
ToJSONKeyFunction Smpte2038DataPreference
ToJSONKeyFunction Smpte2038DataPreference
-> ToJSONKeyFunction [Smpte2038DataPreference]
-> ToJSONKey Smpte2038DataPreference
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Smpte2038DataPreference]
$ctoJSONKeyList :: ToJSONKeyFunction [Smpte2038DataPreference]
toJSONKey :: ToJSONKeyFunction Smpte2038DataPreference
$ctoJSONKey :: ToJSONKeyFunction Smpte2038DataPreference
Core.ToJSONKey,
[Node] -> Either String Smpte2038DataPreference
([Node] -> Either String Smpte2038DataPreference)
-> FromXML Smpte2038DataPreference
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Smpte2038DataPreference
$cparseXML :: [Node] -> Either String Smpte2038DataPreference
Core.FromXML,
Smpte2038DataPreference -> XML
(Smpte2038DataPreference -> XML) -> ToXML Smpte2038DataPreference
forall a. (a -> XML) -> ToXML a
toXML :: Smpte2038DataPreference -> XML
$ctoXML :: Smpte2038DataPreference -> XML
Core.ToXML
)
pattern Smpte2038DataPreference_IGNORE :: Smpte2038DataPreference
pattern $bSmpte2038DataPreference_IGNORE :: Smpte2038DataPreference
$mSmpte2038DataPreference_IGNORE :: forall r.
Smpte2038DataPreference -> (Void# -> r) -> (Void# -> r) -> r
Smpte2038DataPreference_IGNORE = Smpte2038DataPreference' "IGNORE"
pattern Smpte2038DataPreference_PREFER :: Smpte2038DataPreference
pattern $bSmpte2038DataPreference_PREFER :: Smpte2038DataPreference
$mSmpte2038DataPreference_PREFER :: forall r.
Smpte2038DataPreference -> (Void# -> r) -> (Void# -> r) -> r
Smpte2038DataPreference_PREFER = Smpte2038DataPreference' "PREFER"
{-# COMPLETE
Smpte2038DataPreference_IGNORE,
Smpte2038DataPreference_PREFER,
Smpte2038DataPreference'
#-}