{-# 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.QuickSight.Types.SimpleNumericalAggregationFunction
-- 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.QuickSight.Types.SimpleNumericalAggregationFunction
  ( SimpleNumericalAggregationFunction
      ( ..,
        SimpleNumericalAggregationFunction_AVERAGE,
        SimpleNumericalAggregationFunction_COUNT,
        SimpleNumericalAggregationFunction_DISTINCT_COUNT,
        SimpleNumericalAggregationFunction_MAX,
        SimpleNumericalAggregationFunction_MEDIAN,
        SimpleNumericalAggregationFunction_MIN,
        SimpleNumericalAggregationFunction_STDEV,
        SimpleNumericalAggregationFunction_STDEVP,
        SimpleNumericalAggregationFunction_SUM,
        SimpleNumericalAggregationFunction_VAR,
        SimpleNumericalAggregationFunction_VARP
      ),
  )
where

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

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

pattern SimpleNumericalAggregationFunction_AVERAGE :: SimpleNumericalAggregationFunction
pattern $bSimpleNumericalAggregationFunction_AVERAGE :: SimpleNumericalAggregationFunction
$mSimpleNumericalAggregationFunction_AVERAGE :: forall {r}.
SimpleNumericalAggregationFunction
-> ((# #) -> r) -> ((# #) -> r) -> r
SimpleNumericalAggregationFunction_AVERAGE = SimpleNumericalAggregationFunction' "AVERAGE"

pattern SimpleNumericalAggregationFunction_COUNT :: SimpleNumericalAggregationFunction
pattern $bSimpleNumericalAggregationFunction_COUNT :: SimpleNumericalAggregationFunction
$mSimpleNumericalAggregationFunction_COUNT :: forall {r}.
SimpleNumericalAggregationFunction
-> ((# #) -> r) -> ((# #) -> r) -> r
SimpleNumericalAggregationFunction_COUNT = SimpleNumericalAggregationFunction' "COUNT"

pattern SimpleNumericalAggregationFunction_DISTINCT_COUNT :: SimpleNumericalAggregationFunction
pattern $bSimpleNumericalAggregationFunction_DISTINCT_COUNT :: SimpleNumericalAggregationFunction
$mSimpleNumericalAggregationFunction_DISTINCT_COUNT :: forall {r}.
SimpleNumericalAggregationFunction
-> ((# #) -> r) -> ((# #) -> r) -> r
SimpleNumericalAggregationFunction_DISTINCT_COUNT = SimpleNumericalAggregationFunction' "DISTINCT_COUNT"

pattern SimpleNumericalAggregationFunction_MAX :: SimpleNumericalAggregationFunction
pattern $bSimpleNumericalAggregationFunction_MAX :: SimpleNumericalAggregationFunction
$mSimpleNumericalAggregationFunction_MAX :: forall {r}.
SimpleNumericalAggregationFunction
-> ((# #) -> r) -> ((# #) -> r) -> r
SimpleNumericalAggregationFunction_MAX = SimpleNumericalAggregationFunction' "MAX"

pattern SimpleNumericalAggregationFunction_MEDIAN :: SimpleNumericalAggregationFunction
pattern $bSimpleNumericalAggregationFunction_MEDIAN :: SimpleNumericalAggregationFunction
$mSimpleNumericalAggregationFunction_MEDIAN :: forall {r}.
SimpleNumericalAggregationFunction
-> ((# #) -> r) -> ((# #) -> r) -> r
SimpleNumericalAggregationFunction_MEDIAN = SimpleNumericalAggregationFunction' "MEDIAN"

pattern SimpleNumericalAggregationFunction_MIN :: SimpleNumericalAggregationFunction
pattern $bSimpleNumericalAggregationFunction_MIN :: SimpleNumericalAggregationFunction
$mSimpleNumericalAggregationFunction_MIN :: forall {r}.
SimpleNumericalAggregationFunction
-> ((# #) -> r) -> ((# #) -> r) -> r
SimpleNumericalAggregationFunction_MIN = SimpleNumericalAggregationFunction' "MIN"

pattern SimpleNumericalAggregationFunction_STDEV :: SimpleNumericalAggregationFunction
pattern $bSimpleNumericalAggregationFunction_STDEV :: SimpleNumericalAggregationFunction
$mSimpleNumericalAggregationFunction_STDEV :: forall {r}.
SimpleNumericalAggregationFunction
-> ((# #) -> r) -> ((# #) -> r) -> r
SimpleNumericalAggregationFunction_STDEV = SimpleNumericalAggregationFunction' "STDEV"

pattern SimpleNumericalAggregationFunction_STDEVP :: SimpleNumericalAggregationFunction
pattern $bSimpleNumericalAggregationFunction_STDEVP :: SimpleNumericalAggregationFunction
$mSimpleNumericalAggregationFunction_STDEVP :: forall {r}.
SimpleNumericalAggregationFunction
-> ((# #) -> r) -> ((# #) -> r) -> r
SimpleNumericalAggregationFunction_STDEVP = SimpleNumericalAggregationFunction' "STDEVP"

pattern SimpleNumericalAggregationFunction_SUM :: SimpleNumericalAggregationFunction
pattern $bSimpleNumericalAggregationFunction_SUM :: SimpleNumericalAggregationFunction
$mSimpleNumericalAggregationFunction_SUM :: forall {r}.
SimpleNumericalAggregationFunction
-> ((# #) -> r) -> ((# #) -> r) -> r
SimpleNumericalAggregationFunction_SUM = SimpleNumericalAggregationFunction' "SUM"

pattern SimpleNumericalAggregationFunction_VAR :: SimpleNumericalAggregationFunction
pattern $bSimpleNumericalAggregationFunction_VAR :: SimpleNumericalAggregationFunction
$mSimpleNumericalAggregationFunction_VAR :: forall {r}.
SimpleNumericalAggregationFunction
-> ((# #) -> r) -> ((# #) -> r) -> r
SimpleNumericalAggregationFunction_VAR = SimpleNumericalAggregationFunction' "VAR"

pattern SimpleNumericalAggregationFunction_VARP :: SimpleNumericalAggregationFunction
pattern $bSimpleNumericalAggregationFunction_VARP :: SimpleNumericalAggregationFunction
$mSimpleNumericalAggregationFunction_VARP :: forall {r}.
SimpleNumericalAggregationFunction
-> ((# #) -> r) -> ((# #) -> r) -> r
SimpleNumericalAggregationFunction_VARP = SimpleNumericalAggregationFunction' "VARP"

{-# COMPLETE
  SimpleNumericalAggregationFunction_AVERAGE,
  SimpleNumericalAggregationFunction_COUNT,
  SimpleNumericalAggregationFunction_DISTINCT_COUNT,
  SimpleNumericalAggregationFunction_MAX,
  SimpleNumericalAggregationFunction_MEDIAN,
  SimpleNumericalAggregationFunction_MIN,
  SimpleNumericalAggregationFunction_STDEV,
  SimpleNumericalAggregationFunction_STDEVP,
  SimpleNumericalAggregationFunction_SUM,
  SimpleNumericalAggregationFunction_VAR,
  SimpleNumericalAggregationFunction_VARP,
  SimpleNumericalAggregationFunction'
  #-}