{-# 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.MGN.Types.WaveProgressStatus
-- 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.MGN.Types.WaveProgressStatus
  ( WaveProgressStatus
      ( ..,
        WaveProgressStatus_COMPLETED,
        WaveProgressStatus_IN_PROGRESS,
        WaveProgressStatus_NOT_STARTED
      ),
  )
where

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

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

pattern WaveProgressStatus_COMPLETED :: WaveProgressStatus
pattern $bWaveProgressStatus_COMPLETED :: WaveProgressStatus
$mWaveProgressStatus_COMPLETED :: forall {r}. WaveProgressStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WaveProgressStatus_COMPLETED = WaveProgressStatus' "COMPLETED"

pattern WaveProgressStatus_IN_PROGRESS :: WaveProgressStatus
pattern $bWaveProgressStatus_IN_PROGRESS :: WaveProgressStatus
$mWaveProgressStatus_IN_PROGRESS :: forall {r}. WaveProgressStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WaveProgressStatus_IN_PROGRESS = WaveProgressStatus' "IN_PROGRESS"

pattern WaveProgressStatus_NOT_STARTED :: WaveProgressStatus
pattern $bWaveProgressStatus_NOT_STARTED :: WaveProgressStatus
$mWaveProgressStatus_NOT_STARTED :: forall {r}. WaveProgressStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WaveProgressStatus_NOT_STARTED = WaveProgressStatus' "NOT_STARTED"

{-# COMPLETE
  WaveProgressStatus_COMPLETED,
  WaveProgressStatus_IN_PROGRESS,
  WaveProgressStatus_NOT_STARTED,
  WaveProgressStatus'
  #-}