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