{-# 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.Panorama.Types.ListDevicesSortBy
-- 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.Panorama.Types.ListDevicesSortBy
  ( ListDevicesSortBy
      ( ..,
        ListDevicesSortBy_CREATED_TIME,
        ListDevicesSortBy_DEVICE_AGGREGATED_STATUS,
        ListDevicesSortBy_DEVICE_ID,
        ListDevicesSortBy_NAME
      ),
  )
where

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

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

pattern ListDevicesSortBy_CREATED_TIME :: ListDevicesSortBy
pattern $bListDevicesSortBy_CREATED_TIME :: ListDevicesSortBy
$mListDevicesSortBy_CREATED_TIME :: forall {r}. ListDevicesSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
ListDevicesSortBy_CREATED_TIME = ListDevicesSortBy' "CREATED_TIME"

pattern ListDevicesSortBy_DEVICE_AGGREGATED_STATUS :: ListDevicesSortBy
pattern $bListDevicesSortBy_DEVICE_AGGREGATED_STATUS :: ListDevicesSortBy
$mListDevicesSortBy_DEVICE_AGGREGATED_STATUS :: forall {r}. ListDevicesSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
ListDevicesSortBy_DEVICE_AGGREGATED_STATUS = ListDevicesSortBy' "DEVICE_AGGREGATED_STATUS"

pattern ListDevicesSortBy_DEVICE_ID :: ListDevicesSortBy
pattern $bListDevicesSortBy_DEVICE_ID :: ListDevicesSortBy
$mListDevicesSortBy_DEVICE_ID :: forall {r}. ListDevicesSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
ListDevicesSortBy_DEVICE_ID = ListDevicesSortBy' "DEVICE_ID"

pattern ListDevicesSortBy_NAME :: ListDevicesSortBy
pattern $bListDevicesSortBy_NAME :: ListDevicesSortBy
$mListDevicesSortBy_NAME :: forall {r}. ListDevicesSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
ListDevicesSortBy_NAME = ListDevicesSortBy' "NAME"

{-# COMPLETE
  ListDevicesSortBy_CREATED_TIME,
  ListDevicesSortBy_DEVICE_AGGREGATED_STATUS,
  ListDevicesSortBy_DEVICE_ID,
  ListDevicesSortBy_NAME,
  ListDevicesSortBy'
  #-}