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