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