{-# 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.ListJobsSortAttributeName
-- 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.ListJobsSortAttributeName
  ( ListJobsSortAttributeName
      ( ..,
        ListJobsSortAttributeName_CreatedAt,
        ListJobsSortAttributeName_JobStatus,
        ListJobsSortAttributeName_JobType,
        ListJobsSortAttributeName_Name
      ),
  )
where

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

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

pattern ListJobsSortAttributeName_CreatedAt :: ListJobsSortAttributeName
pattern $bListJobsSortAttributeName_CreatedAt :: ListJobsSortAttributeName
$mListJobsSortAttributeName_CreatedAt :: forall r.
ListJobsSortAttributeName -> (Void# -> r) -> (Void# -> r) -> r
ListJobsSortAttributeName_CreatedAt = ListJobsSortAttributeName' "createdAt"

pattern ListJobsSortAttributeName_JobStatus :: ListJobsSortAttributeName
pattern $bListJobsSortAttributeName_JobStatus :: ListJobsSortAttributeName
$mListJobsSortAttributeName_JobStatus :: forall r.
ListJobsSortAttributeName -> (Void# -> r) -> (Void# -> r) -> r
ListJobsSortAttributeName_JobStatus = ListJobsSortAttributeName' "jobStatus"

pattern ListJobsSortAttributeName_JobType :: ListJobsSortAttributeName
pattern $bListJobsSortAttributeName_JobType :: ListJobsSortAttributeName
$mListJobsSortAttributeName_JobType :: forall r.
ListJobsSortAttributeName -> (Void# -> r) -> (Void# -> r) -> r
ListJobsSortAttributeName_JobType = ListJobsSortAttributeName' "jobType"

pattern ListJobsSortAttributeName_Name :: ListJobsSortAttributeName
pattern $bListJobsSortAttributeName_Name :: ListJobsSortAttributeName
$mListJobsSortAttributeName_Name :: forall r.
ListJobsSortAttributeName -> (Void# -> r) -> (Void# -> r) -> r
ListJobsSortAttributeName_Name = ListJobsSortAttributeName' "name"

{-# COMPLETE
  ListJobsSortAttributeName_CreatedAt,
  ListJobsSortAttributeName_JobStatus,
  ListJobsSortAttributeName_JobType,
  ListJobsSortAttributeName_Name,
  ListJobsSortAttributeName'
  #-}