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

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

newtype AgentStatusType = AgentStatusType'
  { AgentStatusType -> Text
fromAgentStatusType ::
      Core.Text
  }
  deriving stock
    ( Int -> AgentStatusType -> ShowS
[AgentStatusType] -> ShowS
AgentStatusType -> String
(Int -> AgentStatusType -> ShowS)
-> (AgentStatusType -> String)
-> ([AgentStatusType] -> ShowS)
-> Show AgentStatusType
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]
(Int -> ReadS AgentStatusType)
-> ReadS [AgentStatusType]
-> ReadPrec AgentStatusType
-> ReadPrec [AgentStatusType]
-> Read 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
(AgentStatusType -> AgentStatusType -> Bool)
-> (AgentStatusType -> AgentStatusType -> Bool)
-> Eq AgentStatusType
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
Eq AgentStatusType
-> (AgentStatusType -> AgentStatusType -> Ordering)
-> (AgentStatusType -> AgentStatusType -> Bool)
-> (AgentStatusType -> AgentStatusType -> Bool)
-> (AgentStatusType -> AgentStatusType -> Bool)
-> (AgentStatusType -> AgentStatusType -> Bool)
-> (AgentStatusType -> AgentStatusType -> AgentStatusType)
-> (AgentStatusType -> AgentStatusType -> AgentStatusType)
-> Ord 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
$cp1Ord :: Eq AgentStatusType
Prelude.Ord,
      (forall x. AgentStatusType -> Rep AgentStatusType x)
-> (forall x. Rep AgentStatusType x -> AgentStatusType)
-> Generic AgentStatusType
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
    ( Int -> AgentStatusType -> Int
AgentStatusType -> Int
(Int -> AgentStatusType -> Int)
-> (AgentStatusType -> Int) -> Hashable AgentStatusType
forall 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 -> ()
(AgentStatusType -> ()) -> NFData AgentStatusType
forall a. (a -> ()) -> NFData a
rnf :: AgentStatusType -> ()
$crnf :: AgentStatusType -> ()
Prelude.NFData,
      Text -> Either String AgentStatusType
(Text -> Either String AgentStatusType) -> FromText AgentStatusType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AgentStatusType
$cfromText :: Text -> Either String AgentStatusType
Core.FromText,
      AgentStatusType -> Text
(AgentStatusType -> Text) -> ToText AgentStatusType
forall a. (a -> Text) -> ToText a
toText :: AgentStatusType -> Text
$ctoText :: AgentStatusType -> Text
Core.ToText,
      AgentStatusType -> ByteString
(AgentStatusType -> ByteString) -> ToByteString AgentStatusType
forall a. (a -> ByteString) -> ToByteString a
toBS :: AgentStatusType -> ByteString
$ctoBS :: AgentStatusType -> ByteString
Core.ToByteString,
      AgentStatusType -> ByteStringBuilder
(AgentStatusType -> ByteStringBuilder) -> ToLog AgentStatusType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AgentStatusType -> ByteStringBuilder
$cbuild :: AgentStatusType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> AgentStatusType -> [Header]
(HeaderName -> AgentStatusType -> [Header])
-> ToHeader AgentStatusType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AgentStatusType -> [Header]
$ctoHeader :: HeaderName -> AgentStatusType -> [Header]
Core.ToHeader,
      AgentStatusType -> QueryString
(AgentStatusType -> QueryString) -> ToQuery AgentStatusType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AgentStatusType -> QueryString
$ctoQuery :: AgentStatusType -> QueryString
Core.ToQuery,
      Value -> Parser [AgentStatusType]
Value -> Parser AgentStatusType
(Value -> Parser AgentStatusType)
-> (Value -> Parser [AgentStatusType]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [AgentStatusType]
FromJSONKeyFunction AgentStatusType
FromJSONKeyFunction AgentStatusType
-> FromJSONKeyFunction [AgentStatusType]
-> FromJSONKey AgentStatusType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AgentStatusType]
$cfromJSONKeyList :: FromJSONKeyFunction [AgentStatusType]
fromJSONKey :: FromJSONKeyFunction AgentStatusType
$cfromJSONKey :: FromJSONKeyFunction AgentStatusType
Core.FromJSONKey,
      [AgentStatusType] -> Encoding
[AgentStatusType] -> Value
AgentStatusType -> Encoding
AgentStatusType -> Value
(AgentStatusType -> Value)
-> (AgentStatusType -> Encoding)
-> ([AgentStatusType] -> Value)
-> ([AgentStatusType] -> Encoding)
-> ToJSON AgentStatusType
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
Core.ToJSON,
      ToJSONKeyFunction [AgentStatusType]
ToJSONKeyFunction AgentStatusType
ToJSONKeyFunction AgentStatusType
-> ToJSONKeyFunction [AgentStatusType] -> ToJSONKey AgentStatusType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AgentStatusType]
$ctoJSONKeyList :: ToJSONKeyFunction [AgentStatusType]
toJSONKey :: ToJSONKeyFunction AgentStatusType
$ctoJSONKey :: ToJSONKeyFunction AgentStatusType
Core.ToJSONKey,
      [Node] -> Either String AgentStatusType
([Node] -> Either String AgentStatusType)
-> FromXML AgentStatusType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AgentStatusType
$cparseXML :: [Node] -> Either String AgentStatusType
Core.FromXML,
      AgentStatusType -> XML
(AgentStatusType -> XML) -> ToXML AgentStatusType
forall a. (a -> XML) -> ToXML a
toXML :: AgentStatusType -> XML
$ctoXML :: AgentStatusType -> XML
Core.ToXML
    )

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

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

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

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