{-# 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.SSMIncidents.Types.TimelineEventSort
-- 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.SSMIncidents.Types.TimelineEventSort
  ( TimelineEventSort
      ( ..,
        TimelineEventSort_EVENT_TIME
      ),
  )
where

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

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

pattern TimelineEventSort_EVENT_TIME :: TimelineEventSort
pattern $bTimelineEventSort_EVENT_TIME :: TimelineEventSort
$mTimelineEventSort_EVENT_TIME :: forall r. TimelineEventSort -> (Void# -> r) -> (Void# -> r) -> r
TimelineEventSort_EVENT_TIME = TimelineEventSort' "EVENT_TIME"

{-# COMPLETE
  TimelineEventSort_EVENT_TIME,
  TimelineEventSort'
  #-}