{-# 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.AccountSortBy
-- 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.AccountSortBy
  ( AccountSortBy
      ( ..,
        AccountSortBy_ALL,
        AccountSortBy_CRITICAL,
        AccountSortBy_HIGH
      ),
  )
where

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

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

pattern AccountSortBy_ALL :: AccountSortBy
pattern $bAccountSortBy_ALL :: AccountSortBy
$mAccountSortBy_ALL :: forall {r}. AccountSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
AccountSortBy_ALL = AccountSortBy' "ALL"

pattern AccountSortBy_CRITICAL :: AccountSortBy
pattern $bAccountSortBy_CRITICAL :: AccountSortBy
$mAccountSortBy_CRITICAL :: forall {r}. AccountSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
AccountSortBy_CRITICAL = AccountSortBy' "CRITICAL"

pattern AccountSortBy_HIGH :: AccountSortBy
pattern $bAccountSortBy_HIGH :: AccountSortBy
$mAccountSortBy_HIGH :: forall {r}. AccountSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
AccountSortBy_HIGH = AccountSortBy' "HIGH"

{-# COMPLETE
  AccountSortBy_ALL,
  AccountSortBy_CRITICAL,
  AccountSortBy_HIGH,
  AccountSortBy'
  #-}