{-# 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.MonitoringExecutionSortKey
-- 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.MonitoringExecutionSortKey
  ( MonitoringExecutionSortKey
      ( ..,
        MonitoringExecutionSortKey_CreationTime,
        MonitoringExecutionSortKey_ScheduledTime,
        MonitoringExecutionSortKey_Status
      ),
  )
where

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

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

pattern MonitoringExecutionSortKey_CreationTime :: MonitoringExecutionSortKey
pattern $bMonitoringExecutionSortKey_CreationTime :: MonitoringExecutionSortKey
$mMonitoringExecutionSortKey_CreationTime :: forall r.
MonitoringExecutionSortKey -> (Void# -> r) -> (Void# -> r) -> r
MonitoringExecutionSortKey_CreationTime = MonitoringExecutionSortKey' "CreationTime"

pattern MonitoringExecutionSortKey_ScheduledTime :: MonitoringExecutionSortKey
pattern $bMonitoringExecutionSortKey_ScheduledTime :: MonitoringExecutionSortKey
$mMonitoringExecutionSortKey_ScheduledTime :: forall r.
MonitoringExecutionSortKey -> (Void# -> r) -> (Void# -> r) -> r
MonitoringExecutionSortKey_ScheduledTime = MonitoringExecutionSortKey' "ScheduledTime"

pattern MonitoringExecutionSortKey_Status :: MonitoringExecutionSortKey
pattern $bMonitoringExecutionSortKey_Status :: MonitoringExecutionSortKey
$mMonitoringExecutionSortKey_Status :: forall r.
MonitoringExecutionSortKey -> (Void# -> r) -> (Void# -> r) -> r
MonitoringExecutionSortKey_Status = MonitoringExecutionSortKey' "Status"

{-# COMPLETE
  MonitoringExecutionSortKey_CreationTime,
  MonitoringExecutionSortKey_ScheduledTime,
  MonitoringExecutionSortKey_Status,
  MonitoringExecutionSortKey'
  #-}