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