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