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

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

newtype NotebookInstanceLifecycleConfigSortKey = NotebookInstanceLifecycleConfigSortKey'
  { NotebookInstanceLifecycleConfigSortKey -> Text
fromNotebookInstanceLifecycleConfigSortKey ::
      Core.Text
  }
  deriving stock
    ( Int -> NotebookInstanceLifecycleConfigSortKey -> ShowS
[NotebookInstanceLifecycleConfigSortKey] -> ShowS
NotebookInstanceLifecycleConfigSortKey -> String
(Int -> NotebookInstanceLifecycleConfigSortKey -> ShowS)
-> (NotebookInstanceLifecycleConfigSortKey -> String)
-> ([NotebookInstanceLifecycleConfigSortKey] -> ShowS)
-> Show NotebookInstanceLifecycleConfigSortKey
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]
(Int -> ReadS NotebookInstanceLifecycleConfigSortKey)
-> ReadS [NotebookInstanceLifecycleConfigSortKey]
-> ReadPrec NotebookInstanceLifecycleConfigSortKey
-> ReadPrec [NotebookInstanceLifecycleConfigSortKey]
-> Read 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
(NotebookInstanceLifecycleConfigSortKey
 -> NotebookInstanceLifecycleConfigSortKey -> Bool)
-> (NotebookInstanceLifecycleConfigSortKey
    -> NotebookInstanceLifecycleConfigSortKey -> Bool)
-> Eq NotebookInstanceLifecycleConfigSortKey
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
Eq NotebookInstanceLifecycleConfigSortKey
-> (NotebookInstanceLifecycleConfigSortKey
    -> NotebookInstanceLifecycleConfigSortKey -> Ordering)
-> (NotebookInstanceLifecycleConfigSortKey
    -> NotebookInstanceLifecycleConfigSortKey -> Bool)
-> (NotebookInstanceLifecycleConfigSortKey
    -> NotebookInstanceLifecycleConfigSortKey -> Bool)
-> (NotebookInstanceLifecycleConfigSortKey
    -> NotebookInstanceLifecycleConfigSortKey -> Bool)
-> (NotebookInstanceLifecycleConfigSortKey
    -> NotebookInstanceLifecycleConfigSortKey -> Bool)
-> (NotebookInstanceLifecycleConfigSortKey
    -> NotebookInstanceLifecycleConfigSortKey
    -> NotebookInstanceLifecycleConfigSortKey)
-> (NotebookInstanceLifecycleConfigSortKey
    -> NotebookInstanceLifecycleConfigSortKey
    -> NotebookInstanceLifecycleConfigSortKey)
-> Ord 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
$cp1Ord :: Eq NotebookInstanceLifecycleConfigSortKey
Prelude.Ord,
      (forall x.
 NotebookInstanceLifecycleConfigSortKey
 -> Rep NotebookInstanceLifecycleConfigSortKey x)
-> (forall x.
    Rep NotebookInstanceLifecycleConfigSortKey x
    -> NotebookInstanceLifecycleConfigSortKey)
