{-# 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.ResilienceHub.Types.AppStatusType
-- 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.ResilienceHub.Types.AppStatusType
  ( AppStatusType
      ( ..,
        AppStatusType_Active,
        AppStatusType_Deleting
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

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

pattern AppStatusType_Active :: AppStatusType
pattern $bAppStatusType_Active :: AppStatusType
$mAppStatusType_Active :: forall {r}. AppStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
AppStatusType_Active = AppStatusType' "Active"

pattern AppStatusType_Deleting :: AppStatusType
pattern $bAppStatusType_Deleting :: AppStatusType
$mAppStatusType_Deleting :: forall {r}. AppStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
AppStatusType_Deleting = AppStatusType' "Deleting"

{-# COMPLETE
  AppStatusType_Active,
  AppStatusType_Deleting,
  AppStatusType'
  #-}