{-# 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.CustomerProfiles.Types.SourceConnectorType
-- 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.CustomerProfiles.Types.SourceConnectorType
  ( SourceConnectorType
      ( ..,
        SourceConnectorType_Marketo,
        SourceConnectorType_S3,
        SourceConnectorType_Salesforce,
        SourceConnectorType_Servicenow,
        SourceConnectorType_Zendesk
      ),
  )
where

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

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

pattern SourceConnectorType_Marketo :: SourceConnectorType
pattern $bSourceConnectorType_Marketo :: SourceConnectorType
$mSourceConnectorType_Marketo :: forall r. SourceConnectorType -> (Void# -> r) -> (Void# -> r) -> r
SourceConnectorType_Marketo = SourceConnectorType' "Marketo"

pattern SourceConnectorType_S3 :: SourceConnectorType
pattern $bSourceConnectorType_S3 :: SourceConnectorType
$mSourceConnectorType_S3 :: forall r. SourceConnectorType -> (Void# -> r) -> (Void# -> r) -> r
SourceConnectorType_S3 = SourceConnectorType' "S3"

pattern SourceConnectorType_Salesforce :: SourceConnectorType
pattern $bSourceConnectorType_Salesforce :: SourceConnectorType
$mSourceConnectorType_Salesforce :: forall r. SourceConnectorType -> (Void# -> r) -> (Void# -> r) -> r
SourceConnectorType_Salesforce = SourceConnectorType' "Salesforce"

pattern SourceConnectorType_Servicenow :: SourceConnectorType
pattern $bSourceConnectorType_Servicenow :: SourceConnectorType
$mSourceConnectorType_Servicenow :: forall r. SourceConnectorType -> (Void# -> r) -> (Void# -> r) -> r
SourceConnectorType_Servicenow = SourceConnectorType' "Servicenow"

pattern SourceConnectorType_Zendesk :: SourceConnectorType
pattern $bSourceConnectorType_Zendesk :: SourceConnectorType
$mSourceConnectorType_Zendesk :: forall r. SourceConnectorType -> (Void# -> r) -> (Void# -> r) -> r
SourceConnectorType_Zendesk = SourceConnectorType' "Zendesk"

{-# COMPLETE
  SourceConnectorType_Marketo,
  SourceConnectorType_S3,
  SourceConnectorType_Salesforce,
  SourceConnectorType_Servicenow,
  SourceConnectorType_Zendesk,
  SourceConnectorType'
  #-}