{-# 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.AlexaBusiness.Types.DeviceEventType
-- 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.AlexaBusiness.Types.DeviceEventType
  ( DeviceEventType
      ( ..,
        DeviceEventType_CONNECTION_STATUS,
        DeviceEventType_DEVICE_STATUS
      ),
  )
where

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

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

pattern DeviceEventType_CONNECTION_STATUS :: DeviceEventType
pattern $bDeviceEventType_CONNECTION_STATUS :: DeviceEventType
$mDeviceEventType_CONNECTION_STATUS :: forall {r}. DeviceEventType -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceEventType_CONNECTION_STATUS = DeviceEventType' "CONNECTION_STATUS"

pattern DeviceEventType_DEVICE_STATUS :: DeviceEventType
pattern $bDeviceEventType_DEVICE_STATUS :: DeviceEventType
$mDeviceEventType_DEVICE_STATUS :: forall {r}. DeviceEventType -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceEventType_DEVICE_STATUS = DeviceEventType' "DEVICE_STATUS"

{-# COMPLETE
  DeviceEventType_CONNECTION_STATUS,
  DeviceEventType_DEVICE_STATUS,
  DeviceEventType'
  #-}