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