{-# 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.Route53.Types.InsufficientDataHealthStatus
-- 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.Route53.Types.InsufficientDataHealthStatus
  ( InsufficientDataHealthStatus
      ( ..,
        InsufficientDataHealthStatus_Healthy,
        InsufficientDataHealthStatus_LastKnownStatus,
        InsufficientDataHealthStatus_Unhealthy
      ),
  )
where

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

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

pattern InsufficientDataHealthStatus_Healthy :: InsufficientDataHealthStatus
pattern $bInsufficientDataHealthStatus_Healthy :: InsufficientDataHealthStatus
$mInsufficientDataHealthStatus_Healthy :: forall {r}.
InsufficientDataHealthStatus -> ((# #) -> r) -> ((# #) -> r) -> r
InsufficientDataHealthStatus_Healthy = InsufficientDataHealthStatus' "Healthy"

pattern InsufficientDataHealthStatus_LastKnownStatus :: InsufficientDataHealthStatus
pattern $bInsufficientDataHealthStatus_LastKnownStatus :: InsufficientDataHealthStatus
$mInsufficientDataHealthStatus_LastKnownStatus :: forall {r}.
InsufficientDataHealthStatus -> ((# #) -> r) -> ((# #) -> r) -> r
InsufficientDataHealthStatus_LastKnownStatus = InsufficientDataHealthStatus' "LastKnownStatus"

pattern InsufficientDataHealthStatus_Unhealthy :: InsufficientDataHealthStatus
pattern $bInsufficientDataHealthStatus_Unhealthy :: InsufficientDataHealthStatus
$mInsufficientDataHealthStatus_Unhealthy :: forall {r}.
InsufficientDataHealthStatus -> ((# #) -> r) -> ((# #) -> r) -> r
InsufficientDataHealthStatus_Unhealthy = InsufficientDataHealthStatus' "Unhealthy"

{-# COMPLETE
  InsufficientDataHealthStatus_Healthy,
  InsufficientDataHealthStatus_LastKnownStatus,
  InsufficientDataHealthStatus_Unhealthy,
  InsufficientDataHealthStatus'
  #-}