{-# 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.MacieV2.Types.GroupBy
-- 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.MacieV2.Types.GroupBy
  ( GroupBy
      ( ..,
        GroupBy_ClassificationDetails_jobId,
        GroupBy_ResourcesAffected_s3Bucket_name,
        GroupBy_Severity_description,
        GroupBy_Type
      ),
  )
where

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

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

pattern GroupBy_ClassificationDetails_jobId :: GroupBy
pattern $bGroupBy_ClassificationDetails_jobId :: GroupBy
$mGroupBy_ClassificationDetails_jobId :: forall r. GroupBy -> (Void# -> r) -> (Void# -> r) -> r
GroupBy_ClassificationDetails_jobId = GroupBy' "classificationDetails.jobId"

pattern GroupBy_ResourcesAffected_s3Bucket_name :: GroupBy
pattern $bGroupBy_ResourcesAffected_s3Bucket_name :: GroupBy
$mGroupBy_ResourcesAffected_s3Bucket_name :: forall r. GroupBy -> (Void# -> r) -> (Void# -> r) -> r
GroupBy_ResourcesAffected_s3Bucket_name = GroupBy' "resourcesAffected.s3Bucket.name"

pattern GroupBy_Severity_description :: GroupBy
pattern $bGroupBy_Severity_description :: GroupBy
$mGroupBy_Severity_description :: forall r. GroupBy -> (Void# -> r) -> (Void# -> r) -> r
GroupBy_Severity_description = GroupBy' "severity.description"

pattern GroupBy_Type :: GroupBy
pattern $bGroupBy_Type :: GroupBy
$mGroupBy_Type :: forall r. GroupBy -> (Void# -> r) -> (Void# -> r) -> r
GroupBy_Type = GroupBy' "type"

{-# COMPLETE
  GroupBy_ClassificationDetails_jobId,
  GroupBy_ResourcesAffected_s3Bucket_name,
  GroupBy_Severity_description,
  GroupBy_Type,
  GroupBy'
  #-}