{-# 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.CodeGuruReviewer.Types.RecommendationCategory
-- 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.CodeGuruReviewer.Types.RecommendationCategory
  ( RecommendationCategory
      ( ..,
        RecommendationCategory_AWSBestPractices,
        RecommendationCategory_AWSCloudFormationIssues,
        RecommendationCategory_CodeInconsistencies,
        RecommendationCategory_CodeMaintenanceIssues,
        RecommendationCategory_ConcurrencyIssues,
        RecommendationCategory_DuplicateCode,
        RecommendationCategory_InputValidations,
        RecommendationCategory_JavaBestPractices,
        RecommendationCategory_PythonBestPractices,
        RecommendationCategory_ResourceLeaks,
        RecommendationCategory_SecurityIssues
      ),
  )
where

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

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

pattern RecommendationCategory_AWSBestPractices :: RecommendationCategory
pattern $bRecommendationCategory_AWSBestPractices :: RecommendationCategory
$mRecommendationCategory_AWSBestPractices :: forall {r}.
RecommendationCategory -> ((# #) -> r) -> ((# #) -> r) -> r
RecommendationCategory_AWSBestPractices = RecommendationCategory' "AWSBestPractices"

pattern RecommendationCategory_AWSCloudFormationIssues :: RecommendationCategory
pattern $bRecommendationCategory_AWSCloudFormationIssues :: RecommendationCategory
$mRecommendationCategory_AWSCloudFormationIssues :: forall {r}.
RecommendationCategory -> ((# #) -> r) -> ((# #) -> r) -> r
RecommendationCategory_AWSCloudFormationIssues = RecommendationCategory' "AWSCloudFormationIssues"

pattern RecommendationCategory_CodeInconsistencies :: RecommendationCategory
pattern $bRecommendationCategory_CodeInconsistencies :: RecommendationCategory
$mRecommendationCategory_CodeInconsistencies :: forall {r}.
RecommendationCategory -> ((# #) -> r) -> ((# #) -> r) -> r
RecommendationCategory_CodeInconsistencies = RecommendationCategory' "CodeInconsistencies"

pattern RecommendationCategory_CodeMaintenanceIssues :: RecommendationCategory
pattern $bRecommendationCategory_CodeMaintenanceIssues :: RecommendationCategory
$mRecommendationCategory_CodeMaintenanceIssues :: forall {r}.
RecommendationCategory -> ((# #) -> r) -> ((# #) -> r) -> r
RecommendationCategory_CodeMaintenanceIssues = RecommendationCategory' "CodeMaintenanceIssues"

pattern RecommendationCategory_ConcurrencyIssues :: RecommendationCategory
pattern $bRecommendationCategory_ConcurrencyIssues :: RecommendationCategory
$mRecommendationCategory_ConcurrencyIssues :: forall {r}.
RecommendationCategory -> ((# #) -> r) -> ((# #) -> r) -> r
RecommendationCategory_ConcurrencyIssues = RecommendationCategory' "ConcurrencyIssues"

pattern RecommendationCategory_DuplicateCode :: RecommendationCategory
pattern $bRecommendationCategory_DuplicateCode :: RecommendationCategory
$mRecommendationCategory_DuplicateCode :: forall {r}.
RecommendationCategory -> ((# #) -> r) -> ((# #) -> r) -> r
RecommendationCategory_DuplicateCode = RecommendationCategory' "DuplicateCode"

pattern RecommendationCategory_InputValidations :: RecommendationCategory
pattern $bRecommendationCategory_InputValidations :: RecommendationCategory
$mRecommendationCategory_InputValidations :: forall {r}.
RecommendationCategory -> ((# #) -> r) -> ((# #) -> r) -> r
RecommendationCategory_InputValidations = RecommendationCategory' "InputValidations"

pattern RecommendationCategory_JavaBestPractices :: RecommendationCategory
pattern $bRecommendationCategory_JavaBestPractices :: RecommendationCategory
$mRecommendationCategory_JavaBestPractices :: forall {r}.
RecommendationCategory -> ((# #) -> r) -> ((# #) -> r) -> r
RecommendationCategory_JavaBestPractices = RecommendationCategory' "JavaBestPractices"

pattern RecommendationCategory_PythonBestPractices :: RecommendationCategory
pattern $bRecommendationCategory_PythonBestPractices :: RecommendationCategory
$mRecommendationCategory_PythonBestPractices :: forall {r}.
RecommendationCategory -> ((# #) -> r) -> ((# #) -> r) -> r
RecommendationCategory_PythonBestPractices = RecommendationCategory' "PythonBestPractices"

pattern RecommendationCategory_ResourceLeaks :: RecommendationCategory
pattern $bRecommendationCategory_ResourceLeaks :: RecommendationCategory
$mRecommendationCategory_ResourceLeaks :: forall {r}.
RecommendationCategory -> ((# #) -> r) -> ((# #) -> r) -> r
RecommendationCategory_ResourceLeaks = RecommendationCategory' "ResourceLeaks"

pattern RecommendationCategory_SecurityIssues :: RecommendationCategory
pattern $bRecommendationCategory_SecurityIssues :: RecommendationCategory
$mRecommendationCategory_SecurityIssues :: forall {r}.
RecommendationCategory -> ((# #) -> r) -> ((# #) -> r) -> r
RecommendationCategory_SecurityIssues = RecommendationCategory' "SecurityIssues"

{-# COMPLETE
  RecommendationCategory_AWSBestPractices,
  RecommendationCategory_AWSCloudFormationIssues,
  RecommendationCategory_CodeInconsistencies,
  RecommendationCategory_CodeMaintenanceIssues,
  RecommendationCategory_ConcurrencyIssues,
  RecommendationCategory_DuplicateCode,
  RecommendationCategory_InputValidations,
  RecommendationCategory_JavaBestPractices,
  RecommendationCategory_PythonBestPractices,
  RecommendationCategory_ResourceLeaks,
  RecommendationCategory_SecurityIssues,
  RecommendationCategory'
  #-}