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