{-# 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.SageMaker.Types.ModelPackageGroupSortBy
-- 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.SageMaker.Types.ModelPackageGroupSortBy
  ( ModelPackageGroupSortBy
      ( ..,
        ModelPackageGroupSortBy_CreationTime,
        ModelPackageGroupSortBy_Name
      ),
  )
where

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

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

pattern ModelPackageGroupSortBy_CreationTime :: ModelPackageGroupSortBy
pattern $bModelPackageGroupSortBy_CreationTime :: ModelPackageGroupSortBy
$mModelPackageGroupSortBy_CreationTime :: forall r.
ModelPackageGroupSortBy -> (Void# -> r) -> (Void# -> r) -> r
ModelPackageGroupSortBy_CreationTime = ModelPackageGroupSortBy' "CreationTime"

pattern ModelPackageGroupSortBy_Name :: ModelPackageGroupSortBy
pattern $bModelPackageGroupSortBy_Name :: ModelPackageGroupSortBy
$mModelPackageGroupSortBy_Name :: forall r.
ModelPackageGroupSortBy -> (Void# -> r) -> (Void# -> r) -> r
ModelPackageGroupSortBy_Name = ModelPackageGroupSortBy' "Name"

{-# COMPLETE
  ModelPackageGroupSortBy_CreationTime,
  ModelPackageGroupSortBy_Name,
  ModelPackageGroupSortBy'
  #-}