{-# 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.Inspector2.Types.AggregationFindingType
-- 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.Inspector2.Types.AggregationFindingType
  ( AggregationFindingType
      ( ..,
        AggregationFindingType_NETWORK_REACHABILITY,
        AggregationFindingType_PACKAGE_VULNERABILITY
      ),
  )
where

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

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

pattern AggregationFindingType_NETWORK_REACHABILITY :: AggregationFindingType
pattern $bAggregationFindingType_NETWORK_REACHABILITY :: AggregationFindingType
$mAggregationFindingType_NETWORK_REACHABILITY :: forall {r}.
AggregationFindingType -> ((# #) -> r) -> ((# #) -> r) -> r
AggregationFindingType_NETWORK_REACHABILITY = AggregationFindingType' "NETWORK_REACHABILITY"

pattern AggregationFindingType_PACKAGE_VULNERABILITY :: AggregationFindingType
pattern $bAggregationFindingType_PACKAGE_VULNERABILITY :: AggregationFindingType
$mAggregationFindingType_PACKAGE_VULNERABILITY :: forall {r}.
AggregationFindingType -> ((# #) -> r) -> ((# #) -> r) -> r
AggregationFindingType_PACKAGE_VULNERABILITY = AggregationFindingType' "PACKAGE_VULNERABILITY"

{-# COMPLETE
  AggregationFindingType_NETWORK_REACHABILITY,
  AggregationFindingType_PACKAGE_VULNERABILITY,
  AggregationFindingType'
  #-}