{-# 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.ChannelState
( ChannelState
( ..,
ChannelState_CREATE_FAILED,
ChannelState_CREATING,
ChannelState_DELETED,
ChannelState_DELETING,
ChannelState_IDLE,
ChannelState_RECOVERING,
ChannelState_RUNNING,
ChannelState_STARTING,
ChannelState_STOPPING,
ChannelState_UPDATE_FAILED,
ChannelState_UPDATING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ChannelState = ChannelState'
{ ChannelState -> Text
fromChannelState ::
Core.Text
}
deriving stock
( Int -> ChannelState -> ShowS
[ChannelState] -> ShowS
ChannelState -> String
(Int -> ChannelState -> ShowS)
-> (ChannelState -> String)
-> ([ChannelState] -> ShowS)
-> Show ChannelState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ChannelState] -> ShowS
$cshowList :: [ChannelState] -> ShowS
show :: ChannelState -> String
$cshow :: ChannelState -> String
showsPrec :: Int -> ChannelState -> ShowS
$cshowsPrec :: Int -> ChannelState -> ShowS
Prelude.Show,
ReadPrec [ChannelState]
ReadPrec ChannelState
Int -> ReadS ChannelState
ReadS [ChannelState]
(Int -> ReadS ChannelState)
-> ReadS [ChannelState]
-> ReadPrec ChannelState
-> ReadPrec [ChannelState]
-> Read ChannelState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ChannelState]
$creadListPrec :: ReadPrec [ChannelState]
readPrec :: ReadPrec ChannelState
$creadPrec :: ReadPrec ChannelState
readList :: ReadS [ChannelState]
$creadList :: ReadS [ChannelState]
readsPrec :: Int -> ReadS ChannelState
$creadsPrec :: Int -> ReadS ChannelState
Prelude.Read,
ChannelState -> ChannelState -> Bool
(ChannelState -> ChannelState -> Bool)
-> (ChannelState -> ChannelState -> Bool) -> Eq ChannelState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ChannelState -> ChannelState -> Bool
$c/= :: ChannelState -> ChannelState -> Bool
== :: ChannelState -> ChannelState -> Bool
$c== :: ChannelState -> ChannelState -> Bool
Prelude.Eq,
Eq ChannelState
Eq ChannelState
-> (ChannelState -> ChannelState -> Ordering)
-> (ChannelState -> ChannelState -> Bool)
-> (ChannelState -> ChannelState -> Bool)
-> (ChannelState -> ChannelState -> Bool)
-> (ChannelState -> ChannelState -> Bool)
-> (ChannelState -> ChannelState -> ChannelState)
-> (ChannelState -> ChannelState -> ChannelState)
-> Ord ChannelState
ChannelState -> ChannelState -> Bool
ChannelState -> ChannelState -> Ordering
ChannelState -> ChannelState -> ChannelState
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 :: ChannelState -> ChannelState -> ChannelState
$cmin :: ChannelState -> ChannelState -> ChannelState
max :: ChannelState -> ChannelState -> ChannelState
$cmax :: ChannelState -> ChannelState -> ChannelState
>= :: ChannelState -> ChannelState -> Bool
$c>= :: ChannelState -> ChannelState -> Bool
> :: ChannelState -> ChannelState -> Bool
$c> :: ChannelState -> ChannelState -> Bool
<= :: ChannelState -> ChannelState -> Bool
$c<= :: ChannelState -> ChannelState -> Bool
< :: ChannelState -> ChannelState -> Bool
$c< :: ChannelState -> ChannelState -> Bool
compare :: ChannelState -> ChannelState -> Ordering
$ccompare :: ChannelState -> ChannelState -> Ordering
$cp1Ord :: Eq ChannelState
Prelude.Ord,
(forall x. ChannelState -> Rep ChannelState x)
-> (forall x. Rep ChannelState x -> ChannelState)
-> Generic ChannelState
forall x. Rep ChannelState x -> ChannelState
forall x. ChannelState -> Rep ChannelState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ChannelState x -> ChannelState
$cfrom :: forall x. ChannelState -> Rep ChannelState x
Prelude.Generic
)
deriving newtype
( Int -> ChannelState -> Int
ChannelState -> Int
(Int -> ChannelState -> Int)
-> (ChannelState -> Int) -> Hashable ChannelState
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ChannelState -> Int
$chash :: ChannelState -> Int
hashWithSalt :: Int -> ChannelState -> Int
$chashWithSalt :: Int -> ChannelState -> Int
Prelude.Hashable,
ChannelState -> ()
(ChannelState -> ()) -> NFData ChannelState
forall a. (a -> ()) -> NFData a
rnf :: ChannelState -> ()
$crnf :: ChannelState -> ()
Prelude.NFData,
Text -> Either String ChannelState
(Text -> Either String ChannelState) -> FromText ChannelState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ChannelState
$cfromText :: Text -> Either String ChannelState
Core.FromText,
ChannelState -> Text
(ChannelState -> Text) -> ToText ChannelState
forall a. (a -> Text) -> ToText a
toText :: ChannelState -> Text
$ctoText :: ChannelState -> Text
Core.ToText,
ChannelState -> ByteString
(ChannelState -> ByteString) -> ToByteString ChannelState
forall a. (a -> ByteString) -> ToByteString a
toBS :: ChannelState -> ByteString
$ctoBS :: ChannelState -> ByteString
Core.ToByteString,
ChannelState -> ByteStringBuilder
(ChannelState -> ByteStringBuilder) -> ToLog ChannelState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ChannelState -> ByteStringBuilder
$cbuild :: ChannelState -> ByteStringBuilder
Core.ToLog,
HeaderName -> ChannelState -> [Header]
(HeaderName -> ChannelState -> [Header]) -> ToHeader ChannelState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ChannelState -> [Header]
$ctoHeader :: HeaderName -> ChannelState -> [Header]
Core.ToHeader,
ChannelState -> QueryString
(ChannelState -> QueryString) -> ToQuery ChannelState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ChannelState -> QueryString
$ctoQuery :: ChannelState -> QueryString
Core.ToQuery,
Value -> Parser [ChannelState]
Value -> Parser ChannelState
(Value -> Parser ChannelState)
-> (Value -> Parser [ChannelState]) -> FromJSON ChannelState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ChannelState]
$cparseJSONList :: Value -> Parser [ChannelState]
parseJSON :: Value -> Parser ChannelState
$cparseJSON :: Value -> Parser ChannelState
Core.FromJSON,
FromJSONKeyFunction [ChannelState]
FromJSONKeyFunction ChannelState
FromJSONKeyFunction ChannelState
-> FromJSONKeyFunction [ChannelState] -> FromJSONKey ChannelState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ChannelState]
$cfromJSONKeyList :: FromJSONKeyFunction [ChannelState]
fromJSONKey :: FromJSONKeyFunction ChannelState
$cfromJSONKey :: FromJSONKeyFunction ChannelState
Core.FromJSONKey,
[ChannelState] -> Encoding
[ChannelState] -> Value
ChannelState -> Encoding
ChannelState -> Value
(ChannelState -> Value)
-> (ChannelState -> Encoding)
-> ([ChannelState] -> Value)
-> ([ChannelState] -> Encoding)
-> ToJSON ChannelState
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ChannelState] -> Encoding
$ctoEncodingList :: [ChannelState] -> Encoding
toJSONList :: [ChannelState] -> Value
$ctoJSONList :: [ChannelState] -> Value
toEncoding :: ChannelState -> Encoding
$ctoEncoding :: ChannelState -> Encoding
toJSON :: ChannelState -> Value
$ctoJSON :: ChannelState -> Value
Core.ToJSON,
ToJSONKeyFunction [ChannelState]
ToJSONKeyFunction ChannelState
ToJSONKeyFunction ChannelState
-> ToJSONKeyFunction [ChannelState] -> ToJSONKey ChannelState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ChannelState]
$ctoJSONKeyList :: ToJSONKeyFunction [ChannelState]
toJSONKey :: ToJSONKeyFunction ChannelState
$ctoJSONKey :: ToJSONKeyFunction ChannelState
Core.ToJSONKey,
[Node] -> Either String ChannelState
([Node] -> Either String ChannelState) -> FromXML ChannelState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ChannelState
$cparseXML :: [Node] -> Either String ChannelState
Core.FromXML,
ChannelState -> XML
(ChannelState -> XML) -> ToXML ChannelState
forall a. (a -> XML) -> ToXML a
toXML :: ChannelState -> XML
$ctoXML :: ChannelState -> XML
Core.ToXML
)
pattern ChannelState_CREATE_FAILED :: ChannelState
pattern $bChannelState_CREATE_FAILED :: ChannelState
$mChannelState_CREATE_FAILED :: forall r. ChannelState -> (Void# -> r) -> (Void# -> r) -> r
ChannelState_CREATE_FAILED = ChannelState' "CREATE_FAILED"
pattern ChannelState_CREATING :: ChannelState
pattern $bChannelState_CREATING :: ChannelState
$mChannelState_CREATING :: forall r. ChannelState -> (Void# -> r) -> (Void# -> r) -> r
ChannelState_CREATING = ChannelState' "CREATING"
pattern ChannelState_DELETED :: ChannelState
pattern $bChannelState_DELETED :: ChannelState
$mChannelState_DELETED :: forall r. ChannelState -> (Void# -> r) -> (Void# -> r) -> r
ChannelState_DELETED = ChannelState' "DELETED"
pattern ChannelState_DELETING :: ChannelState
pattern $bChannelState_DELETING :: ChannelState
$mChannelState_DELETING :: forall r. ChannelState -> (Void# -> r) -> (Void# -> r) -> r
ChannelState_DELETING = ChannelState' "DELETING"
pattern ChannelState_IDLE :: ChannelState
pattern $bChannelState_IDLE :: ChannelState
$mChannelState_IDLE :: forall r. ChannelState -> (Void# -> r) -> (Void# -> r) -> r
ChannelState_IDLE = ChannelState' "IDLE"
pattern ChannelState_RECOVERING :: ChannelState
pattern $bChannelState_RECOVERING :: ChannelState
$mChannelState_RECOVERING :: forall r. ChannelState -> (Void# -> r) -> (Void# -> r) -> r
ChannelState_RECOVERING = ChannelState' "RECOVERING"
pattern ChannelState_RUNNING :: ChannelState
pattern $bChannelState_RUNNING :: ChannelState
$mChannelState_RUNNING :: forall r. ChannelState -> (Void# -> r) -> (Void# -> r) -> r
ChannelState_RUNNING = ChannelState' "RUNNING"
pattern ChannelState_STARTING :: ChannelState
pattern $bChannelState_STARTING :: ChannelState
$mChannelState_STARTING :: forall r. ChannelState -> (Void# -> r) -> (Void# -> r) -> r
ChannelState_STARTING = ChannelState' "STARTING"
pattern ChannelState_STOPPING :: ChannelState
pattern $bChannelState_STOPPING :: ChannelState
$mChannelState_STOPPING :: forall r. ChannelState -> (Void# -> r) -> (Void# -> r) -> r
ChannelState_STOPPING = ChannelState' "STOPPING"
pattern ChannelState_UPDATE_FAILED :: ChannelState
pattern $bChannelState_UPDATE_FAILED :: ChannelState
$mChannelState_UPDATE_FAILED :: forall r. ChannelState -> (Void# -> r) -> (Void# -> r) -> r
ChannelState_UPDATE_FAILED = ChannelState' "UPDATE_FAILED"
pattern ChannelState_UPDATING :: ChannelState
pattern $bChannelState_UPDATING :: ChannelState
$mChannelState_UPDATING :: forall r. ChannelState -> (Void# -> r) -> (Void# -> r) -> r
ChannelState_UPDATING = ChannelState' "UPDATING"
{-# COMPLETE
ChannelState_CREATE_FAILED,
ChannelState_CREATING,
ChannelState_DELETED,
ChannelState_DELETING,
ChannelState_IDLE,
ChannelState_RECOVERING,
ChannelState_RUNNING,
ChannelState_STARTING,
ChannelState_STOPPING,
ChannelState_UPDATE_FAILED,
ChannelState_UPDATING,
ChannelState'
#-}