{-# 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.AppSortKey
-- 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.AppSortKey
  ( AppSortKey
      ( ..,
        AppSortKey_CreationTime
      ),
  )
where

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

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

pattern AppSortKey_CreationTime :: AppSortKey
pattern $bAppSortKey_CreationTime :: AppSortKey
$mAppSortKey_CreationTime :: forall r. AppSortKey -> (Void# -> r) -> (Void# -> r) -> r
AppSortKey_CreationTime = AppSortKey' "CreationTime"

{-# COMPLETE
  AppSortKey_CreationTime,
  AppSortKey'
  #-}