{-# 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.AppImageConfigSortKey
-- 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.SageMaker.Types.AppImageConfigSortKey
  ( AppImageConfigSortKey
      ( ..,
        AppImageConfigSortKey_CreationTime,
        AppImageConfigSortKey_LastModifiedTime,
        AppImageConfigSortKey_Name
      ),
  )
where

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

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

pattern AppImageConfigSortKey_CreationTime :: AppImageConfigSortKey
pattern $bAppImageConfigSortKey_CreationTime :: AppImageConfigSortKey
$mAppImageConfigSortKey_CreationTime :: forall {r}.
AppImageConfigSortKey -> ((# #) -> r) -> ((# #) -> r) -> r
AppImageConfigSortKey_CreationTime = AppImageConfigSortKey' "CreationTime"

pattern AppImageConfigSortKey_LastModifiedTime :: AppImageConfigSortKey
pattern $bAppImageConfigSortKey_LastModifiedTime :: AppImageConfigSortKey
$mAppImageConfigSortKey_LastModifiedTime :: forall {r}.
AppImageConfigSortKey -> ((# #) -> r) -> ((# #) -> r) -> r
AppImageConfigSortKey_LastModifiedTime = AppImageConfigSortKey' "LastModifiedTime"

pattern AppImageConfigSortKey_Name :: AppImageConfigSortKey
pattern $bAppImageConfigSortKey_Name :: AppImageConfigSortKey
$mAppImageConfigSortKey_Name :: forall {r}.
AppImageConfigSortKey -> ((# #) -> r) -> ((# #) -> r) -> r
AppImageConfigSortKey_Name = AppImageConfigSortKey' "Name"

{-# COMPLETE
  AppImageConfigSortKey_CreationTime,
  AppImageConfigSortKey_LastModifiedTime,
  AppImageConfigSortKey_Name,
  AppImageConfigSortKey'
  #-}