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