{-# 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.CustomHealthStatus
-- 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.CustomHealthStatus
  ( CustomHealthStatus
      ( ..,
        CustomHealthStatus_HEALTHY,
        CustomHealthStatus_UNHEALTHY
      ),
  )
where

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

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

pattern CustomHealthStatus_HEALTHY :: CustomHealthStatus
pattern $bCustomHealthStatus_HEALTHY :: CustomHealthStatus
$mCustomHealthStatus_HEALTHY :: forall r. CustomHealthStatus -> (Void# -> r) -> (Void# -> r) -> r
CustomHealthStatus_HEALTHY = CustomHealthStatus' "HEALTHY"

pattern CustomHealthStatus_UNHEALTHY :: CustomHealthStatus
pattern $bCustomHealthStatus_UNHEALTHY :: CustomHealthStatus
$mCustomHealthStatus_UNHEALTHY :: forall r. CustomHealthStatus -> (Void# -> r) -> (Void# -> r) -> r
CustomHealthStatus_UNHEALTHY = CustomHealthStatus' "UNHEALTHY"

{-# COMPLETE
  CustomHealthStatus_HEALTHY,
  CustomHealthStatus_UNHEALTHY,
  CustomHealthStatus'
  #-}