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