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

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

newtype ExportStatus = ExportStatus'
  { ExportStatus -> Text
fromExportStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> ExportStatus -> ShowS
[ExportStatus] -> ShowS
ExportStatus -> String
(Int -> ExportStatus -> ShowS)
-> (ExportStatus -> String)
-> ([ExportStatus] -> ShowS)
-> Show ExportStatus
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]
(Int -> ReadS ExportStatus)
-> ReadS [ExportStatus]
-> ReadPrec ExportStatus
-> ReadPrec [ExportStatus]
-> Read 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
(ExportStatus -> ExportStatus -> Bool)
-> (ExportStatus -> ExportStatus -> Bool) -> Eq ExportStatus
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
Eq ExportStatus
-> (ExportStatus -> ExportStatus -> Ordering)
-> (ExportStatus -> ExportStatus -> Bool)
-> (ExportStatus -> ExportStatus -> Bool)
-> (ExportStatus -> ExportStatus -> Bool)
-> (ExportStatus -> ExportStatus -> Bool)
-> (ExportStatus -> ExportStatus -> ExportStatus)
-> (ExportStatus -> ExportStatus -> ExportStatus)
-> Ord 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
$cp1Ord :: Eq ExportStatus
Prelude.Ord,
      (forall x. ExportStatus -> Rep ExportStatus x)
-> (forall x. Rep ExportStatus x -> ExportStatus)
-> Generic ExportStatus
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
    ( Int -> ExportStatus -> Int
ExportStatus -> Int
(Int -> ExportStatus -> Int)
-> (ExportStatus -> Int) -> Hashable ExportStatus
forall 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 -> ()
(ExportStatus -> ()) -> NFData ExportStatus
forall a. (a -> ()) -> NFData a
rnf :: ExportStatus -> ()
$crnf :: ExportStatus -> ()
Prelude.NFData,
      Text -> Either String ExportStatus
(Text -> Either String ExportStatus) -> FromText ExportStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ExportStatus
$cfromText :: Text -> Either String ExportStatus
Core.FromText,
      ExportStatus -> Text
(ExportStatus -> Text) -> ToText ExportStatus
forall a. (a -> Text) -> ToText a
toText :: ExportStatus -> Text
$ctoText :: ExportStatus -> Text
Core.ToText,
      ExportStatus -> ByteString
(ExportStatus -> ByteString) -> ToByteString ExportStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ExportStatus -> ByteString
$ctoBS :: ExportStatus -> ByteString
Core.ToByteString,
      ExportStatus -> ByteStringBuilder
(ExportStatus -> ByteStringBuilder) -> ToLog ExportStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ExportStatus -> ByteStringBuilder
$cbuild :: ExportStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ExportStatus -> [Header]
(HeaderName -> ExportStatus -> [Header]) -> ToHeader ExportStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ExportStatus -> [Header]
$ctoHeader :: HeaderName -> ExportStatus -> [Header]
Core.ToHeader,
      ExportStatus -> QueryString
(ExportStatus -> QueryString) -> ToQuery ExportStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ExportStatus -> QueryString
$ctoQuery :: ExportStatus -> QueryString
Core.ToQuery,
      Value -> Parser [ExportStatus]
Value -> Parser ExportStatus
(Value -> Parser ExportStatus)
-> (Value -> Parser [ExportStatus]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ExportStatus]
FromJSONKeyFunction ExportStatus
FromJSONKeyFunction ExportStatus
-> FromJSONKeyFunction [ExportStatus] -> FromJSONKey ExportStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ExportStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ExportStatus]
fromJSONKey :: FromJSONKeyFunction ExportStatus
$cfromJSONKey :: FromJSONKeyFunction ExportStatus
Core.FromJSONKey,
      [ExportStatus] -> Encoding
[ExportStatus] -> Value
ExportStatus -> Encoding
ExportStatus -> Value
(ExportStatus -> Value)
-> (ExportStatus -> Encoding)
-> ([ExportStatus] -> Value)
-> ([ExportStatus] -> Encoding)
-> ToJSON ExportStatus
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
Core.ToJSON,
      ToJSONKeyFunction [ExportStatus]
ToJSONKeyFunction ExportStatus
ToJSONKeyFunction ExportStatus
-> ToJSONKeyFunction [ExportStatus] -> ToJSONKey ExportStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ExportStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ExportStatus]
toJSONKey :: ToJSONKeyFunction ExportStatus
$ctoJSONKey :: ToJSONKeyFunction ExportStatus
Core.ToJSONKey,
      [Node] -> Either String ExportStatus
([Node] -> Either String ExportStatus) -> FromXML ExportStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ExportStatus
$cparseXML :: [Node] -> Either String ExportStatus
Core.FromXML,
      ExportStatus -> XML
(ExportStatus -> XML) -> ToXML ExportStatus
forall a. (a -> XML) -> ToXML a
toXML :: ExportStatus -> XML
$ctoXML :: ExportStatus -> XML
Core.ToXML
    )

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

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

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

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