{-# 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.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype Smpte2038DataPreference = Smpte2038DataPreference'
{ Smpte2038DataPreference -> Text
fromSmpte2038DataPreference ::
Data.Text
}
deriving stock
( Int -> Smpte2038DataPreference -> ShowS
[Smpte2038DataPreference] -> ShowS
Smpte2038DataPreference -> String
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]
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
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
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
Prelude.Ord,
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
( Eq Smpte2038DataPreference
Int -> Smpte2038DataPreference -> Int
Smpte2038DataPreference -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: Smpte2038DataPreference -> ()
$crnf :: Smpte2038DataPreference -> ()
Prelude.NFData,
Text -> Either String Smpte2038DataPreference
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Smpte2038DataPreference
$cfromText :: Text -> Either String Smpte2038DataPreference
Data.FromText,
Smpte2038DataPreference -> Text
forall a. (a -> Text) -> ToText a
toText :: Smpte2038DataPreference -> Text
$ctoText :: Smpte2038DataPreference -> Text
Data.ToText,
Smpte2038DataPreference -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: Smpte2038DataPreference -> ByteString
$ctoBS :: Smpte2038DataPreference -> ByteString
Data.ToByteString,
Smpte2038DataPreference -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Smpte2038DataPreference -> ByteStringBuilder
$cbuild :: Smpte2038DataPreference -> ByteStringBuilder
Data.ToLog,
HeaderName -> Smpte2038DataPreference -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Smpte2038DataPreference -> [Header]
$ctoHeader :: HeaderName -> Smpte2038DataPreference -> [Header]
Data.ToHeader,
Smpte2038DataPreference -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Smpte2038DataPreference -> QueryString
$ctoQuery :: Smpte2038DataPreference -> QueryString
Data.ToQuery,
Value -> Parser [Smpte2038DataPreference]
Value -> Parser 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
Data.FromJSON,
FromJSONKeyFunction [Smpte2038DataPreference]
FromJSONKeyFunction Smpte2038DataPreference
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Smpte2038DataPreference]
$cfromJSONKeyList :: FromJSONKeyFunction [Smpte2038DataPreference]
fromJSONKey :: FromJSONKeyFunction Smpte2038DataPreference
$cfromJSONKey :: FromJSONKeyFunction Smpte2038DataPreference
Data.FromJSONKey,
[Smpte2038DataPreference] -> Encoding
[Smpte2038DataPreference] -> Value
Smpte2038DataPreference -> Encoding
Smpte2038DataPreference -> Value
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
Data.ToJSON,
ToJSONKeyFunction [Smpte2038DataPreference]
ToJSONKeyFunction Smpte2038DataPreference
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Smpte2038DataPreference]
$ctoJSONKeyList :: ToJSONKeyFunction [Smpte2038DataPreference]
toJSONKey :: ToJSONKeyFunction Smpte2038DataPreference
$ctoJSONKey :: ToJSONKeyFunction Smpte2038DataPreference
Data.ToJSONKey,
[Node] -> Either String Smpte2038DataPreference
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Smpte2038DataPreference
$cparseXML :: [Node] -> Either String Smpte2038DataPreference
Data.FromXML,
Smpte2038DataPreference -> XML
forall a. (a -> XML) -> ToXML a
toXML :: Smpte2038DataPreference -> XML
$ctoXML :: Smpte2038DataPreference -> XML
Data.ToXML
)
pattern Smpte2038DataPreference_IGNORE :: Smpte2038DataPreference
pattern $bSmpte2038DataPreference_IGNORE :: Smpte2038DataPreference
$mSmpte2038DataPreference_IGNORE :: forall {r}.
Smpte2038DataPreference -> ((# #) -> r) -> ((# #) -> r) -> r
Smpte2038DataPreference_IGNORE = Smpte2038DataPreference' "IGNORE"
pattern Smpte2038DataPreference_PREFER :: Smpte2038DataPreference
pattern $bSmpte2038DataPreference_PREFER :: Smpte2038DataPreference
$mSmpte2038DataPreference_PREFER :: forall {r}.
Smpte2038DataPreference -> ((# #) -> r) -> ((# #) -> r) -> r
Smpte2038DataPreference_PREFER = Smpte2038DataPreference' "PREFER"
{-# COMPLETE
Smpte2038DataPreference_IGNORE,
Smpte2038DataPreference_PREFER,
Smpte2038DataPreference'
#-}