{-# 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.Connect.Types.IntegrationType
-- 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.Connect.Types.IntegrationType
  ( IntegrationType
      ( ..,
        IntegrationType_EVENT,
        IntegrationType_PINPOINT_APP,
        IntegrationType_VOICE_ID,
        IntegrationType_WISDOM_ASSISTANT,
        IntegrationType_WISDOM_KNOWLEDGE_BASE
      ),
  )
where

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

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

pattern IntegrationType_EVENT :: IntegrationType
pattern $bIntegrationType_EVENT :: IntegrationType
$mIntegrationType_EVENT :: forall r. IntegrationType -> (Void# -> r) -> (Void# -> r) -> r
IntegrationType_EVENT = IntegrationType' "EVENT"

pattern IntegrationType_PINPOINT_APP :: IntegrationType
pattern $bIntegrationType_PINPOINT_APP :: IntegrationType
$mIntegrationType_PINPOINT_APP :: forall r. IntegrationType -> (Void# -> r) -> (Void# -> r) -> r
IntegrationType_PINPOINT_APP = IntegrationType' "PINPOINT_APP"

pattern IntegrationType_VOICE_ID :: IntegrationType
pattern $bIntegrationType_VOICE_ID :: IntegrationType
$mIntegrationType_VOICE_ID :: forall r. IntegrationType -> (Void# -> r) -> (Void# -> r) -> r
IntegrationType_VOICE_ID = IntegrationType' "VOICE_ID"

pattern IntegrationType_WISDOM_ASSISTANT :: IntegrationType
pattern $bIntegrationType_WISDOM_ASSISTANT :: IntegrationType
$mIntegrationType_WISDOM_ASSISTANT :: forall r. IntegrationType -> (Void# -> r) -> (Void# -> r) -> r
IntegrationType_WISDOM_ASSISTANT = IntegrationType' "WISDOM_ASSISTANT"

pattern IntegrationType_WISDOM_KNOWLEDGE_BASE :: IntegrationType
pattern $bIntegrationType_WISDOM_KNOWLEDGE_BASE :: IntegrationType
$mIntegrationType_WISDOM_KNOWLEDGE_BASE :: forall r. IntegrationType -> (Void# -> r) -> (Void# -> r) -> r
IntegrationType_WISDOM_KNOWLEDGE_BASE = IntegrationType' "WISDOM_KNOWLEDGE_BASE"

{-# COMPLETE
  IntegrationType_EVENT,
  IntegrationType_PINPOINT_APP,
  IntegrationType_VOICE_ID,
  IntegrationType_WISDOM_ASSISTANT,
  IntegrationType_WISDOM_KNOWLEDGE_BASE,
  IntegrationType'
  #-}