{-# 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.Shield.Types.ProtectionGroupAggregation
-- 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.Shield.Types.ProtectionGroupAggregation
  ( ProtectionGroupAggregation
      ( ..,
        ProtectionGroupAggregation_MAX,
        ProtectionGroupAggregation_MEAN,
        ProtectionGroupAggregation_SUM
      ),
  )
where

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

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

pattern ProtectionGroupAggregation_MAX :: ProtectionGroupAggregation
pattern $bProtectionGroupAggregation_MAX :: ProtectionGroupAggregation
$mProtectionGroupAggregation_MAX :: forall {r}.
ProtectionGroupAggregation -> ((# #) -> r) -> ((# #) -> r) -> r
ProtectionGroupAggregation_MAX = ProtectionGroupAggregation' "MAX"

pattern ProtectionGroupAggregation_MEAN :: ProtectionGroupAggregation
pattern $bProtectionGroupAggregation_MEAN :: ProtectionGroupAggregation
$mProtectionGroupAggregation_MEAN :: forall {r}.
ProtectionGroupAggregation -> ((# #) -> r) -> ((# #) -> r) -> r
ProtectionGroupAggregation_MEAN = ProtectionGroupAggregation' "MEAN"

pattern ProtectionGroupAggregation_SUM :: ProtectionGroupAggregation
pattern $bProtectionGroupAggregation_SUM :: ProtectionGroupAggregation
$mProtectionGroupAggregation_SUM :: forall {r}.
ProtectionGroupAggregation -> ((# #) -> r) -> ((# #) -> r) -> r
ProtectionGroupAggregation_SUM = ProtectionGroupAggregation' "SUM"

{-# COMPLETE
  ProtectionGroupAggregation_MAX,
  ProtectionGroupAggregation_MEAN,
  ProtectionGroupAggregation_SUM,
  ProtectionGroupAggregation'
  #-}