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

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

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

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

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

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

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