{-# 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.Prelude as Prelude
newtype ScanMode = ScanMode'
{ ScanMode -> Text
fromScanMode ::
Core.Text
}
deriving stock
( Int -> ScanMode -> ShowS
[ScanMode] -> ShowS
ScanMode -> String
(Int -> ScanMode -> ShowS)
-> (ScanMode -> String) -> ([ScanMode] -> ShowS) -> Show ScanMode
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]
(Int -> ReadS ScanMode)
-> ReadS [ScanMode]
-> ReadPrec ScanMode
-> ReadPrec [ScanMode]
-> Read 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
(ScanMode -> ScanMode -> Bool)
-> (ScanMode -> ScanMode -> Bool) -> Eq ScanMode
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
Eq ScanMode
-> (ScanMode -> ScanMode -> Ordering)
-> (ScanMode -> ScanMode -> Bool)
-> (ScanMode -> ScanMode -> Bool)
-> (ScanMode -> ScanMode -> Bool)
-> (ScanMode -> ScanMode -> Bool)
-> (ScanMode -> ScanMode -> ScanMode)
-> (ScanMode -> ScanMode -> ScanMode)
-> Ord 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
$cp1Ord :: Eq ScanMode
Prelude.Ord,
(forall x. ScanMode -> Rep ScanMode x)
-> (forall x. Rep ScanMode x -> ScanMode) -> Generic ScanMode
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
( Int -> ScanMode -> Int
ScanMode -> Int
(Int -> ScanMode -> Int) -> (ScanMode -> Int) -> Hashable ScanMode
forall 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 -> ()
(ScanMode -> ()) -> NFData ScanMode
forall a. (a -> ()) -> NFData a
rnf :: ScanMode -> ()
$crnf :: ScanMode -> ()
Prelude.NFData,
Text -> Either String ScanMode
(Text -> Either String ScanMode) -> FromText ScanMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ScanMode
$cfromText :: Text -> Either String ScanMode
Core.FromText,
ScanMode -> Text
(ScanMode -> Text) -> ToText ScanMode
forall a. (a -> Text) -> ToText a
toText :: ScanMode -> Text
$ctoText :: ScanMode -> Text
Core.ToText,
ScanMode -> ByteString
(ScanMode -> ByteString) -> ToByteString ScanMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: ScanMode -> ByteString
$ctoBS :: ScanMode -> ByteString
Core.ToByteString,
ScanMode -> ByteStringBuilder
(ScanMode -> ByteStringBuilder) -> ToLog ScanMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ScanMode -> ByteStringBuilder
$cbuild :: ScanMode -> ByteStringBuilder
Core.ToLog,
HeaderName -> ScanMode -> [Header]
(HeaderName -> ScanMode -> [Header]) -> ToHeader ScanMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ScanMode -> [Header]
$ctoHeader :: HeaderName -> ScanMode -> [Header]
Core.ToHeader,
ScanMode -> QueryString
(ScanMode -> QueryString) -> ToQuery ScanMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ScanMode -> QueryString
$ctoQuery :: ScanMode -> QueryString
Core.ToQuery,
Value -> Parser [ScanMode]
Value -> Parser ScanMode
(Value -> Parser ScanMode)
-> (Value -> Parser [ScanMode]) -> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [ScanMode]
FromJSONKeyFunction ScanMode
FromJSONKeyFunction ScanMode
-> FromJSONKeyFunction [ScanMode] -> FromJSONKey ScanMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ScanMode]
$cfromJSONKeyList :: FromJSONKeyFunction [ScanMode]
fromJSONKey :: FromJSONKeyFunction ScanMode
$cfromJSONKey :: FromJSONKeyFunction ScanMode
Core.FromJSONKey,
[ScanMode] -> Encoding
[ScanMode] -> Value
ScanMode -> Encoding
ScanMode -> Value
(ScanMode -> Value)
-> (ScanMode -> Encoding)
-> ([ScanMode] -> Value)
-> ([ScanMode] -> Encoding)
-> ToJSON ScanMode
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
Core.ToJSON,
ToJSONKeyFunction [ScanMode]
ToJSONKeyFunction ScanMode
ToJSONKeyFunction ScanMode
-> ToJSONKeyFunction [ScanMode] -> ToJSONKey ScanMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ScanMode]
$ctoJSONKeyList :: ToJSONKeyFunction [ScanMode]
toJSONKey :: ToJSONKeyFunction ScanMode
$ctoJSONKey :: ToJSONKeyFunction ScanMode
Core.ToJSONKey,
[Node] -> Either String ScanMode
([Node] -> Either String ScanMode) -> FromXML ScanMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ScanMode
$cparseXML :: [Node] -> Either String ScanMode
Core.FromXML,
ScanMode -> XML
(ScanMode -> XML) -> ToXML ScanMode
forall a. (a -> XML) -> ToXML a
toXML :: ScanMode -> XML
$ctoXML :: ScanMode -> XML
Core.ToXML
)
pattern ScanMode_Interlace :: ScanMode
pattern $bScanMode_Interlace :: ScanMode
$mScanMode_Interlace :: forall r. ScanMode -> (Void# -> r) -> (Void# -> r) -> r
ScanMode_Interlace = ScanMode' "interlace"
pattern ScanMode_Progressive :: ScanMode
pattern $bScanMode_Progressive :: ScanMode
$mScanMode_Progressive :: forall r. ScanMode -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
ScanMode_Progressive_segmented_frame = ScanMode' "progressive-segmented-frame"
{-# COMPLETE
ScanMode_Interlace,
ScanMode_Progressive,
ScanMode_Progressive_segmented_frame,
ScanMode'
#-}