{-# 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.RobOMaker.Types.SimulationJobBatchErrorCode
-- 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.RobOMaker.Types.SimulationJobBatchErrorCode
  ( SimulationJobBatchErrorCode
      ( ..,
        SimulationJobBatchErrorCode_InternalServiceError
      ),
  )
where

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

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

pattern SimulationJobBatchErrorCode_InternalServiceError :: SimulationJobBatchErrorCode
pattern $bSimulationJobBatchErrorCode_InternalServiceError :: SimulationJobBatchErrorCode
$mSimulationJobBatchErrorCode_InternalServiceError :: forall {r}.
SimulationJobBatchErrorCode -> ((# #) -> r) -> ((# #) -> r) -> r
SimulationJobBatchErrorCode_InternalServiceError = SimulationJobBatchErrorCode' "InternalServiceError"

{-# COMPLETE
  SimulationJobBatchErrorCode_InternalServiceError,
  SimulationJobBatchErrorCode'
  #-}