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