{-# 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.CodeArtifact.Types.PackageVersionSortType
-- 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.CodeArtifact.Types.PackageVersionSortType
  ( PackageVersionSortType
      ( ..,
        PackageVersionSortType_PUBLISHED_TIME
      ),
  )
where

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

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

pattern PackageVersionSortType_PUBLISHED_TIME :: PackageVersionSortType
pattern $bPackageVersionSortType_PUBLISHED_TIME :: PackageVersionSortType
$mPackageVersionSortType_PUBLISHED_TIME :: forall {r}.
PackageVersionSortType -> ((# #) -> r) -> ((# #) -> r) -> r
PackageVersionSortType_PUBLISHED_TIME = PackageVersionSortType' "PUBLISHED_TIME"

{-# COMPLETE
  PackageVersionSortType_PUBLISHED_TIME,
  PackageVersionSortType'
  #-}