{-# 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.AppFlow.Types.CatalogType
-- 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.AppFlow.Types.CatalogType
  ( CatalogType
      ( ..,
        CatalogType_GLUE
      ),
  )
where

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

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

pattern CatalogType_GLUE :: CatalogType
pattern $bCatalogType_GLUE :: CatalogType
$mCatalogType_GLUE :: forall {r}. CatalogType -> ((# #) -> r) -> ((# #) -> r) -> r
CatalogType_GLUE = CatalogType' "GLUE"

{-# COMPLETE
  CatalogType_GLUE,
  CatalogType'
  #-}