{-# 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.SMS.Types.AppStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SMS.Types.AppStatus
  ( AppStatus
      ( ..,
        AppStatus_ACTIVE,
        AppStatus_CREATING,
        AppStatus_DELETED,
        AppStatus_DELETE_FAILED,
        AppStatus_DELETING,
        AppStatus_UPDATING
      ),
  )
where

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

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

pattern AppStatus_ACTIVE :: AppStatus
pattern $bAppStatus_ACTIVE :: AppStatus
$mAppStatus_ACTIVE :: forall r. AppStatus -> (Void# -> r) -> (Void# -> r) -> r
AppStatus_ACTIVE = AppStatus' "ACTIVE"

pattern AppStatus_CREATING :: AppStatus
pattern $bAppStatus_CREATING :: AppStatus
$mAppStatus_CREATING :: forall r. AppStatus -> (Void# -> r) -> (Void# -> r) -> r
AppStatus_CREATING = AppStatus' "CREATING"

pattern AppStatus_DELETED :: AppStatus
pattern $bAppStatus_DELETED :: AppStatus
$mAppStatus_DELETED :: forall r. AppStatus -> (Void# -> r) -> (Void# -> r) -> r
AppStatus_DELETED = AppStatus' "DELETED"

pattern AppStatus_DELETE_FAILED :: AppStatus
pattern $bAppStatus_DELETE_FAILED :: AppStatus
$mAppStatus_DELETE_FAILED :: forall r. AppStatus -> (Void# -> r) -> (Void# -> r) -> r
AppStatus_DELETE_FAILED = AppStatus' "DELETE_FAILED"

pattern AppStatus_DELETING :: AppStatus
pattern $bAppStatus_DELETING :: AppStatus
$mAppStatus_DELETING :: forall r. AppStatus -> (Void# -> r) -> (Void# -> r) -> r
AppStatus_DELETING = AppStatus' "DELETING"

pattern AppStatus_UPDATING :: AppStatus
pattern $bAppStatus_UPDATING :: AppStatus
$mAppStatus_UPDATING :: forall r. AppStatus -> (Void# -> r) -> (Void# -> r) -> r
AppStatus_UPDATING = AppStatus' "UPDATING"

{-# COMPLETE
  AppStatus_ACTIVE,
  AppStatus_CREATING,
  AppStatus_DELETED,
  AppStatus_DELETE_FAILED,
  AppStatus_DELETING,
  AppStatus_UPDATING,
  AppStatus'
  #-}