{-# 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.QuickConnectType
-- 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.QuickConnectType
  ( QuickConnectType
      ( ..,
        QuickConnectType_PHONE_NUMBER,
        QuickConnectType_QUEUE,
        QuickConnectType_USER
      ),
  )
where

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

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

pattern QuickConnectType_PHONE_NUMBER :: QuickConnectType
pattern $bQuickConnectType_PHONE_NUMBER :: QuickConnectType
$mQuickConnectType_PHONE_NUMBER :: forall r. QuickConnectType -> (Void# -> r) -> (Void# -> r) -> r
QuickConnectType_PHONE_NUMBER = QuickConnectType' "PHONE_NUMBER"

pattern QuickConnectType_QUEUE :: QuickConnectType
pattern $bQuickConnectType_QUEUE :: QuickConnectType
$mQuickConnectType_QUEUE :: forall r. QuickConnectType -> (Void# -> r) -> (Void# -> r) -> r
QuickConnectType_QUEUE = QuickConnectType' "QUEUE"

pattern QuickConnectType_USER :: QuickConnectType
pattern $bQuickConnectType_USER :: QuickConnectType
$mQuickConnectType_USER :: forall r. QuickConnectType -> (Void# -> r) -> (Void# -> r) -> r
QuickConnectType_USER = QuickConnectType' "USER"

{-# COMPLETE
  QuickConnectType_PHONE_NUMBER,
  QuickConnectType_QUEUE,
  QuickConnectType_USER,
  QuickConnectType'
  #-}