{-# 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.ListJobsFilterKey
-- 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.MacieV2.Types.ListJobsFilterKey
  ( ListJobsFilterKey
      ( ..,
        ListJobsFilterKey_CreatedAt,
        ListJobsFilterKey_JobStatus,
        ListJobsFilterKey_JobType,
        ListJobsFilterKey_Name
      ),
  )
where

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

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

pattern ListJobsFilterKey_CreatedAt :: ListJobsFilterKey
pattern $bListJobsFilterKey_CreatedAt :: ListJobsFilterKey
$mListJobsFilterKey_CreatedAt :: forall {r}. ListJobsFilterKey -> ((# #) -> r) -> ((# #) -> r) -> r
ListJobsFilterKey_CreatedAt = ListJobsFilterKey' "createdAt"

pattern ListJobsFilterKey_JobStatus :: ListJobsFilterKey
pattern $bListJobsFilterKey_JobStatus :: ListJobsFilterKey
$mListJobsFilterKey_JobStatus :: forall {r}. ListJobsFilterKey -> ((# #) -> r) -> ((# #) -> r) -> r
ListJobsFilterKey_JobStatus = ListJobsFilterKey' "jobStatus"

pattern ListJobsFilterKey_JobType :: ListJobsFilterKey
pattern $bListJobsFilterKey_JobType :: ListJobsFilterKey
$mListJobsFilterKey_JobType :: forall {r}. ListJobsFilterKey -> ((# #) -> r) -> ((# #) -> r) -> r
ListJobsFilterKey_JobType = ListJobsFilterKey' "jobType"

pattern ListJobsFilterKey_Name :: ListJobsFilterKey
pattern $bListJobsFilterKey_Name :: ListJobsFilterKey
$mListJobsFilterKey_Name :: forall {r}. ListJobsFilterKey -> ((# #) -> r) -> ((# #) -> r) -> r
ListJobsFilterKey_Name = ListJobsFilterKey' "name"

{-# COMPLETE
  ListJobsFilterKey_CreatedAt,
  ListJobsFilterKey_JobStatus,
  ListJobsFilterKey_JobType,
  ListJobsFilterKey_Name,
  ListJobsFilterKey'
  #-}