{-# 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.QueueStatus
-- 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.QueueStatus
  ( QueueStatus
      ( ..,
        QueueStatus_DISABLED,
        QueueStatus_ENABLED
      ),
  )
where

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

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

pattern QueueStatus_DISABLED :: QueueStatus
pattern $bQueueStatus_DISABLED :: QueueStatus
$mQueueStatus_DISABLED :: forall r. QueueStatus -> (Void# -> r) -> (Void# -> r) -> r
QueueStatus_DISABLED = QueueStatus' "DISABLED"

pattern QueueStatus_ENABLED :: QueueStatus
pattern $bQueueStatus_ENABLED :: QueueStatus
$mQueueStatus_ENABLED :: forall r. QueueStatus -> (Void# -> r) -> (Void# -> r) -> r
QueueStatus_ENABLED = QueueStatus' "ENABLED"

{-# COMPLETE
  QueueStatus_DISABLED,
  QueueStatus_ENABLED,
  QueueStatus'
  #-}