{-# 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.ParticipantTimerType
-- 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.Connect.Types.ParticipantTimerType
  ( ParticipantTimerType
      ( ..,
        ParticipantTimerType_DISCONNECT_NONCUSTOMER,
        ParticipantTimerType_IDLE
      ),
  )
where

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

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

pattern ParticipantTimerType_DISCONNECT_NONCUSTOMER :: ParticipantTimerType
pattern $bParticipantTimerType_DISCONNECT_NONCUSTOMER :: ParticipantTimerType
$mParticipantTimerType_DISCONNECT_NONCUSTOMER :: forall {r}.
ParticipantTimerType -> ((# #) -> r) -> ((# #) -> r) -> r
ParticipantTimerType_DISCONNECT_NONCUSTOMER = ParticipantTimerType' "DISCONNECT_NONCUSTOMER"

pattern ParticipantTimerType_IDLE :: ParticipantTimerType
pattern $bParticipantTimerType_IDLE :: ParticipantTimerType
$mParticipantTimerType_IDLE :: forall {r}.
ParticipantTimerType -> ((# #) -> r) -> ((# #) -> r) -> r
ParticipantTimerType_IDLE = ParticipantTimerType' "IDLE"

{-# COMPLETE
  ParticipantTimerType_DISCONNECT_NONCUSTOMER,
  ParticipantTimerType_IDLE,
  ParticipantTimerType'
  #-}