{-# 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.MonitoringScheduleSortKey
-- 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.MonitoringScheduleSortKey
  ( MonitoringScheduleSortKey
      ( ..,
        MonitoringScheduleSortKey_CreationTime,
        MonitoringScheduleSortKey_Name,
        MonitoringScheduleSortKey_Status
      ),
  )
where

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

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

pattern MonitoringScheduleSortKey_CreationTime :: MonitoringScheduleSortKey
pattern $bMonitoringScheduleSortKey_CreationTime :: MonitoringScheduleSortKey
$mMonitoringScheduleSortKey_CreationTime :: forall {r}.
MonitoringScheduleSortKey -> ((# #) -> r) -> ((# #) -> r) -> r
MonitoringScheduleSortKey_CreationTime = MonitoringScheduleSortKey' "CreationTime"

pattern MonitoringScheduleSortKey_Name :: MonitoringScheduleSortKey
pattern $bMonitoringScheduleSortKey_Name :: MonitoringScheduleSortKey
$mMonitoringScheduleSortKey_Name :: forall {r}.
MonitoringScheduleSortKey -> ((# #) -> r) -> ((# #) -> r) -> r
MonitoringScheduleSortKey_Name = MonitoringScheduleSortKey' "Name"

pattern MonitoringScheduleSortKey_Status :: MonitoringScheduleSortKey
pattern $bMonitoringScheduleSortKey_Status :: MonitoringScheduleSortKey
$mMonitoringScheduleSortKey_Status :: forall {r}.
MonitoringScheduleSortKey -> ((# #) -> r) -> ((# #) -> r) -> r
MonitoringScheduleSortKey_Status = MonitoringScheduleSortKey' "Status"

{-# COMPLETE
  MonitoringScheduleSortKey_CreationTime,
  MonitoringScheduleSortKey_Name,
  MonitoringScheduleSortKey_Status,
  MonitoringScheduleSortKey'
  #-}