{-# 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.ModelPackageSortBy
-- 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.ModelPackageSortBy
  ( ModelPackageSortBy
      ( ..,
        ModelPackageSortBy_CreationTime,
        ModelPackageSortBy_Name
      ),
  )
where

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

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

pattern ModelPackageSortBy_CreationTime :: ModelPackageSortBy
pattern $bModelPackageSortBy_CreationTime :: ModelPackageSortBy
$mModelPackageSortBy_CreationTime :: forall r. ModelPackageSortBy -> (Void# -> r) -> (Void# -> r) -> r
ModelPackageSortBy_CreationTime = ModelPackageSortBy' "CreationTime"

pattern ModelPackageSortBy_Name :: ModelPackageSortBy
pattern $bModelPackageSortBy_Name :: ModelPackageSortBy
$mModelPackageSortBy_Name :: forall r. ModelPackageSortBy -> (Void# -> r) -> (Void# -> r) -> r
ModelPackageSortBy_Name = ModelPackageSortBy' "Name"

{-# COMPLETE
  ModelPackageSortBy_CreationTime,
  ModelPackageSortBy_Name,
  ModelPackageSortBy'
  #-}