{-# 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.ComputeOptimizer.Types.LambdaFunctionRecommendationFilterName
-- 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.ComputeOptimizer.Types.LambdaFunctionRecommendationFilterName
  ( LambdaFunctionRecommendationFilterName
      ( ..,
        LambdaFunctionRecommendationFilterName_Finding,
        LambdaFunctionRecommendationFilterName_FindingReasonCode
      ),
  )
where

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

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

pattern LambdaFunctionRecommendationFilterName_Finding :: LambdaFunctionRecommendationFilterName
pattern $bLambdaFunctionRecommendationFilterName_Finding :: LambdaFunctionRecommendationFilterName
$mLambdaFunctionRecommendationFilterName_Finding :: forall {r}.
LambdaFunctionRecommendationFilterName
-> ((# #) -> r) -> ((# #) -> r) -> r
LambdaFunctionRecommendationFilterName_Finding = LambdaFunctionRecommendationFilterName' "Finding"

pattern LambdaFunctionRecommendationFilterName_FindingReasonCode :: LambdaFunctionRecommendationFilterName
pattern $bLambdaFunctionRecommendationFilterName_FindingReasonCode :: LambdaFunctionRecommendationFilterName
$mLambdaFunctionRecommendationFilterName_FindingReasonCode :: forall {r}.
LambdaFunctionRecommendationFilterName
-> ((# #) -> r) -> ((# #) -> r) -> r
LambdaFunctionRecommendationFilterName_FindingReasonCode = LambdaFunctionRecommendationFilterName' "FindingReasonCode"

{-# COMPLETE
  LambdaFunctionRecommendationFilterName_Finding,
  LambdaFunctionRecommendationFilterName_FindingReasonCode,
  LambdaFunctionRecommendationFilterName'
  #-}