{-# 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.LambdaFunctionMemoryMetricStatistic
-- 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.ComputeOptimizer.Types.LambdaFunctionMemoryMetricStatistic
  ( LambdaFunctionMemoryMetricStatistic
      ( ..,
        LambdaFunctionMemoryMetricStatistic_Expected,
        LambdaFunctionMemoryMetricStatistic_LowerBound,
        LambdaFunctionMemoryMetricStatistic_UpperBound
      ),
  )
where

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

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

pattern LambdaFunctionMemoryMetricStatistic_Expected :: LambdaFunctionMemoryMetricStatistic
pattern $bLambdaFunctionMemoryMetricStatistic_Expected :: LambdaFunctionMemoryMetricStatistic
$mLambdaFunctionMemoryMetricStatistic_Expected :: forall r.
LambdaFunctionMemoryMetricStatistic
-> (Void# -> r) -> (Void# -> r) -> r
LambdaFunctionMemoryMetricStatistic_Expected = LambdaFunctionMemoryMetricStatistic' "Expected"

pattern LambdaFunctionMemoryMetricStatistic_LowerBound :: LambdaFunctionMemoryMetricStatistic
pattern $bLambdaFunctionMemoryMetricStatistic_LowerBound :: LambdaFunctionMemoryMetricStatistic
$mLambdaFunctionMemoryMetricStatistic_LowerBound :: forall r.
LambdaFunctionMemoryMetricStatistic
-> (Void# -> r) -> (Void# -> r) -> r
LambdaFunctionMemoryMetricStatistic_LowerBound = LambdaFunctionMemoryMetricStatistic' "LowerBound"

pattern LambdaFunctionMemoryMetricStatistic_UpperBound :: LambdaFunctionMemoryMetricStatistic
pattern $bLambdaFunctionMemoryMetricStatistic_UpperBound :: LambdaFunctionMemoryMetricStatistic
$mLambdaFunctionMemoryMetricStatistic_UpperBound :: forall r.
LambdaFunctionMemoryMetricStatistic
-> (Void# -> r) -> (Void# -> r) -> r
LambdaFunctionMemoryMetricStatistic_UpperBound = LambdaFunctionMemoryMetricStatistic' "UpperBound"

{-# COMPLETE
  LambdaFunctionMemoryMetricStatistic_Expected,
  LambdaFunctionMemoryMetricStatistic_LowerBound,
  LambdaFunctionMemoryMetricStatistic_UpperBound,
  LambdaFunctionMemoryMetricStatistic'
  #-}