{-# 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.DataExchange.Types.JobErrorResourceTypes
-- 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.DataExchange.Types.JobErrorResourceTypes
  ( JobErrorResourceTypes
      ( ..,
        JobErrorResourceTypes_ASSET,
        JobErrorResourceTypes_DATA_SET,
        JobErrorResourceTypes_REVISION
      ),
  )
where

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

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

pattern JobErrorResourceTypes_ASSET :: JobErrorResourceTypes
pattern $bJobErrorResourceTypes_ASSET :: JobErrorResourceTypes
$mJobErrorResourceTypes_ASSET :: forall r.
JobErrorResourceTypes -> (Void# -> r) -> (Void# -> r) -> r
JobErrorResourceTypes_ASSET = JobErrorResourceTypes' "ASSET"

pattern JobErrorResourceTypes_DATA_SET :: JobErrorResourceTypes
pattern $bJobErrorResourceTypes_DATA_SET :: JobErrorResourceTypes
$mJobErrorResourceTypes_DATA_SET :: forall r.
JobErrorResourceTypes -> (Void# -> r) -> (Void# -> r) -> r
JobErrorResourceTypes_DATA_SET = JobErrorResourceTypes' "DATA_SET"

pattern JobErrorResourceTypes_REVISION :: JobErrorResourceTypes
pattern $bJobErrorResourceTypes_REVISION :: JobErrorResourceTypes
$mJobErrorResourceTypes_REVISION :: forall r.
JobErrorResourceTypes -> (Void# -> r) -> (Void# -> r) -> r
JobErrorResourceTypes_REVISION = JobErrorResourceTypes' "REVISION"

{-# COMPLETE
  JobErrorResourceTypes_ASSET,
  JobErrorResourceTypes_DATA_SET,
  JobErrorResourceTypes_REVISION,
  JobErrorResourceTypes'
  #-}