{-# 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.SearchResourcesSortAttributeName
-- 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.SearchResourcesSortAttributeName
  ( SearchResourcesSortAttributeName
      ( ..,
        SearchResourcesSortAttributeName_ACCOUNT_ID,
        SearchResourcesSortAttributeName_RESOURCE_NAME,
        SearchResourcesSortAttributeName_S3_CLASSIFIABLE_OBJECT_COUNT,
        SearchResourcesSortAttributeName_S3_CLASSIFIABLE_SIZE_IN_BYTES
      ),
  )
where

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

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

pattern SearchResourcesSortAttributeName_ACCOUNT_ID :: SearchResourcesSortAttributeName
pattern $bSearchResourcesSortAttributeName_ACCOUNT_ID :: SearchResourcesSortAttributeName
$mSearchResourcesSortAttributeName_ACCOUNT_ID :: forall r.
SearchResourcesSortAttributeName
-> (Void# -> r) -> (Void# -> r) -> r
SearchResourcesSortAttributeName_ACCOUNT_ID = SearchResourcesSortAttributeName' "ACCOUNT_ID"

pattern SearchResourcesSortAttributeName_RESOURCE_NAME :: SearchResourcesSortAttributeName
pattern $bSearchResourcesSortAttributeName_RESOURCE_NAME :: SearchResourcesSortAttributeName
$mSearchResourcesSortAttributeName_RESOURCE_NAME :: forall r.
SearchResourcesSortAttributeName
-> (Void# -> r) -> (Void# -> r) -> r
SearchResourcesSortAttributeName_RESOURCE_NAME = SearchResourcesSortAttributeName' "RESOURCE_NAME"

pattern SearchResourcesSortAttributeName_S3_CLASSIFIABLE_OBJECT_COUNT :: SearchResourcesSortAttributeName
pattern $bSearchResourcesSortAttributeName_S3_CLASSIFIABLE_OBJECT_COUNT :: SearchResourcesSortAttributeName
$mSearchResourcesSortAttributeName_S3_CLASSIFIABLE_OBJECT_COUNT :: forall r.
SearchResourcesSortAttributeName
-> (Void# -> r) -> (Void# -> r) -> r
SearchResourcesSortAttributeName_S3_CLASSIFIABLE_OBJECT_COUNT = SearchResourcesSortAttributeName' "S3_CLASSIFIABLE_OBJECT_COUNT"

pattern SearchResourcesSortAttributeName_S3_CLASSIFIABLE_SIZE_IN_BYTES :: SearchResourcesSortAttributeName
pattern $bSearchResourcesSortAttributeName_S3_CLASSIFIABLE_SIZE_IN_BYTES :: SearchResourcesSortAttributeName
$mSearchResourcesSortAttributeName_S3_CLASSIFIABLE_SIZE_IN_BYTES :: forall r.
SearchResourcesSortAttributeName
-> (Void# -> r) -> (Void# -> r) -> r
SearchResourcesSortAttributeName_S3_CLASSIFIABLE_SIZE_IN_BYTES = SearchResourcesSortAttributeName' "S3_CLASSIFIABLE_SIZE_IN_BYTES"

{-# COMPLETE
  SearchResourcesSortAttributeName_ACCOUNT_ID,
  SearchResourcesSortAttributeName_RESOURCE_NAME,
  SearchResourcesSortAttributeName_S3_CLASSIFIABLE_OBJECT_COUNT,
  SearchResourcesSortAttributeName_S3_CLASSIFIABLE_SIZE_IN_BYTES,
  SearchResourcesSortAttributeName'
  #-}