{-# 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.ParticipantTimerAction
-- 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.ParticipantTimerAction
  ( ParticipantTimerAction
      ( ..,
        ParticipantTimerAction_Unset
      ),
  )
where

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

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

pattern ParticipantTimerAction_Unset :: ParticipantTimerAction
pattern $bParticipantTimerAction_Unset :: ParticipantTimerAction
$mParticipantTimerAction_Unset :: forall {r}.
ParticipantTimerAction -> ((# #) -> r) -> ((# #) -> r) -> r
ParticipantTimerAction_Unset = ParticipantTimerAction' "Unset"

{-# COMPLETE
  ParticipantTimerAction_Unset,
  ParticipantTimerAction'
  #-}