{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.IoTSiteWise.Types.TraversalDirection
( TraversalDirection
( ..,
TraversalDirection_CHILD,
TraversalDirection_PARENT
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype TraversalDirection = TraversalDirection'
{ TraversalDirection -> Text
fromTraversalDirection ::
Core.Text
}
deriving stock
( Int -> TraversalDirection -> ShowS
[TraversalDirection] -> ShowS
TraversalDirection -> String
(Int -> TraversalDirection -> ShowS)
-> (TraversalDirection -> String)
-> ([TraversalDirection] -> ShowS)
-> Show TraversalDirection
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TraversalDirection] -> ShowS
$cshowList :: [TraversalDirection] -> ShowS
show :: TraversalDirection -> String
$cshow :: TraversalDirection -> String
showsPrec :: Int -> TraversalDirection -> ShowS
$cshowsPrec :: Int -> TraversalDirection -> ShowS
Prelude.Show,
ReadPrec [TraversalDirection]
ReadPrec TraversalDirection
Int -> ReadS TraversalDirection
ReadS [TraversalDirection]
(Int -> ReadS TraversalDirection)
-> ReadS [TraversalDirection]
-> ReadPrec TraversalDirection
-> ReadPrec [TraversalDirection]
-> Read TraversalDirection
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TraversalDirection]
$creadListPrec :: ReadPrec [TraversalDirection]
readPrec :: ReadPrec TraversalDirection
$creadPrec :: ReadPrec TraversalDirection
readList :: ReadS [TraversalDirection]
$creadList :: ReadS [TraversalDirection]
readsPrec :: Int -> ReadS TraversalDirection
$creadsPrec :: Int -> ReadS TraversalDirection
Prelude.Read,
TraversalDirection -> TraversalDirection -> Bool
(TraversalDirection -> TraversalDirection -> Bool)
-> (TraversalDirection -> TraversalDirection -> Bool)
-> Eq TraversalDirection
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TraversalDirection -> TraversalDirection -> Bool
$c/= :: TraversalDirection -> TraversalDirection -> Bool
== :: TraversalDirection -> TraversalDirection -> Bool
$c== :: TraversalDirection -> TraversalDirection -> Bool
Prelude.Eq,
Eq TraversalDirection
Eq TraversalDirection
-> (TraversalDirection -> TraversalDirection -> Ordering)
-> (TraversalDirection -> TraversalDirection -> Bool)
-> (TraversalDirection -> TraversalDirection -> Bool)
-> (TraversalDirection -> TraversalDirection -> Bool)
-> (TraversalDirection -> TraversalDirection -> Bool)
-> (TraversalDirection -> TraversalDirection -> TraversalDirection)
-> (TraversalDirection -> TraversalDirection -> TraversalDirection)
-> Ord TraversalDirection
TraversalDirection -> TraversalDirection -> Bool
TraversalDirection -> TraversalDirection -> Ordering
TraversalDirection -> TraversalDirection -> TraversalDirection
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 :: TraversalDirection -> TraversalDirection -> TraversalDirection
$cmin :: TraversalDirection -> TraversalDirection -> TraversalDirection
max :: TraversalDirection -> TraversalDirection -> TraversalDirection
$cmax :: TraversalDirection -> TraversalDirection -> TraversalDirection
>= :: TraversalDirection -> TraversalDirection -> Bool
$c>= :: TraversalDirection -> TraversalDirection -> Bool
> :: TraversalDirection -> TraversalDirection -> Bool
$c> :: TraversalDirection -> TraversalDirection -> Bool
<= :: TraversalDirection -> TraversalDirection -> Bool
$c<= :: TraversalDirection -> TraversalDirection -> Bool
< :: TraversalDirection -> TraversalDirection -> Bool
$c< :: TraversalDirection -> TraversalDirection -> Bool
compare :: TraversalDirection -> TraversalDirection -> Ordering
$ccompare :: TraversalDirection -> TraversalDirection -> Ordering
$cp1Ord :: Eq TraversalDirection
Prelude.Ord,
(forall x. TraversalDirection -> Rep TraversalDirection x)
-> (forall x. Rep TraversalDirection x -> TraversalDirection)
-> Generic TraversalDirection
forall x. Rep TraversalDirection x -> TraversalDirection
forall x. TraversalDirection -> Rep TraversalDirection x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TraversalDirection x -> TraversalDirection
$cfrom :: forall x. TraversalDirection -> Rep TraversalDirection x
Prelude.Generic
)
deriving newtype
( Int -> TraversalDirection -> Int
TraversalDirection -> Int
(Int -> TraversalDirection -> Int)
-> (TraversalDirection -> Int) -> Hashable TraversalDirection
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TraversalDirection -> Int
$chash :: TraversalDirection -> Int
hashWithSalt :: Int -> TraversalDirection -> Int
$chashWithSalt :: Int -> TraversalDirection -> Int
Prelude.Hashable,
TraversalDirection -> ()
(TraversalDirection -> ()) -> NFData TraversalDirection
forall a. (a -> ()) -> NFData a
rnf :: TraversalDirection -> ()
$crnf :: TraversalDirection -> ()
Prelude.NFData,
Text -> Either String TraversalDirection
(Text -> Either String TraversalDirection)
-> FromText TraversalDirection
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TraversalDirection
$cfromText :: Text -> Either String TraversalDirection
Core.FromText,
TraversalDirection -> Text
(TraversalDirection -> Text) -> ToText TraversalDirection
forall a. (a -> Text) -> ToText a
toText :: TraversalDirection -> Text
$ctoText :: TraversalDirection -> Text
Core.ToText,
TraversalDirection -> ByteString
(TraversalDirection -> ByteString)
-> ToByteString TraversalDirection
forall a. (a -> ByteString) -> ToByteString a
toBS :: TraversalDirection -> ByteString
$ctoBS :: TraversalDirection -> ByteString
Core.ToByteString,
TraversalDirection -> ByteStringBuilder
(TraversalDirection -> ByteStringBuilder)
-> ToLog TraversalDirection
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TraversalDirection -> ByteStringBuilder
$cbuild :: TraversalDirection -> ByteStringBuilder
Core.ToLog,
HeaderName -> TraversalDirection -> [Header]
(HeaderName -> TraversalDirection -> [Header])
-> ToHeader TraversalDirection
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TraversalDirection -> [Header]
$ctoHeader :: HeaderName -> TraversalDirection -> [Header]
Core.ToHeader,
TraversalDirection -> QueryString
(TraversalDirection -> QueryString) -> ToQuery TraversalDirection
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TraversalDirection -> QueryString
$ctoQuery :: TraversalDirection -> QueryString
Core.ToQuery,
Value -> Parser [TraversalDirection]
Value -> Parser TraversalDirection
(Value -> Parser TraversalDirection)
-> (Value -> Parser [TraversalDirection])
-> FromJSON TraversalDirection
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TraversalDirection]
$cparseJSONList :: Value -> Parser [TraversalDirection]
parseJSON :: Value -> Parser TraversalDirection
$cparseJSON :: Value -> Parser TraversalDirection
Core.FromJSON,
FromJSONKeyFunction [TraversalDirection]
FromJSONKeyFunction TraversalDirection
FromJSONKeyFunction TraversalDirection
-> FromJSONKeyFunction [TraversalDirection]
-> FromJSONKey TraversalDirection
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TraversalDirection]
$cfromJSONKeyList :: FromJSONKeyFunction [TraversalDirection]
fromJSONKey :: FromJSONKeyFunction TraversalDirection
$cfromJSONKey :: FromJSONKeyFunction TraversalDirection
Core.FromJSONKey,
[TraversalDirection] -> Encoding
[TraversalDirection] -> Value
TraversalDirection -> Encoding
TraversalDirection -> Value
(TraversalDirection -> Value)
-> (TraversalDirection -> Encoding)
-> ([TraversalDirection] -> Value)
-> ([TraversalDirection] -> Encoding)
-> ToJSON TraversalDirection
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TraversalDirection] -> Encoding
$ctoEncodingList :: [TraversalDirection] -> Encoding
toJSONList :: [TraversalDirection] -> Value
$ctoJSONList :: [TraversalDirection] -> Value
toEncoding :: TraversalDirection -> Encoding
$ctoEncoding :: TraversalDirection -> Encoding
toJSON :: TraversalDirection -> Value
$ctoJSON :: TraversalDirection -> Value
Core.ToJSON,
ToJSONKeyFunction [TraversalDirection]
ToJSONKeyFunction TraversalDirection
ToJSONKeyFunction TraversalDirection
-> ToJSONKeyFunction [TraversalDirection]
-> ToJSONKey TraversalDirection
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TraversalDirection]
$ctoJSONKeyList :: ToJSONKeyFunction [TraversalDirection]
toJSONKey :: ToJSONKeyFunction TraversalDirection
$ctoJSONKey :: ToJSONKeyFunction TraversalDirection
Core.ToJSONKey,
[Node] -> Either String TraversalDirection
([Node] -> Either String TraversalDirection)
-> FromXML TraversalDirection
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TraversalDirection
$cparseXML :: [Node] -> Either String TraversalDirection
Core.FromXML,
TraversalDirection -> XML
(TraversalDirection -> XML) -> ToXML TraversalDirection
forall a. (a -> XML) -> ToXML a
toXML :: TraversalDirection -> XML
$ctoXML :: TraversalDirection -> XML
Core.ToXML
)
pattern TraversalDirection_CHILD :: TraversalDirection
pattern $bTraversalDirection_CHILD :: TraversalDirection
$mTraversalDirection_CHILD :: forall r. TraversalDirection -> (Void# -> r) -> (Void# -> r) -> r
TraversalDirection_CHILD = TraversalDirection' "CHILD"
pattern TraversalDirection_PARENT :: TraversalDirection
pattern $bTraversalDirection_PARENT :: TraversalDirection
$mTraversalDirection_PARENT :: forall r. TraversalDirection -> (Void# -> r) -> (Void# -> r) -> r
TraversalDirection_PARENT = TraversalDirection' "PARENT"
{-# COMPLETE
TraversalDirection_CHILD,
TraversalDirection_PARENT,
TraversalDirection'
#-}