{-# 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.CodeDeploy.Types.ApplicationRevisionSortBy
-- 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.CodeDeploy.Types.ApplicationRevisionSortBy
  ( ApplicationRevisionSortBy
      ( ..,
        ApplicationRevisionSortBy_FirstUsedTime,
        ApplicationRevisionSortBy_LastUsedTime,
        ApplicationRevisionSortBy_RegisterTime
      ),
  )
where

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

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

pattern ApplicationRevisionSortBy_FirstUsedTime :: ApplicationRevisionSortBy
pattern $bApplicationRevisionSortBy_FirstUsedTime :: ApplicationRevisionSortBy
$mApplicationRevisionSortBy_FirstUsedTime :: forall r.
ApplicationRevisionSortBy -> (Void# -> r) -> (Void# -> r) -> r
ApplicationRevisionSortBy_FirstUsedTime = ApplicationRevisionSortBy' "firstUsedTime"

pattern ApplicationRevisionSortBy_LastUsedTime :: ApplicationRevisionSortBy
pattern $bApplicationRevisionSortBy_LastUsedTime :: ApplicationRevisionSortBy
$mApplicationRevisionSortBy_LastUsedTime :: forall r.
ApplicationRevisionSortBy -> (Void# -> r) -> (Void# -> r) -> r
ApplicationRevisionSortBy_LastUsedTime = ApplicationRevisionSortBy' "lastUsedTime"

pattern ApplicationRevisionSortBy_RegisterTime :: ApplicationRevisionSortBy
pattern $bApplicationRevisionSortBy_RegisterTime :: ApplicationRevisionSortBy
$mApplicationRevisionSortBy_RegisterTime :: forall r.
ApplicationRevisionSortBy -> (Void# -> r) -> (Void# -> r) -> r
ApplicationRevisionSortBy_RegisterTime = ApplicationRevisionSortBy' "registerTime"

{-# COMPLETE
  ApplicationRevisionSortBy_FirstUsedTime,
  ApplicationRevisionSortBy_LastUsedTime,
  ApplicationRevisionSortBy_RegisterTime,
  ApplicationRevisionSortBy'
  #-}