{-# 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-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.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.Prelude as Prelude

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

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

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

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

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

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

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

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