{-# 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.MigrationHub.Types.ApplicationStatus
-- 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.MigrationHub.Types.ApplicationStatus
  ( ApplicationStatus
      ( ..,
        ApplicationStatus_COMPLETED,
        ApplicationStatus_IN_PROGRESS,
        ApplicationStatus_NOT_STARTED
      ),
  )
where

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

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

pattern ApplicationStatus_COMPLETED :: ApplicationStatus
pattern $bApplicationStatus_COMPLETED :: ApplicationStatus
$mApplicationStatus_COMPLETED :: forall r. ApplicationStatus -> (Void# -> r) -> (Void# -> r) -> r
ApplicationStatus_COMPLETED = ApplicationStatus' "COMPLETED"

pattern ApplicationStatus_IN_PROGRESS :: ApplicationStatus
pattern $bApplicationStatus_IN_PROGRESS :: ApplicationStatus
$mApplicationStatus_IN_PROGRESS :: forall r. ApplicationStatus -> (Void# -> r) -> (Void# -> r) -> r
ApplicationStatus_IN_PROGRESS = ApplicationStatus' "IN_PROGRESS"

pattern ApplicationStatus_NOT_STARTED :: ApplicationStatus
pattern $bApplicationStatus_NOT_STARTED :: ApplicationStatus
$mApplicationStatus_NOT_STARTED :: forall r. ApplicationStatus -> (Void# -> r) -> (Void# -> r) -> r
ApplicationStatus_NOT_STARTED = ApplicationStatus' "NOT_STARTED"

{-# COMPLETE
  ApplicationStatus_COMPLETED,
  ApplicationStatus_IN_PROGRESS,
  ApplicationStatus_NOT_STARTED,
  ApplicationStatus'
  #-}