{-# 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.AgentStatusType
-- 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.AgentStatusType
  ( AgentStatusType
      ( ..,
        AgentStatusType_CUSTOM,
        AgentStatusType_OFFLINE,
        AgentStatusType_ROUTABLE
      ),
  )
where

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

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

pattern AgentStatusType_CUSTOM :: AgentStatusType
pattern $bAgentStatusType_CUSTOM :: AgentStatusType
$mAgentStatusType_CUSTOM :: forall {r}. AgentStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
AgentStatusType_CUSTOM = AgentStatusType' "CUSTOM"

pattern AgentStatusType_OFFLINE :: AgentStatusType
pattern $bAgentStatusType_OFFLINE :: AgentStatusType
$mAgentStatusType_OFFLINE :: forall {r}. AgentStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
AgentStatusType_OFFLINE = AgentStatusType' "OFFLINE"

pattern AgentStatusType_ROUTABLE :: AgentStatusType
pattern $bAgentStatusType_ROUTABLE :: AgentStatusType
$mAgentStatusType_ROUTABLE :: forall {r}. AgentStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
AgentStatusType_ROUTABLE = AgentStatusType' "ROUTABLE"

{-# COMPLETE
  AgentStatusType_CUSTOM,
  AgentStatusType_OFFLINE,
  AgentStatusType_ROUTABLE,
  AgentStatusType'
  #-}