{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MediaLive.Types.ChannelState
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Placeholder documentation for ChannelState
newtype ChannelState = ChannelState'
  { ChannelState -> Text
fromChannelState ::
      Data.Text
  }
  deriving stock
    ( Int -> ChannelState -> ShowS
[ChannelState] -> ShowS
ChannelState -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq ChannelState
Int -> ChannelState -> Int
ChannelState -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: ChannelState -> ()
$crnf :: ChannelState -> ()
Prelude.NFData,
      Text -> Either String ChannelState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ChannelState
$cfromText :: Text -> Either String ChannelState
Data.FromText,
      ChannelState -> Text
forall a. (a -> Text) -> ToText a
toText :: ChannelState -> Text
$ctoText :: ChannelState -> Text
Data.ToText,
      ChannelState -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ChannelState -> ByteString
$ctoBS :: ChannelState -> ByteString
Data.ToByteString,
      ChannelState -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ChannelState -> ByteStringBuilder
$cbuild :: ChannelState -> ByteStringBuilder
Data.ToLog,
      HeaderName -> ChannelState -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ChannelState -> [Header]
$ctoHeader :: HeaderName -> ChannelState -> [Header]
Data.ToHeader,
      ChannelState -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ChannelState -> QueryString
$ctoQuery :: ChannelState -> QueryString
Data.ToQuery,
      Value -> Parser [ChannelState]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [ChannelState]
FromJSONKeyFunction ChannelState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ChannelState]
$cfromJSONKeyList :: FromJSONKeyFunction [ChannelState]
fromJSONKey :: FromJSONKeyFunction ChannelState
$cfromJSONKey :: FromJSONKeyFunction ChannelState
Data.FromJSONKey,
      [ChannelState] -> Encoding
[ChannelState] -> Value
ChannelState -> Encoding
ChannelState -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [ChannelState]
ToJSONKeyFunction ChannelState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ChannelState]
$ctoJSONKeyList :: ToJSONKeyFunction [ChannelState]
toJSONKey :: ToJSONKeyFunction ChannelState
$ctoJSONKey :: ToJSONKeyFunction ChannelState
Data.ToJSONKey,
      [Node] -> Either String ChannelState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ChannelState
$cparseXML :: [Node] -> Either String ChannelState
Data.FromXML,
      ChannelState -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ChannelState -> XML
$ctoXML :: ChannelState -> XML
Data.ToXML
    )

pattern ChannelState_CREATE_FAILED :: ChannelState
pattern $bChannelState_CREATE_FAILED :: ChannelState
$mChannelState_CREATE_FAILED :: forall {r}. ChannelState -> ((# #) -> r) -> ((# #) -> r) -> r
ChannelState_CREATE_FAILED = ChannelState' "CREATE_FAILED"

pattern ChannelState_CREATING :: ChannelState
pattern $bChannelState_CREATING :: ChannelState
$mChannelState_CREATING :: forall {r}. ChannelState -> ((# #) -> r) -> ((# #) -> r) -> r
ChannelState_CREATING = ChannelState' "CREATING"

pattern ChannelState_DELETED :: ChannelState
pattern $bChannelState_DELETED :: ChannelState
$mChannelState_DELETED :: forall {r}. ChannelState -> ((# #) -> r) -> ((# #) -> r) -> r
ChannelState_DELETED = ChannelState' "DELETED"

pattern ChannelState_DELETING :: ChannelState
pattern $bChannelState_DELETING :: ChannelState
$mChannelState_DELETING :: forall {r}. ChannelState -> ((# #) -> r) -> ((# #) -> r) -> r
ChannelState_DELETING = ChannelState' "DELETING"

pattern ChannelState_IDLE :: ChannelState
pattern $bChannelState_IDLE :: ChannelState
$mChannelState_IDLE :: forall {r}. ChannelState -> ((# #) -> r) -> ((# #) -> r) -> r
ChannelState_IDLE = ChannelState' "IDLE"

pattern ChannelState_RECOVERING :: ChannelState
pattern $bChannelState_RECOVERING :: ChannelState
$mChannelState_RECOVERING :: forall {r}. ChannelState -> ((# #) -> r) -> ((# #) -> r) -> r
ChannelState_RECOVERING = ChannelState' "RECOVERING"

pattern ChannelState_RUNNING :: ChannelState
pattern $bChannelState_RUNNING :: ChannelState
$mChannelState_RUNNING :: forall {r}. ChannelState -> ((# #) -> r) -> ((# #) -> r) -> r
ChannelState_RUNNING = ChannelState' "RUNNING"

pattern ChannelState_STARTING :: ChannelState
pattern $bChannelState_STARTING :: ChannelState
$mChannelState_STARTING :: forall {r}. ChannelState -> ((# #) -> r) -> ((# #) -> r) -> r
ChannelState_STARTING = ChannelState' "STARTING"

pattern ChannelState_STOPPING :: ChannelState
pattern $bChannelState_STOPPING :: ChannelState
$mChannelState_STOPPING :: forall {r}. ChannelState -> ((# #) -> r) -> ((# #) -> r) -> r
ChannelState_STOPPING = ChannelState' "STOPPING"

pattern ChannelState_UPDATE_FAILED :: ChannelState
pattern $bChannelState_UPDATE_FAILED :: ChannelState
$mChannelState_UPDATE_FAILED :: forall {r}. ChannelState -> ((# #) -> r) -> ((# #) -> r) -> r
ChannelState_UPDATE_FAILED = ChannelState' "UPDATE_FAILED"

pattern ChannelState_UPDATING :: ChannelState
pattern $bChannelState_UPDATING :: ChannelState
$mChannelState_UPDATING :: forall {r}. ChannelState -> ((# #) -> r) -> ((# #) -> 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'
  #-}