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