-> Generic NotebookInstanceLifecycleConfigSortKey
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
    ( Int -> NotebookInstanceLifecycleConfigSortKey -> Int
NotebookInstanceLifecycleConfigSortKey -> Int
(Int -> NotebookInstanceLifecycleConfigSortKey -> Int)
-> (NotebookInstanceLifecycleConfigSortKey -> Int)
-> Hashable NotebookInstanceLifecycleConfigSortKey
forall 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 -> ()
(NotebookInstanceLifecycleConfigSortKey -> ())
-> NFData NotebookInstanceLifecycleConfigSortKey
forall a. (a -> ()) -> NFData a
rnf :: NotebookInstanceLifecycleConfigSortKey -> ()
$crnf :: NotebookInstanceLifecycleConfigSortKey -> ()
Prelude.NFData,
      Text -> Either String NotebookInstanceLifecycleConfigSortKey
(Text -> Either String NotebookInstanceLifecycleConfigSortKey)
-> FromText NotebookInstanceLifecycleConfigSortKey
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String NotebookInstanceLifecycleConfigSortKey
$cfromText :: Text -> Either String NotebookInstanceLifecycleConfigSortKey
Core.FromText,
      NotebookInstanceLifecycleConfigSortKey -> Text
(NotebookInstanceLifecycleConfigSortKey -> Text)
-> ToText NotebookInstanceLifecycleConfigSortKey
forall a. (a -> Text) -> ToText a
toText :: NotebookInstanceLifecycleConfigSortKey -> Text
$ctoText :: NotebookInstanceLifecycleConfigSortKey -> Text
Core.ToText,
      NotebookInstanceLifecycleConfigSortKey -> ByteString
(NotebookInstanceLifecycleConfigSortKey -> ByteString)
-> ToByteString NotebookInstanceLifecycleConfigSortKey
forall a. (a -> ByteString) -> ToByteString a
toBS :: NotebookInstanceLifecycleConfigSortKey -> ByteString
$ctoBS :: NotebookInstanceLifecycleConfigSortKey -> ByteString
Core.ToByteString,
      NotebookInstanceLifecycleConfigSortKey -> ByteStringBuilder
(NotebookInstanceLifecycleConfigSortKey -> ByteStringBuilder)
-> ToLog NotebookInstanceLifecycleConfigSortKey
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: NotebookInstanceLifecycleConfigSortKey -> ByteStringBuilder
$cbuild :: NotebookInstanceLifecycleConfigSortKey -> ByteStringBuilder
Core.ToLog,
      HeaderName -> NotebookInstanceLifecycleConfigSortKey -> [Header]
(HeaderName -> NotebookInstanceLifecycleConfigSortKey -> [Header])
-> ToHeader NotebookInstanceLifecycleConfigSortKey
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> NotebookInstanceLifecycleConfigSortKey -> [Header]
$ctoHeader :: HeaderName -> NotebookInstanceLifecycleConfigSortKey -> [Header]
Core.ToHeader,
      NotebookInstanceLifecycleConfigSortKey -> QueryString
(NotebookInstanceLifecycleConfigSortKey -> QueryString)
-> ToQuery NotebookInstanceLifecycleConfigSortKey
forall a. (a -> QueryString) -> ToQuery a
toQuery :: NotebookInstanceLifecycleConfigSortKey -> QueryString
$ctoQuery :: NotebookInstanceLifecycleConfigSortKey -> QueryString
Core.ToQuery,
      Value -> Parser [NotebookInstanceLifecycleConfigSortKey]
Value -> Parser NotebookInstanceLifecycleConfigSortKey
(Value -> Parser NotebookInstanceLifecycleConfigSortKey)
-> (Value -> Parser [NotebookInstanceLifecycleConfigSortKey])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [NotebookInstanceLifecycleConfigSortKey]
FromJSONKeyFunction NotebookInstanceLifecycleConfigSortKey
FromJSONKeyFunction NotebookInstanceLifecycleConfigSortKey
-> FromJSONKeyFunction [NotebookInstanceLifecycleConfigSortKey]
-> FromJSONKey NotebookInstanceLifecycleConfigSortKey
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [NotebookInstanceLifecycleConfigSortKey]
$cfromJSONKeyList :: FromJSONKeyFunction [NotebookInstanceLifecycleConfigSortKey]
fromJSONKey :: FromJSONKeyFunction NotebookInstanceLifecycleConfigSortKey
$cfromJSONKey :: FromJSONKeyFunction NotebookInstanceLifecycleConfigSortKey
Core.FromJSONKey,
      [NotebookInstanceLifecycleConfigSortKey] -> Encoding
[NotebookInstanceLifecycleConfigSortKey] -> Value
NotebookInstanceLifecycleConfigSortKey -> Encoding
NotebookInstanceLifecycleConfigSortKey -> Value
(NotebookInstanceLifecycleConfigSortKey -> Value)
-> (NotebookInstanceLifecycleConfigSortKey -> Encoding)
-> ([NotebookInstanceLifecycleConfigSortKey] -> Value)
-> ([NotebookInstanceLifecycleConfigSortKey] -> Encoding)
-> ToJSON NotebookInstanceLifecycleConfigSortKey
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
Core.ToJSON,
      ToJSONKeyFunction [NotebookInstanceLifecycleConfigSortKey]
ToJSONKeyFunction NotebookInstanceLifecycleConfigSortKey
ToJSONKeyFunction NotebookInstanceLifecycleConfigSortKey
-> ToJSONKeyFunction [NotebookInstanceLifecycleConfigSortKey]
-> ToJSONKey NotebookInstanceLifecycleConfigSortKey
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [NotebookInstanceLifecycleConfigSortKey]
$ctoJSONKeyList :: ToJSONKeyFunction [NotebookInstanceLifecycleConfigSortKey]
toJSONKey :: ToJSONKeyFunction NotebookInstanceLifecycleConfigSortKey
$ctoJSONKey :: ToJSONKeyFunction NotebookInstanceLifecycleConfigSortKey
Core.ToJSONKey,
      [Node] -> Either String NotebookInstanceLifecycleConfigSortKey
([Node] -> Either String NotebookInstanceLifecycleConfigSortKey)
-> FromXML NotebookInstanceLifecycleConfigSortKey
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String NotebookInstanceLifecycleConfigSortKey
$cparseXML :: [Node] -> Either String NotebookInstanceLifecycleConfigSortKey
Core.FromXML,
      NotebookInstanceLifecycleConfigSortKey -> XML
(NotebookInstanceLifecycleConfigSortKey -> XML)
-> ToXML NotebookInstanceLifecycleConfigSortKey
forall a. (a -> XML) -> ToXML a
toXML :: NotebookInstanceLifecycleConfigSortKey -> XML
$ctoXML :: NotebookInstanceLifecycleConfigSortKey -> XML
Core.ToXML
    )

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

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

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

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