{-# 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.SageMakerGeoSpatial.Types.ExportErrorType
-- 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.SageMakerGeoSpatial.Types.ExportErrorType
  ( ExportErrorType
      ( ..,
        ExportErrorType_CLIENT_ERROR,
        ExportErrorType_SERVER_ERROR
      ),
  )
where

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

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

pattern ExportErrorType_CLIENT_ERROR :: ExportErrorType
pattern $bExportErrorType_CLIENT_ERROR :: ExportErrorType
$mExportErrorType_CLIENT_ERROR :: forall {r}. ExportErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
ExportErrorType_CLIENT_ERROR = ExportErrorType' "CLIENT_ERROR"

pattern ExportErrorType_SERVER_ERROR :: ExportErrorType
pattern $bExportErrorType_SERVER_ERROR :: ExportErrorType
$mExportErrorType_SERVER_ERROR :: forall {r}. ExportErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
ExportErrorType_SERVER_ERROR = ExportErrorType' "SERVER_ERROR"

{-# COMPLETE
  ExportErrorType_CLIENT_ERROR,
  ExportErrorType_SERVER_ERROR,
  ExportErrorType'
  #-}