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

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

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

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

{-# COMPLETE
  SimulationJobBatchErrorCode_InternalServiceError,
  SimulationJobBatchErrorCode'
  #-}