{-# 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.BatchDeleteImportDataErrorCode
-- 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.BatchDeleteImportDataErrorCode
  ( BatchDeleteImportDataErrorCode
      ( ..,
        BatchDeleteImportDataErrorCode_INTERNAL_SERVER_ERROR,
        BatchDeleteImportDataErrorCode_NOT_FOUND,
        BatchDeleteImportDataErrorCode_OVER_LIMIT
      ),
  )
where

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

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

pattern BatchDeleteImportDataErrorCode_INTERNAL_SERVER_ERROR :: BatchDeleteImportDataErrorCode
pattern $bBatchDeleteImportDataErrorCode_INTERNAL_SERVER_ERROR :: BatchDeleteImportDataErrorCode
$mBatchDeleteImportDataErrorCode_INTERNAL_SERVER_ERROR :: forall {r}.
BatchDeleteImportDataErrorCode -> ((# #) -> r) -> ((# #) -> r) -> r
BatchDeleteImportDataErrorCode_INTERNAL_SERVER_ERROR = BatchDeleteImportDataErrorCode' "INTERNAL_SERVER_ERROR"

pattern BatchDeleteImportDataErrorCode_NOT_FOUND :: BatchDeleteImportDataErrorCode
pattern $bBatchDeleteImportDataErrorCode_NOT_FOUND :: BatchDeleteImportDataErrorCode
$mBatchDeleteImportDataErrorCode_NOT_FOUND :: forall {r}.
BatchDeleteImportDataErrorCode -> ((# #) -> r) -> ((# #) -> r) -> r
BatchDeleteImportDataErrorCode_NOT_FOUND = BatchDeleteImportDataErrorCode' "NOT_FOUND"

pattern BatchDeleteImportDataErrorCode_OVER_LIMIT :: BatchDeleteImportDataErrorCode
pattern $bBatchDeleteImportDataErrorCode_OVER_LIMIT :: BatchDeleteImportDataErrorCode
$mBatchDeleteImportDataErrorCode_OVER_LIMIT :: forall {r}.
BatchDeleteImportDataErrorCode -> ((# #) -> r) -> ((# #) -> r) -> r
BatchDeleteImportDataErrorCode_OVER_LIMIT = BatchDeleteImportDataErrorCode' "OVER_LIMIT"

{-# COMPLETE
  BatchDeleteImportDataErrorCode_INTERNAL_SERVER_ERROR,
  BatchDeleteImportDataErrorCode_NOT_FOUND,
  BatchDeleteImportDataErrorCode_OVER_LIMIT,
  BatchDeleteImportDataErrorCode'
  #-}