{-# 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.IotTwinMaker.Types.OrderByTime
-- 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.IotTwinMaker.Types.OrderByTime
  ( OrderByTime
      ( ..,
        OrderByTime_ASCENDING,
        OrderByTime_DESCENDING
      ),
  )
where

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

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

pattern OrderByTime_ASCENDING :: OrderByTime
pattern $bOrderByTime_ASCENDING :: OrderByTime
$mOrderByTime_ASCENDING :: forall {r}. OrderByTime -> ((# #) -> r) -> ((# #) -> r) -> r
OrderByTime_ASCENDING = OrderByTime' "ASCENDING"

pattern OrderByTime_DESCENDING :: OrderByTime
pattern $bOrderByTime_DESCENDING :: OrderByTime
$mOrderByTime_DESCENDING :: forall {r}. OrderByTime -> ((# #) -> r) -> ((# #) -> r) -> r
OrderByTime_DESCENDING = OrderByTime' "DESCENDING"

{-# COMPLETE
  OrderByTime_ASCENDING,
  OrderByTime_DESCENDING,
  OrderByTime'
  #-}