{-# 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.WirelessGatewayEvent
-- 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.WirelessGatewayEvent
  ( WirelessGatewayEvent
      ( ..,
        WirelessGatewayEvent_CUPS_Request,
        WirelessGatewayEvent_Certificate
      ),
  )
where

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

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

pattern WirelessGatewayEvent_CUPS_Request :: WirelessGatewayEvent
pattern $bWirelessGatewayEvent_CUPS_Request :: WirelessGatewayEvent
$mWirelessGatewayEvent_CUPS_Request :: forall r. WirelessGatewayEvent -> (Void# -> r) -> (Void# -> r) -> r
WirelessGatewayEvent_CUPS_Request = WirelessGatewayEvent' "CUPS_Request"

pattern WirelessGatewayEvent_Certificate :: WirelessGatewayEvent
pattern $bWirelessGatewayEvent_Certificate :: WirelessGatewayEvent
$mWirelessGatewayEvent_Certificate :: forall r. WirelessGatewayEvent -> (Void# -> r) -> (Void# -> r) -> r
WirelessGatewayEvent_Certificate = WirelessGatewayEvent' "Certificate"

{-# COMPLETE
  WirelessGatewayEvent_CUPS_Request,
  WirelessGatewayEvent_Certificate,
  WirelessGatewayEvent'
  #-}