{-# 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.TimerEligibleParticipantRoles
-- 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.TimerEligibleParticipantRoles
  ( TimerEligibleParticipantRoles
      ( ..,
        TimerEligibleParticipantRoles_AGENT,
        TimerEligibleParticipantRoles_CUSTOMER
      ),
  )
where

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

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

pattern TimerEligibleParticipantRoles_AGENT :: TimerEligibleParticipantRoles
pattern $bTimerEligibleParticipantRoles_AGENT :: TimerEligibleParticipantRoles
$mTimerEligibleParticipantRoles_AGENT :: forall {r}.
TimerEligibleParticipantRoles -> ((# #) -> r) -> ((# #) -> r) -> r
TimerEligibleParticipantRoles_AGENT = TimerEligibleParticipantRoles' "AGENT"

pattern TimerEligibleParticipantRoles_CUSTOMER :: TimerEligibleParticipantRoles
pattern $bTimerEligibleParticipantRoles_CUSTOMER :: TimerEligibleParticipantRoles
$mTimerEligibleParticipantRoles_CUSTOMER :: forall {r}.
TimerEligibleParticipantRoles -> ((# #) -> r) -> ((# #) -> r) -> r
TimerEligibleParticipantRoles_CUSTOMER = TimerEligibleParticipantRoles' "CUSTOMER"

{-# COMPLETE
  TimerEligibleParticipantRoles_AGENT,
  TimerEligibleParticipantRoles_CUSTOMER,
  TimerEligibleParticipantRoles'
  #-}