{-# 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.EventNotificationPartnerType
-- 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.EventNotificationPartnerType
  ( EventNotificationPartnerType
      ( ..,
        EventNotificationPartnerType_Sidewalk
      ),
  )
where

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

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

pattern EventNotificationPartnerType_Sidewalk :: EventNotificationPartnerType
pattern $bEventNotificationPartnerType_Sidewalk :: EventNotificationPartnerType
$mEventNotificationPartnerType_Sidewalk :: forall {r}.
EventNotificationPartnerType -> ((# #) -> r) -> ((# #) -> r) -> r
EventNotificationPartnerType_Sidewalk = EventNotificationPartnerType' "Sidewalk"

{-# COMPLETE
  EventNotificationPartnerType_Sidewalk,
  EventNotificationPartnerType'
  #-}