{-# 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.MonitoringAlertHistorySortKey
-- 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.MonitoringAlertHistorySortKey
  ( MonitoringAlertHistorySortKey
      ( ..,
        MonitoringAlertHistorySortKey_CreationTime,
        MonitoringAlertHistorySortKey_Status
      ),
  )
where

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

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

pattern MonitoringAlertHistorySortKey_CreationTime :: MonitoringAlertHistorySortKey
pattern $bMonitoringAlertHistorySortKey_CreationTime :: MonitoringAlertHistorySortKey
$mMonitoringAlertHistorySortKey_CreationTime :: forall {r}.
MonitoringAlertHistorySortKey -> ((# #) -> r) -> ((# #) -> r) -> r
MonitoringAlertHistorySortKey_CreationTime = MonitoringAlertHistorySortKey' "CreationTime"

pattern MonitoringAlertHistorySortKey_Status :: MonitoringAlertHistorySortKey
pattern $bMonitoringAlertHistorySortKey_Status :: MonitoringAlertHistorySortKey
$mMonitoringAlertHistorySortKey_Status :: forall {r}.
MonitoringAlertHistorySortKey -> ((# #) -> r) -> ((# #) -> r) -> r
MonitoringAlertHistorySortKey_Status = MonitoringAlertHistorySortKey' "Status"

{-# COMPLETE
  MonitoringAlertHistorySortKey_CreationTime,
  MonitoringAlertHistorySortKey_Status,
  MonitoringAlertHistorySortKey'
  #-}