{-# 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.Discovery.Types.AgentStatus
-- 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.Discovery.Types.AgentStatus
  ( AgentStatus
      ( ..,
        AgentStatus_BLACKLISTED,
        AgentStatus_HEALTHY,
        AgentStatus_RUNNING,
        AgentStatus_SHUTDOWN,
        AgentStatus_UNHEALTHY,
        AgentStatus_UNKNOWN
      ),
  )
where

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

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

pattern AgentStatus_BLACKLISTED :: AgentStatus
pattern $bAgentStatus_BLACKLISTED :: AgentStatus
$mAgentStatus_BLACKLISTED :: forall {r}. AgentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AgentStatus_BLACKLISTED = AgentStatus' "BLACKLISTED"

pattern AgentStatus_HEALTHY :: AgentStatus
pattern $bAgentStatus_HEALTHY :: AgentStatus
$mAgentStatus_HEALTHY :: forall {r}. AgentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AgentStatus_HEALTHY = AgentStatus' "HEALTHY"

pattern AgentStatus_RUNNING :: AgentStatus
pattern $bAgentStatus_RUNNING :: AgentStatus
$mAgentStatus_RUNNING :: forall {r}. AgentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AgentStatus_RUNNING = AgentStatus' "RUNNING"

pattern AgentStatus_SHUTDOWN :: AgentStatus
pattern $bAgentStatus_SHUTDOWN :: AgentStatus
$mAgentStatus_SHUTDOWN :: forall {r}. AgentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AgentStatus_SHUTDOWN = AgentStatus' "SHUTDOWN"

pattern AgentStatus_UNHEALTHY :: AgentStatus
pattern $bAgentStatus_UNHEALTHY :: AgentStatus
$mAgentStatus_UNHEALTHY :: forall {r}. AgentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AgentStatus_UNHEALTHY = AgentStatus' "UNHEALTHY"

pattern AgentStatus_UNKNOWN :: AgentStatus
pattern $bAgentStatus_UNKNOWN :: AgentStatus
$mAgentStatus_UNKNOWN :: forall {r}. AgentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AgentStatus_UNKNOWN = AgentStatus' "UNKNOWN"

{-# COMPLETE
  AgentStatus_BLACKLISTED,
  AgentStatus_HEALTHY,
  AgentStatus_RUNNING,
  AgentStatus_SHUTDOWN,
  AgentStatus_UNHEALTHY,
  AgentStatus_UNKNOWN,
  AgentStatus'
  #-}