{-# 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.AssetRelationshipType
-- 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.AssetRelationshipType
  ( AssetRelationshipType
      ( ..,
        AssetRelationshipType_HIERARCHY
      ),
  )
where

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

newtype AssetRelationshipType = AssetRelationshipType'
  { AssetRelationshipType -> Text
fromAssetRelationshipType ::
      Core.Text
  }
  deriving stock
    ( Int -> AssetRelationshipType -> ShowS
[AssetRelationshipType] -> ShowS
AssetRelationshipType -> String
(Int -> AssetRelationshipType -> ShowS)
-> (AssetRelationshipType -> String)
-> ([AssetRelationshipType] -> ShowS)
-> Show AssetRelationshipType
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]
(Int -> ReadS AssetRelationshipType)
-> ReadS [AssetRelationshipType]
-> ReadPrec AssetRelationshipType
-> ReadPrec [AssetRelationshipType]
-> Read 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
(AssetRelationshipType -> AssetRelationshipType -> Bool)
-> (AssetRelationshipType -> AssetRelationshipType -> Bool)
-> Eq AssetRelationshipType
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
Eq AssetRelationshipType
-> (AssetRelationshipType -> AssetRelationshipType -> Ordering)
-> (AssetRelationshipType -> AssetRelationshipType -> Bool)
-> (AssetRelationshipType -> AssetRelationshipType -> Bool)
-> (AssetRelationshipType -> AssetRelationshipType -> Bool)
-> (AssetRelationshipType -> AssetRelationshipType -> Bool)
-> (AssetRelationshipType
    -> AssetRelationshipType -> AssetRelationshipType)
-> (AssetRelationshipType
    -> AssetRelationshipType -> AssetRelationshipType)
-> Ord 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
$cp1Ord :: Eq AssetRelationshipType
Prelude.Ord,
      (forall x. AssetRelationshipType -> Rep AssetRelationshipType x)
-> (forall x. Rep AssetRelationshipType x -> AssetRelationshipType)
-> Generic AssetRelationshipType
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
    ( Int -> AssetRelationshipType -> Int
AssetRelationshipType -> Int
(Int -> AssetRelationshipType -> Int)
-> (AssetRelationshipType -> Int) -> Hashable AssetRelationshipType
forall 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 -> ()
(AssetRelationshipType -> ()) -> NFData AssetRelationshipType
forall a. (a -> ()) -> NFData a
rnf :: AssetRelationshipType -> ()
$crnf :: AssetRelationshipType -> ()
Prelude.NFData,
      Text -> Either String AssetRelationshipType
(Text -> Either String AssetRelationshipType)
-> FromText AssetRelationshipType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AssetRelationshipType
$cfromText :: Text -> Either String AssetRelationshipType
Core.FromText,
      AssetRelationshipType -> Text
(AssetRelationshipType -> Text) -> ToText AssetRelationshipType
forall a. (a -> Text) -> ToText a
toText :: AssetRelationshipType -> Text
$ctoText :: AssetRelationshipType -> Text
Core.ToText,
      AssetRelationshipType -> ByteString
(AssetRelationshipType -> ByteString)
-> ToByteString AssetRelationshipType
forall a. (a -> ByteString) -> ToByteString a
toBS :: AssetRelationshipType -> ByteString
$ctoBS :: AssetRelationshipType -> ByteString
Core.ToByteString,
      AssetRelationshipType -> ByteStringBuilder
(AssetRelationshipType -> ByteStringBuilder)
-> ToLog AssetRelationshipType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AssetRelationshipType -> ByteStringBuilder
$cbuild :: AssetRelationshipType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> AssetRelationshipType -> [Header]
(HeaderName -> AssetRelationshipType -> [Header])
-> ToHeader AssetRelationshipType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AssetRelationshipType -> [Header]
$ctoHeader :: HeaderName -> AssetRelationshipType -> [Header]
Core.ToHeader,
      AssetRelationshipType -> QueryString
(AssetRelationshipType -> QueryString)
-> ToQuery AssetRelationshipType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AssetRelationshipType -> QueryString
$ctoQuery :: AssetRelationshipType -> QueryString
Core.ToQuery,
      Value -> Parser [AssetRelationshipType]
Value -> Parser AssetRelationshipType
(Value -> Parser AssetRelationshipType)
-> (Value -> Parser [AssetRelationshipType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [AssetRelationshipType]
FromJSONKeyFunction AssetRelationshipType
FromJSONKeyFunction AssetRelationshipType
-> FromJSONKeyFunction [AssetRelationshipType]
-> FromJSONKey AssetRelationshipType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AssetRelationshipType]
$cfromJSONKeyList :: FromJSONKeyFunction [AssetRelationshipType]
fromJSONKey :: FromJSONKeyFunction AssetRelationshipType
$cfromJSONKey :: FromJSONKeyFunction AssetRelationshipType
Core.FromJSONKey,
      [AssetRelationshipType] -> Encoding
[AssetRelationshipType] -> Value
AssetRelationshipType -> Encoding
AssetRelationshipType -> Value
(AssetRelationshipType -> Value)
-> (AssetRelationshipType -> Encoding)
-> ([AssetRelationshipType] -> Value)
-> ([AssetRelationshipType] -> Encoding)
-> ToJSON AssetRelationshipType
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
Core.ToJSON,
      ToJSONKeyFunction [AssetRelationshipType]
ToJSONKeyFunction AssetRelationshipType
ToJSONKeyFunction AssetRelationshipType
-> ToJSONKeyFunction [AssetRelationshipType]
-> ToJSONKey AssetRelationshipType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AssetRelationshipType]
$ctoJSONKeyList :: ToJSONKeyFunction [AssetRelationshipType]
toJSONKey :: ToJSONKeyFunction AssetRelationshipType
$ctoJSONKey :: ToJSONKeyFunction AssetRelationshipType
Core.ToJSONKey,
      [Node] -> Either String AssetRelationshipType
([Node] -> Either String AssetRelationshipType)
-> FromXML AssetRelationshipType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AssetRelationshipType
$cparseXML :: [Node] -> Either String AssetRelationshipType
Core.FromXML,
      AssetRelationshipType -> XML
(AssetRelationshipType -> XML) -> ToXML AssetRelationshipType
forall a. (a -> XML) -> ToXML a
toXML :: AssetRelationshipType -> XML
$ctoXML :: AssetRelationshipType -> XML
Core.ToXML
    )

pattern AssetRelationshipType_HIERARCHY :: AssetRelationshipType
pattern $bAssetRelationshipType_HIERARCHY :: AssetRelationshipType
$mAssetRelationshipType_HIERARCHY :: forall r.
AssetRelationshipType -> (Void# -> r) -> (Void# -> r) -> r
AssetRelationshipType_HIERARCHY = AssetRelationshipType' "HIERARCHY"

{-# COMPLETE
  AssetRelationshipType_HIERARCHY,
  AssetRelationshipType'
  #-}