{-# 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.Discovery.Types.ExportStatus
-- 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.Discovery.Types.ExportStatus
  ( ExportStatus
      ( ..,
        ExportStatus_FAILED,
        ExportStatus_IN_PROGRESS,
        ExportStatus_SUCCEEDED
      ),
  )
where

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

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

pattern ExportStatus_FAILED :: ExportStatus
pattern $bExportStatus_FAILED :: ExportStatus
$mExportStatus_FAILED :: forall {r}. ExportStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ExportStatus_FAILED = ExportStatus' "FAILED"

pattern ExportStatus_IN_PROGRESS :: ExportStatus
pattern $bExportStatus_IN_PROGRESS :: ExportStatus
$mExportStatus_IN_PROGRESS :: forall {r}. ExportStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ExportStatus_IN_PROGRESS = ExportStatus' "IN_PROGRESS"

pattern ExportStatus_SUCCEEDED :: ExportStatus
pattern $bExportStatus_SUCCEEDED :: ExportStatus
$mExportStatus_SUCCEEDED :: forall {r}. ExportStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ExportStatus_SUCCEEDED = ExportStatus' "SUCCEEDED"

{-# COMPLETE
  ExportStatus_FAILED,
  ExportStatus_IN_PROGRESS,
  ExportStatus_SUCCEEDED,
  ExportStatus'
  #-}