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

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

-- | The property to use to filter the results. Valid values are:
newtype ListJobsFilterKey = ListJobsFilterKey'
  { ListJobsFilterKey -> Text
fromListJobsFilterKey ::
      Core.Text
  }
  deriving stock
    ( Int -> ListJobsFilterKey -> ShowS
[ListJobsFilterKey] -> ShowS
ListJobsFilterKey -> String
(Int -> ListJobsFilterKey -> ShowS)
-> (ListJobsFilterKey -> String)
-> ([ListJobsFilterKey] -> ShowS)
-> Show ListJobsFilterKey
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]
(Int -> ReadS ListJobsFilterKey)
-> ReadS [ListJobsFilterKey]
-> ReadPrec ListJobsFilterKey
-> ReadPrec [ListJobsFilterKey]
-> Read 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
(ListJobsFilterKey -> ListJobsFilterKey -> Bool)
-> (ListJobsFilterKey -> ListJobsFilterKey -> Bool)
-> Eq ListJobsFilterKey
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
Eq ListJobsFilterKey
-> (ListJobsFilterKey -> ListJobsFilterKey -> Ordering)
-> (ListJobsFilterKey -> ListJobsFilterKey -> Bool)
-> (ListJobsFilterKey -> ListJobsFilterKey -> Bool)
-> (ListJobsFilterKey -> ListJobsFilterKey -> Bool)
-> (ListJobsFilterKey -> ListJobsFilterKey -> Bool)
-> (ListJobsFilterKey -> ListJobsFilterKey -> ListJobsFilterKey)
-> (ListJobsFilterKey -> ListJobsFilterKey -> ListJobsFilterKey)
-> Ord 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
$cp1Ord :: Eq ListJobsFilterKey
Prelude.Ord,
      (forall x. ListJobsFilterKey -> Rep ListJobsFilterKey x)
-> (forall x. Rep ListJobsFilterKey x -> ListJobsFilterKey)
-> Generic ListJobsFilterKey
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
    ( Int -> ListJobsFilterKey -> Int
ListJobsFilterKey -> Int
(Int -> ListJobsFilterKey -> Int)
-> (ListJobsFilterKey -> Int) -> Hashable ListJobsFilterKey
forall 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 -> ()
(ListJobsFilterKey -> ()) -> NFData ListJobsFilterKey
forall a. (a -> ()) -> NFData a
rnf :: ListJobsFilterKey -> ()
$crnf :: ListJobsFilterKey -> ()
Prelude.NFData,
      Text -> Either String ListJobsFilterKey
(Text -> Either String ListJobsFilterKey)
-> FromText ListJobsFilterKey
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ListJobsFilterKey
$cfromText :: Text -> Either String ListJobsFilterKey
Core.FromText,
      ListJobsFilterKey -> Text
(ListJobsFilterKey -> Text) -> ToText ListJobsFilterKey
forall a. (a -> Text) -> ToText a
toText :: ListJobsFilterKey -> Text
$ctoText :: ListJobsFilterKey -> Text
Core.ToText,
      ListJobsFilterKey -> ByteString
(ListJobsFilterKey -> ByteString) -> ToByteString ListJobsFilterKey
forall a. (a -> ByteString) -> ToByteString a
toBS :: ListJobsFilterKey -> ByteString
$ctoBS :: ListJobsFilterKey -> ByteString
Core.ToByteString,
      ListJobsFilterKey -> ByteStringBuilder
(ListJobsFilterKey -> ByteStringBuilder) -> ToLog ListJobsFilterKey
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ListJobsFilterKey -> ByteStringBuilder
$cbuild :: ListJobsFilterKey -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ListJobsFilterKey -> [Header]
(HeaderName -> ListJobsFilterKey -> [Header])
-> ToHeader ListJobsFilterKey
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ListJobsFilterKey -> [Header]
$ctoHeader :: HeaderName -> ListJobsFilterKey -> [Header]
Core.ToHeader,
      ListJobsFilterKey -> QueryString
(ListJobsFilterKey -> QueryString) -> ToQuery ListJobsFilterKey
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ListJobsFilterKey -> QueryString
$ctoQuery :: ListJobsFilterKey -> QueryString
Core.ToQuery,
      Value -> Parser [ListJobsFilterKey]
Value -> Parser ListJobsFilterKey
(Value -> Parser ListJobsFilterKey)
-> (Value -> Parser [ListJobsFilterKey])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ListJobsFilterKey]
FromJSONKeyFunction ListJobsFilterKey
FromJSONKeyFunction ListJobsFilterKey
-> FromJSONKeyFunction [ListJobsFilterKey]
-> FromJSONKey ListJobsFilterKey
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ListJobsFilterKey]
$cfromJSONKeyList :: FromJSONKeyFunction [ListJobsFilterKey]
fromJSONKey :: FromJSONKeyFunction ListJobsFilterKey
$cfromJSONKey :: FromJSONKeyFunction ListJobsFilterKey
Core.FromJSONKey,
      [ListJobsFilterKey] -> Encoding
[ListJobsFilterKey] -> Value
ListJobsFilterKey -> Encoding
ListJobsFilterKey -> Value
(ListJobsFilterKey -> Value)
-> (ListJobsFilterKey -> Encoding)
-> ([ListJobsFilterKey] -> Value)
-> ([ListJobsFilterKey] -> Encoding)
-> ToJSON ListJobsFilterKey
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
Core.ToJSON,
      ToJSONKeyFunction [ListJobsFilterKey]
ToJSONKeyFunction ListJobsFilterKey
ToJSONKeyFunction ListJobsFilterKey
-> ToJSONKeyFunction [ListJobsFilterKey]
-> ToJSONKey ListJobsFilterKey
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ListJobsFilterKey]
$ctoJSONKeyList :: ToJSONKeyFunction [ListJobsFilterKey]
toJSONKey :: ToJSONKeyFunction ListJobsFilterKey
$ctoJSONKey :: ToJSONKeyFunction ListJobsFilterKey
Core.ToJSONKey,
      [Node] -> Either String ListJobsFilterKey
([Node] -> Either String ListJobsFilterKey)
-> FromXML ListJobsFilterKey
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ListJobsFilterKey
$cparseXML :: [Node] -> Either String ListJobsFilterKey
Core.FromXML,
      ListJobsFilterKey -> XML
(ListJobsFilterKey -> XML) -> ToXML ListJobsFilterKey
forall a. (a -> XML) -> ToXML a
toXML :: ListJobsFilterKey -> XML
$ctoXML :: ListJobsFilterKey -> XML
Core.ToXML
    )

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

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

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

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

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