{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype WirelessDeviceType = WirelessDeviceType'
  { WirelessDeviceType -> Text
fromWirelessDeviceType ::
      Core.Text
  }
  deriving stock
    ( Int -> WirelessDeviceType -> ShowS
[WirelessDeviceType] -> ShowS
WirelessDeviceType -> String
(Int -> WirelessDeviceType -> ShowS)
-> (WirelessDeviceType -> String)
-> ([WirelessDeviceType] -> ShowS)
-> Show WirelessDeviceType
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]
(Int -> ReadS WirelessDeviceType)
-> ReadS [WirelessDeviceType]
-> ReadPrec WirelessDeviceType
-> ReadPrec [WirelessDeviceType]
-> Read 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
(WirelessDeviceType -> WirelessDeviceType -> Bool)
-> (WirelessDeviceType -> WirelessDeviceType -> Bool)
-> Eq WirelessDeviceType
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
Eq WirelessDeviceType
-> (WirelessDeviceType -> WirelessDeviceType -> Ordering)
-> (WirelessDeviceType -> WirelessDeviceType -> Bool)
-> (WirelessDeviceType -> WirelessDeviceType -> Bool)
-> (WirelessDeviceType -> WirelessDeviceType -> Bool)
-> (WirelessDeviceType -> WirelessDeviceType -> Bool)
-> (WirelessDeviceType -> WirelessDeviceType -> WirelessDeviceType)
-> (WirelessDeviceType -> WirelessDeviceType -> WirelessDeviceType)
-> Ord 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
$cp1Ord :: Eq WirelessDeviceType
Prelude.Ord,
      (forall x. WirelessDeviceType -> Rep WirelessDeviceType x)
-> (forall x. Rep WirelessDeviceType x -> WirelessDeviceType)
-> Generic WirelessDeviceType
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
    ( Int -> WirelessDeviceType -> Int
WirelessDeviceType -> Int
(Int -> WirelessDeviceType -> Int)
-> (WirelessDeviceType -> Int) -> Hashable WirelessDeviceType
forall 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 -> ()
(WirelessDeviceType -> ()) -> NFData WirelessDeviceType
forall a. (a -> ()) -> NFData a
rnf :: WirelessDeviceType -> ()
$crnf :: WirelessDeviceType -> ()
Prelude.NFData,
      Text -> Either String WirelessDeviceType
(Text -> Either String WirelessDeviceType)
-> FromText WirelessDeviceType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String WirelessDeviceType
$cfromText :: Text -> Either String WirelessDeviceType
Core.FromText,
      WirelessDeviceType -> Text
(WirelessDeviceType -> Text) -> ToText WirelessDeviceType
forall a. (a -> Text) -> ToText a
toText :: WirelessDeviceType -> Text
$ctoText :: WirelessDeviceType -> Text
Core.ToText,
      WirelessDeviceType -> ByteString
(WirelessDeviceType -> ByteString)
-> ToByteString WirelessDeviceType
forall a. (a -> ByteString) -> ToByteString a
toBS :: WirelessDeviceType -> ByteString
$ctoBS :: WirelessDeviceType -> ByteString
Core.ToByteString,
      WirelessDeviceType -> ByteStringBuilder
(WirelessDeviceType -> ByteStringBuilder)
-> ToLog WirelessDeviceType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: WirelessDeviceType -> ByteStringBuilder
$cbuild :: WirelessDeviceType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> WirelessDeviceType -> [Header]
(HeaderName -> WirelessDeviceType -> [Header])
-> ToHeader WirelessDeviceType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> WirelessDeviceType -> [Header]
$ctoHeader :: HeaderName -> WirelessDeviceType -> [Header]
Core.ToHeader,
      WirelessDeviceType -> QueryString
(WirelessDeviceType -> QueryString) -> ToQuery WirelessDeviceType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: WirelessDeviceType -> QueryString
$ctoQuery :: WirelessDeviceType -> QueryString
Core.ToQuery,
      Value -> Parser [WirelessDeviceType]
Value -> Parser WirelessDeviceType
(Value -> Parser WirelessDeviceType)
-> (Value -> Parser [WirelessDeviceType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [WirelessDeviceType]
FromJSONKeyFunction WirelessDeviceType
FromJSONKeyFunction WirelessDeviceType
-> FromJSONKeyFunction [WirelessDeviceType]
-> FromJSONKey WirelessDeviceType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [WirelessDeviceType]
$cfromJSONKeyList :: FromJSONKeyFunction [WirelessDeviceType]
fromJSONKey :: FromJSONKeyFunction WirelessDeviceType
$cfromJSONKey :: FromJSONKeyFunction WirelessDeviceType
Core.FromJSONKey,
      [WirelessDeviceType] -> Encoding
[WirelessDeviceType] -> Value
WirelessDeviceType -> Encoding
WirelessDeviceType -> Value
(WirelessDeviceType -> Value)
-> (WirelessDeviceType -> Encoding)
-> ([WirelessDeviceType] -> Value)
-> ([WirelessDeviceType] -> Encoding)
-> ToJSON WirelessDeviceType
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
Core.ToJSON,
      ToJSONKeyFunction [WirelessDeviceType]
ToJSONKeyFunction WirelessDeviceType
ToJSONKeyFunction WirelessDeviceType
-> ToJSONKeyFunction [WirelessDeviceType]
-> ToJSONKey WirelessDeviceType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [WirelessDeviceType]
$ctoJSONKeyList :: ToJSONKeyFunction [WirelessDeviceType]
toJSONKey :: ToJSONKeyFunction WirelessDeviceType
$ctoJSONKey :: ToJSONKeyFunction WirelessDeviceType
Core.ToJSONKey,
      [Node] -> Either String WirelessDeviceType
([Node] -> Either String WirelessDeviceType)
-> FromXML WirelessDeviceType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String WirelessDeviceType
$cparseXML :: [Node] -> Either String WirelessDeviceType
Core.FromXML,
      WirelessDeviceType -> XML
(WirelessDeviceType -> XML) -> ToXML WirelessDeviceType
forall a. (a -> XML) -> ToXML a
toXML :: WirelessDeviceType -> XML
$ctoXML :: WirelessDeviceType -> XML
Core.ToXML
    )

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

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

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