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