{-# 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.IdentifierType
-- 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.IdentifierType
  ( IdentifierType
      ( ..,
        IdentifierType_DevEui,
        IdentifierType_GatewayEui,
        IdentifierType_PartnerAccountId,
        IdentifierType_WirelessDeviceId,
        IdentifierType_WirelessGatewayId
      ),
  )
where

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

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

pattern IdentifierType_DevEui :: IdentifierType
pattern $bIdentifierType_DevEui :: IdentifierType
$mIdentifierType_DevEui :: forall {r}. IdentifierType -> ((# #) -> r) -> ((# #) -> r) -> r
IdentifierType_DevEui = IdentifierType' "DevEui"

pattern IdentifierType_GatewayEui :: IdentifierType
pattern $bIdentifierType_GatewayEui :: IdentifierType
$mIdentifierType_GatewayEui :: forall {r}. IdentifierType -> ((# #) -> r) -> ((# #) -> r) -> r
IdentifierType_GatewayEui = IdentifierType' "GatewayEui"

pattern IdentifierType_PartnerAccountId :: IdentifierType
pattern $bIdentifierType_PartnerAccountId :: IdentifierType
$mIdentifierType_PartnerAccountId :: forall {r}. IdentifierType -> ((# #) -> r) -> ((# #) -> r) -> r
IdentifierType_PartnerAccountId = IdentifierType' "PartnerAccountId"

pattern IdentifierType_WirelessDeviceId :: IdentifierType
pattern $bIdentifierType_WirelessDeviceId :: IdentifierType
$mIdentifierType_WirelessDeviceId :: forall {r}. IdentifierType -> ((# #) -> r) -> ((# #) -> r) -> r
IdentifierType_WirelessDeviceId = IdentifierType' "WirelessDeviceId"

pattern IdentifierType_WirelessGatewayId :: IdentifierType
pattern $bIdentifierType_WirelessGatewayId :: IdentifierType
$mIdentifierType_WirelessGatewayId :: forall {r}. IdentifierType -> ((# #) -> r) -> ((# #) -> r) -> r
IdentifierType_WirelessGatewayId = IdentifierType' "WirelessGatewayId"

{-# COMPLETE
  IdentifierType_DevEui,
  IdentifierType_GatewayEui,
  IdentifierType_PartnerAccountId,
  IdentifierType_WirelessDeviceId,
  IdentifierType_WirelessGatewayId,
  IdentifierType'
  #-}