{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.IoTWireless.Types.WirelessDeviceType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.IoTWireless.Types.WirelessDeviceType
  ( WirelessDeviceType
      ( ..,
        WirelessDeviceType_LoRaWAN,
        WirelessDeviceType_Sidewalk
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

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

pattern WirelessDeviceType_LoRaWAN :: WirelessDeviceType
pattern $bWirelessDeviceType_LoRaWAN :: WirelessDeviceType
$mWirelessDeviceType_LoRaWAN :: forall {r}. WirelessDeviceType -> ((# #) -> r) -> ((# #) -> r) -> r
WirelessDeviceType_LoRaWAN = WirelessDeviceType' "LoRaWAN"

pattern WirelessDeviceType_Sidewalk :: WirelessDeviceType
pattern $bWirelessDeviceType_Sidewalk :: WirelessDeviceType
$mWirelessDeviceType_Sidewalk :: forall {r}. WirelessDeviceType -> ((# #) -> r) -> ((# #) -> r) -> r
WirelessDeviceType_Sidewalk = WirelessDeviceType' "Sidewalk"

{-# COMPLETE
  WirelessDeviceType_LoRaWAN,
  WirelessDeviceType_Sidewalk,
  WirelessDeviceType'
  #-}