{-# 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.MediaConvert.Types.QueueListBy
-- 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.MediaConvert.Types.QueueListBy
  ( QueueListBy
      ( ..,
        QueueListBy_CREATION_DATE,
        QueueListBy_NAME
      ),
  )
where

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

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

pattern QueueListBy_CREATION_DATE :: QueueListBy
pattern $bQueueListBy_CREATION_DATE :: QueueListBy
$mQueueListBy_CREATION_DATE :: forall {r}. QueueListBy -> ((# #) -> r) -> ((# #) -> r) -> r
QueueListBy_CREATION_DATE = QueueListBy' "CREATION_DATE"

pattern QueueListBy_NAME :: QueueListBy
pattern $bQueueListBy_NAME :: QueueListBy
$mQueueListBy_NAME :: forall {r}. QueueListBy -> ((# #) -> r) -> ((# #) -> r) -> r
QueueListBy_NAME = QueueListBy' "NAME"

{-# COMPLETE
  QueueListBy_CREATION_DATE,
  QueueListBy_NAME,
  QueueListBy'
  #-}