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