{-# 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.IoTSiteWise.Types.TraversalType
-- 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.IoTSiteWise.Types.TraversalType
  ( TraversalType
      ( ..,
        TraversalType_PATH_TO_ROOT
      ),
  )
where

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

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

pattern TraversalType_PATH_TO_ROOT :: TraversalType
pattern $bTraversalType_PATH_TO_ROOT :: TraversalType
$mTraversalType_PATH_TO_ROOT :: forall r. TraversalType -> (Void# -> r) -> (Void# -> r) -> r
TraversalType_PATH_TO_ROOT = TraversalType' "PATH_TO_ROOT"

{-# COMPLETE
  TraversalType_PATH_TO_ROOT,
  TraversalType'
  #-}