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