{-# 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.MigrationStatus
-- 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.MigrationStatus
  ( MigrationStatus
      ( ..,
        MigrationStatus_COMPLETED,
        MigrationStatus_FAILED,
        MigrationStatus_IN_PROGRESS,
        MigrationStatus_NOT_STARTED
      ),
  )
where

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

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

pattern MigrationStatus_COMPLETED :: MigrationStatus
pattern $bMigrationStatus_COMPLETED :: MigrationStatus
$mMigrationStatus_COMPLETED :: forall r. MigrationStatus -> (Void# -> r) -> (Void# -> r) -> r
MigrationStatus_COMPLETED = MigrationStatus' "COMPLETED"

pattern MigrationStatus_FAILED :: MigrationStatus
pattern $bMigrationStatus_FAILED :: MigrationStatus
$mMigrationStatus_FAILED :: forall r. MigrationStatus -> (Void# -> r) -> (Void# -> r) -> r
MigrationStatus_FAILED = MigrationStatus' "FAILED"

pattern MigrationStatus_IN_PROGRESS :: MigrationStatus
pattern $bMigrationStatus_IN_PROGRESS :: MigrationStatus
$mMigrationStatus_IN_PROGRESS :: forall r. MigrationStatus -> (Void# -> r) -> (Void# -> r) -> r
MigrationStatus_IN_PROGRESS = MigrationStatus' "IN_PROGRESS"

pattern MigrationStatus_NOT_STARTED :: MigrationStatus
pattern $bMigrationStatus_NOT_STARTED :: MigrationStatus
$mMigrationStatus_NOT_STARTED :: forall r. MigrationStatus -> (Void# -> r) -> (Void# -> r) -> r
MigrationStatus_NOT_STARTED = MigrationStatus' "NOT_STARTED"

{-# COMPLETE
  MigrationStatus_COMPLETED,
  MigrationStatus_FAILED,
  MigrationStatus_IN_PROGRESS,
  MigrationStatus_NOT_STARTED,
  MigrationStatus'
  #-}