{-# 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.WirelessGatewayType
-- 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.WirelessGatewayType
  ( WirelessGatewayType
      ( ..,
        WirelessGatewayType_LoRaWAN
      ),
  )
where

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

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

pattern WirelessGatewayType_LoRaWAN :: WirelessGatewayType
pattern $bWirelessGatewayType_LoRaWAN :: WirelessGatewayType
$mWirelessGatewayType_LoRaWAN :: forall {r}.
WirelessGatewayType -> ((# #) -> r) -> ((# #) -> r) -> r
WirelessGatewayType_LoRaWAN = WirelessGatewayType' "LoRaWAN"

{-# COMPLETE
  WirelessGatewayType_LoRaWAN,
  WirelessGatewayType'
  #-}