{-# 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.NotebookInstanceLifecycleConfigSortKey
-- 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.NotebookInstanceLifecycleConfigSortKey
  ( NotebookInstanceLifecycleConfigSortKey
      ( ..,
        NotebookInstanceLifecycleConfigSortKey_CreationTime,
        NotebookInstanceLifecycleConfigSortKey_LastModifiedTime,
        NotebookInstanceLifecycleConfigSortKey_Name
      ),
  )
where

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

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

pattern NotebookInstanceLifecycleConfigSortKey_CreationTime :: NotebookInstanceLifecycleConfigSortKey
pattern $bNotebookInstanceLifecycleConfigSortKey_CreationTime :: NotebookInstanceLifecycleConfigSortKey
$mNotebookInstanceLifecycleConfigSortKey_CreationTime :: forall {r}.
NotebookInstanceLifecycleConfigSortKey
-> ((# #) -> r) -> ((# #) -> r) -> r
NotebookInstanceLifecycleConfigSortKey_CreationTime = NotebookInstanceLifecycleConfigSortKey' "CreationTime"

pattern NotebookInstanceLifecycleConfigSortKey_LastModifiedTime :: NotebookInstanceLifecycleConfigSortKey
pattern $bNotebookInstanceLifecycleConfigSortKey_LastModifiedTime :: NotebookInstanceLifecycleConfigSortKey
$mNotebookInstanceLifecycleConfigSortKey_LastModifiedTime :: forall {r}.
NotebookInstanceLifecycleConfigSortKey
-> ((# #) -> r) -> ((# #) -> r) -> r
NotebookInstanceLifecycleConfigSortKey_LastModifiedTime = NotebookInstanceLifecycleConfigSortKey' "LastModifiedTime"

pattern NotebookInstanceLifecycleConfigSortKey_Name :: NotebookInstanceLifecycleConfigSortKey
pattern $bNotebookInstanceLifecycleConfigSortKey_Name :: NotebookInstanceLifecycleConfigSortKey
$mNotebookInstanceLifecycleConfigSortKey_Name :: forall {r}.
NotebookInstanceLifecycleConfigSortKey
-> ((# #) -> r) -> ((# #) -> r) -> r
NotebookInstanceLifecycleConfigSortKey_Name = NotebookInstanceLifecycleConfigSortKey' "Name"

{-# COMPLETE
  NotebookInstanceLifecycleConfigSortKey_CreationTime,
  NotebookInstanceLifecycleConfigSortKey_LastModifiedTime,
  NotebookInstanceLifecycleConfigSortKey_Name,
  NotebookInstanceLifecycleConfigSortKey'
  #-}