{-# 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.MigrationHubStrategy.Types.CollectorHealth
-- 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.MigrationHubStrategy.Types.CollectorHealth
  ( CollectorHealth
      ( ..,
        CollectorHealth_COLLECTOR_HEALTHY,
        CollectorHealth_COLLECTOR_UNHEALTHY
      ),
  )
where

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

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

pattern CollectorHealth_COLLECTOR_HEALTHY :: CollectorHealth
pattern $bCollectorHealth_COLLECTOR_HEALTHY :: CollectorHealth
$mCollectorHealth_COLLECTOR_HEALTHY :: forall {r}. CollectorHealth -> ((# #) -> r) -> ((# #) -> r) -> r
CollectorHealth_COLLECTOR_HEALTHY = CollectorHealth' "COLLECTOR_HEALTHY"

pattern CollectorHealth_COLLECTOR_UNHEALTHY :: CollectorHealth
pattern $bCollectorHealth_COLLECTOR_UNHEALTHY :: CollectorHealth
$mCollectorHealth_COLLECTOR_UNHEALTHY :: forall {r}. CollectorHealth -> ((# #) -> r) -> ((# #) -> r) -> r
CollectorHealth_COLLECTOR_UNHEALTHY = CollectorHealth' "COLLECTOR_UNHEALTHY"

{-# COMPLETE
  CollectorHealth_COLLECTOR_HEALTHY,
  CollectorHealth_COLLECTOR_UNHEALTHY,
  CollectorHealth'
  #-}