{-# 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.ResilienceHub.Types.RenderRecommendationType
-- 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.ResilienceHub.Types.RenderRecommendationType
  ( RenderRecommendationType
      ( ..,
        RenderRecommendationType_Alarm,
        RenderRecommendationType_Sop,
        RenderRecommendationType_Test
      ),
  )
where

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

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

pattern RenderRecommendationType_Alarm :: RenderRecommendationType
pattern $bRenderRecommendationType_Alarm :: RenderRecommendationType
$mRenderRecommendationType_Alarm :: forall {r}.
RenderRecommendationType -> ((# #) -> r) -> ((# #) -> r) -> r
RenderRecommendationType_Alarm = RenderRecommendationType' "Alarm"

pattern RenderRecommendationType_Sop :: RenderRecommendationType
pattern $bRenderRecommendationType_Sop :: RenderRecommendationType
$mRenderRecommendationType_Sop :: forall {r}.
RenderRecommendationType -> ((# #) -> r) -> ((# #) -> r) -> r
RenderRecommendationType_Sop = RenderRecommendationType' "Sop"

pattern RenderRecommendationType_Test :: RenderRecommendationType
pattern $bRenderRecommendationType_Test :: RenderRecommendationType
$mRenderRecommendationType_Test :: forall {r}.
RenderRecommendationType -> ((# #) -> r) -> ((# #) -> r) -> r
RenderRecommendationType_Test = RenderRecommendationType' "Test"

{-# COMPLETE
  RenderRecommendationType_Alarm,
  RenderRecommendationType_Sop,
  RenderRecommendationType_Test,
  RenderRecommendationType'
  #-}