{-# 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.NotebookInstanceSortKey
-- 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.NotebookInstanceSortKey
  ( NotebookInstanceSortKey
      ( ..,
        NotebookInstanceSortKey_CreationTime,
        NotebookInstanceSortKey_Name,
        NotebookInstanceSortKey_Status
      ),
  )
where

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

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

pattern NotebookInstanceSortKey_CreationTime :: NotebookInstanceSortKey
pattern $bNotebookInstanceSortKey_CreationTime :: NotebookInstanceSortKey
$mNotebookInstanceSortKey_CreationTime :: forall {r}.
NotebookInstanceSortKey -> ((# #) -> r) -> ((# #) -> r) -> r
NotebookInstanceSortKey_CreationTime = NotebookInstanceSortKey' "CreationTime"

pattern NotebookInstanceSortKey_Name :: NotebookInstanceSortKey
pattern $bNotebookInstanceSortKey_Name :: NotebookInstanceSortKey
$mNotebookInstanceSortKey_Name :: forall {r}.
NotebookInstanceSortKey -> ((# #) -> r) -> ((# #) -> r) -> r
NotebookInstanceSortKey_Name = NotebookInstanceSortKey' "Name"

pattern NotebookInstanceSortKey_Status :: NotebookInstanceSortKey
pattern $bNotebookInstanceSortKey_Status :: NotebookInstanceSortKey
$mNotebookInstanceSortKey_Status :: forall {r}.
NotebookInstanceSortKey -> ((# #) -> r) -> ((# #) -> r) -> r
NotebookInstanceSortKey_Status = NotebookInstanceSortKey' "Status"

{-# COMPLETE
  NotebookInstanceSortKey_CreationTime,
  NotebookInstanceSortKey_Name,
  NotebookInstanceSortKey_Status,
  NotebookInstanceSortKey'
  #-}