{-# 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.Route53AutoNaming.Types.HealthStatus
-- 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.Route53AutoNaming.Types.HealthStatus
  ( HealthStatus
      ( ..,
        HealthStatus_HEALTHY,
        HealthStatus_UNHEALTHY,
        HealthStatus_UNKNOWN
      ),
  )
where

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

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

pattern HealthStatus_HEALTHY :: HealthStatus
pattern $bHealthStatus_HEALTHY :: HealthStatus
$mHealthStatus_HEALTHY :: forall {r}. HealthStatus -> ((# #) -> r) -> ((# #) -> r) -> r
HealthStatus_HEALTHY = HealthStatus' "HEALTHY"

pattern HealthStatus_UNHEALTHY :: HealthStatus
pattern $bHealthStatus_UNHEALTHY :: HealthStatus
$mHealthStatus_UNHEALTHY :: forall {r}. HealthStatus -> ((# #) -> r) -> ((# #) -> r) -> r
HealthStatus_UNHEALTHY = HealthStatus' "UNHEALTHY"

pattern HealthStatus_UNKNOWN :: HealthStatus
pattern $bHealthStatus_UNKNOWN :: HealthStatus
$mHealthStatus_UNKNOWN :: forall {r}. HealthStatus -> ((# #) -> r) -> ((# #) -> r) -> r
HealthStatus_UNKNOWN = HealthStatus' "UNKNOWN"

{-# COMPLETE
  HealthStatus_HEALTHY,
  HealthStatus_UNHEALTHY,
  HealthStatus_UNKNOWN,
  HealthStatus'
  #-}