{-# 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.WirelessDeviceIdType
-- 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.WirelessDeviceIdType
  ( WirelessDeviceIdType
      ( ..,
        WirelessDeviceIdType_DevEui,
        WirelessDeviceIdType_SidewalkManufacturingSn,
        WirelessDeviceIdType_ThingName,
        WirelessDeviceIdType_WirelessDeviceId
      ),
  )
where

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

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

pattern WirelessDeviceIdType_DevEui :: WirelessDeviceIdType
pattern $bWirelessDeviceIdType_DevEui :: WirelessDeviceIdType
$mWirelessDeviceIdType_DevEui :: forall r. WirelessDeviceIdType -> (Void# -> r) -> (Void# -> r) -> r
WirelessDeviceIdType_DevEui = WirelessDeviceIdType' "DevEui"

pattern WirelessDeviceIdType_SidewalkManufacturingSn :: WirelessDeviceIdType
pattern $bWirelessDeviceIdType_SidewalkManufacturingSn :: WirelessDeviceIdType
$mWirelessDeviceIdType_SidewalkManufacturingSn :: forall r. WirelessDeviceIdType -> (Void# -> r) -> (Void# -> r) -> r
WirelessDeviceIdType_SidewalkManufacturingSn = WirelessDeviceIdType' "SidewalkManufacturingSn"

pattern WirelessDeviceIdType_ThingName :: WirelessDeviceIdType
pattern $bWirelessDeviceIdType_ThingName :: WirelessDeviceIdType
$mWirelessDeviceIdType_ThingName :: forall r. WirelessDeviceIdType -> (Void# -> r) -> (Void# -> r) -> r
WirelessDeviceIdType_ThingName = WirelessDeviceIdType' "ThingName"

pattern WirelessDeviceIdType_WirelessDeviceId :: WirelessDeviceIdType
pattern $bWirelessDeviceIdType_WirelessDeviceId :: WirelessDeviceIdType
$mWirelessDeviceIdType_WirelessDeviceId :: forall r. WirelessDeviceIdType -> (Void# -> r) -> (Void# -> r) -> r
WirelessDeviceIdType_WirelessDeviceId = WirelessDeviceIdType' "WirelessDeviceId"

{-# COMPLETE
  WirelessDeviceIdType_DevEui,
  WirelessDeviceIdType_SidewalkManufacturingSn,
  WirelessDeviceIdType_ThingName,
  WirelessDeviceIdType_WirelessDeviceId,
  WirelessDeviceIdType'
  #-}