{-# 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.EventNotificationResourceType
-- 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.EventNotificationResourceType
  ( EventNotificationResourceType
      ( ..,
        EventNotificationResourceType_SidewalkAccount,
        EventNotificationResourceType_WirelessDevice,
        EventNotificationResourceType_WirelessGateway
      ),
  )
where

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

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

pattern EventNotificationResourceType_SidewalkAccount :: EventNotificationResourceType
pattern $bEventNotificationResourceType_SidewalkAccount :: EventNotificationResourceType
$mEventNotificationResourceType_SidewalkAccount :: forall {r}.
EventNotificationResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
EventNotificationResourceType_SidewalkAccount = EventNotificationResourceType' "SidewalkAccount"

pattern EventNotificationResourceType_WirelessDevice :: EventNotificationResourceType
pattern $bEventNotificationResourceType_WirelessDevice :: EventNotificationResourceType
$mEventNotificationResourceType_WirelessDevice :: forall {r}.
EventNotificationResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
EventNotificationResourceType_WirelessDevice = EventNotificationResourceType' "WirelessDevice"

pattern EventNotificationResourceType_WirelessGateway :: EventNotificationResourceType
pattern $bEventNotificationResourceType_WirelessGateway :: EventNotificationResourceType
$mEventNotificationResourceType_WirelessGateway :: forall {r}.
EventNotificationResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
EventNotificationResourceType_WirelessGateway = EventNotificationResourceType' "WirelessGateway"

{-# COMPLETE
  EventNotificationResourceType_SidewalkAccount,
  EventNotificationResourceType_WirelessDevice,
  EventNotificationResourceType_WirelessGateway,
  EventNotificationResourceType'
  #-}