{-# 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.JobTemplateListBy
-- 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.MediaConvert.Types.JobTemplateListBy
  ( JobTemplateListBy
      ( ..,
        JobTemplateListBy_CREATION_DATE,
        JobTemplateListBy_NAME,
        JobTemplateListBy_SYSTEM
      ),
  )
where

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

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

pattern JobTemplateListBy_CREATION_DATE :: JobTemplateListBy
pattern $bJobTemplateListBy_CREATION_DATE :: JobTemplateListBy
$mJobTemplateListBy_CREATION_DATE :: forall r. JobTemplateListBy -> (Void# -> r) -> (Void# -> r) -> r
JobTemplateListBy_CREATION_DATE = JobTemplateListBy' "CREATION_DATE"

pattern JobTemplateListBy_NAME :: JobTemplateListBy
pattern $bJobTemplateListBy_NAME :: JobTemplateListBy
$mJobTemplateListBy_NAME :: forall r. JobTemplateListBy -> (Void# -> r) -> (Void# -> r) -> r
JobTemplateListBy_NAME = JobTemplateListBy' "NAME"

pattern JobTemplateListBy_SYSTEM :: JobTemplateListBy
pattern $bJobTemplateListBy_SYSTEM :: JobTemplateListBy
$mJobTemplateListBy_SYSTEM :: forall r. JobTemplateListBy -> (Void# -> r) -> (Void# -> r) -> r
JobTemplateListBy_SYSTEM = JobTemplateListBy' "SYSTEM"

{-# COMPLETE
  JobTemplateListBy_CREATION_DATE,
  JobTemplateListBy_NAME,
  JobTemplateListBy_SYSTEM,
  JobTemplateListBy'
  #-}