{-# 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.AWSHealth.Types.EntityStatusCode
-- 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.AWSHealth.Types.EntityStatusCode
  ( EntityStatusCode
      ( ..,
        EntityStatusCode_IMPAIRED,
        EntityStatusCode_UNIMPAIRED,
        EntityStatusCode_UNKNOWN
      ),
  )
where

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

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

pattern EntityStatusCode_IMPAIRED :: EntityStatusCode
pattern $bEntityStatusCode_IMPAIRED :: EntityStatusCode
$mEntityStatusCode_IMPAIRED :: forall r. EntityStatusCode -> (Void# -> r) -> (Void# -> r) -> r
EntityStatusCode_IMPAIRED = EntityStatusCode' "IMPAIRED"

pattern EntityStatusCode_UNIMPAIRED :: EntityStatusCode
pattern $bEntityStatusCode_UNIMPAIRED :: EntityStatusCode
$mEntityStatusCode_UNIMPAIRED :: forall r. EntityStatusCode -> (Void# -> r) -> (Void# -> r) -> r
EntityStatusCode_UNIMPAIRED = EntityStatusCode' "UNIMPAIRED"

pattern EntityStatusCode_UNKNOWN :: EntityStatusCode
pattern $bEntityStatusCode_UNKNOWN :: EntityStatusCode
$mEntityStatusCode_UNKNOWN :: forall r. EntityStatusCode -> (Void# -> r) -> (Void# -> r) -> r
EntityStatusCode_UNKNOWN = EntityStatusCode' "UNKNOWN"

{-# COMPLETE
  EntityStatusCode_IMPAIRED,
  EntityStatusCode_UNIMPAIRED,
  EntityStatusCode_UNKNOWN,
  EntityStatusCode'
  #-}