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

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

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

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

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

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

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