{-# 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-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.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.Prelude as Prelude

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

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

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

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

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

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

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

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

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

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

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

pattern RecommendationCategory_SecurityIssues :: RecommendationCategory
pattern $bRecommendationCategory_SecurityIssues :: RecommendationCategory
$mRecommendationCategory_SecurityIssues :: forall r.
RecommendationCategory -> (Void# -> r) -> (Void# -> 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'
  #-}