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

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

newtype DeviceEventType = DeviceEventType'
  { DeviceEventType -> Text
fromDeviceEventType ::
      Core.Text
  }
  deriving stock
    ( Int -> DeviceEventType -> ShowS
[DeviceEventType] -> ShowS
DeviceEventType -> String
(Int -> DeviceEventType -> ShowS)
-> (DeviceEventType -> String)
-> ([DeviceEventType] -> ShowS)
-> Show DeviceEventType
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]
(Int -> ReadS DeviceEventType)
-> ReadS [DeviceEventType]
-> ReadPrec DeviceEventType
-> ReadPrec [DeviceEventType]
-> Read 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
(DeviceEventType -> DeviceEventType -> Bool)
-> (DeviceEventType -> DeviceEventType -> Bool)
-> Eq DeviceEventType
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
Eq DeviceEventType
-> (DeviceEventType -> DeviceEventType -> Ordering)
-> (DeviceEventType -> DeviceEventType -> Bool)
-> (DeviceEventType -> DeviceEventType -> Bool)
-> (DeviceEventType -> DeviceEventType -> Bool)
-> (DeviceEventType -> DeviceEventType -> Bool)
-> (DeviceEventType -> DeviceEventType -> DeviceEventType)
-> (DeviceEventType -> DeviceEventType -> DeviceEventType)
-> Ord 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
$cp1Ord :: Eq DeviceEventType
Prelude.Ord,
      (forall x. DeviceEventType -> Rep DeviceEventType x)
-> (forall x. Rep DeviceEventType x -> DeviceEventType)
-> Generic DeviceEventType
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
    ( Int -> DeviceEventType -> Int
DeviceEventType -> Int
(Int -> DeviceEventType -> Int)
-> (DeviceEventType -> Int) -> Hashable DeviceEventType
forall 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 -> ()
(DeviceEventType -> ()) -> NFData DeviceEventType
forall a. (a -> ()) -> NFData a
rnf :: DeviceEventType -> ()
$crnf :: DeviceEventType -> ()
Prelude.NFData,
      Text -> Either String DeviceEventType
(Text -> Either String DeviceEventType) -> FromText DeviceEventType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DeviceEventType
$cfromText :: Text -> Either String DeviceEventType
Core.FromText,
      DeviceEventType -> Text
(DeviceEventType -> Text) -> ToText DeviceEventType
forall a. (a -> Text) -> ToText a
toText :: DeviceEventType -> Text
$ctoText :: DeviceEventType -> Text
Core.ToText,
      DeviceEventType -> ByteString
(DeviceEventType -> ByteString) -> ToByteString DeviceEventType
forall a. (a -> ByteString) -> ToByteString a
toBS :: DeviceEventType -> ByteString
$ctoBS :: DeviceEventType -> ByteString
Core.ToByteString,
      DeviceEventType -> ByteStringBuilder
(DeviceEventType -> ByteStringBuilder) -> ToLog DeviceEventType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DeviceEventType -> ByteStringBuilder
$cbuild :: DeviceEventType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DeviceEventType -> [Header]
(HeaderName -> DeviceEventType -> [Header])
-> ToHeader DeviceEventType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DeviceEventType -> [Header]
$ctoHeader :: HeaderName -> DeviceEventType -> [Header]
Core.ToHeader,
      DeviceEventType -> QueryString
(DeviceEventType -> QueryString) -> ToQuery DeviceEventType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DeviceEventType -> QueryString
$ctoQuery :: DeviceEventType -> QueryString
Core.ToQuery,
      Value -> Parser [DeviceEventType]
Value -> Parser DeviceEventType
(Value -> Parser DeviceEventType)
-> (Value -> Parser [DeviceEventType]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [DeviceEventType]
FromJSONKeyFunction DeviceEventType
FromJSONKeyFunction DeviceEventType
-> FromJSONKeyFunction [DeviceEventType]
-> FromJSONKey DeviceEventType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DeviceEventType]
$cfromJSONKeyList :: FromJSONKeyFunction [DeviceEventType]
fromJSONKey :: FromJSONKeyFunction DeviceEventType
$cfromJSONKey :: FromJSONKeyFunction DeviceEventType
Core.FromJSONKey,
      [DeviceEventType] -> Encoding
[DeviceEventType] -> Value
DeviceEventType -> Encoding
DeviceEventType -> Value
(DeviceEventType -> Value)
-> (DeviceEventType -> Encoding)
-> ([DeviceEventType] -> Value)
-> ([DeviceEventType] -> Encoding)
-> ToJSON DeviceEventType
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
Core.ToJSON,
      ToJSONKeyFunction [DeviceEventType]
ToJSONKeyFunction DeviceEventType
ToJSONKeyFunction DeviceEventType
-> ToJSONKeyFunction [DeviceEventType] -> ToJSONKey DeviceEventType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DeviceEventType]
$ctoJSONKeyList :: ToJSONKeyFunction [DeviceEventType]
toJSONKey :: ToJSONKeyFunction DeviceEventType
$ctoJSONKey :: ToJSONKeyFunction DeviceEventType
Core.ToJSONKey,
      [Node] -> Either String DeviceEventType
([Node] -> Either String DeviceEventType)
-> FromXML DeviceEventType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DeviceEventType
$cparseXML :: [Node] -> Either String DeviceEventType
Core.FromXML,
      DeviceEventType -> XML
(DeviceEventType -> XML) -> ToXML DeviceEventType
forall a. (a -> XML) -> ToXML a
toXML :: DeviceEventType -> XML
$ctoXML :: DeviceEventType -> XML
Core.ToXML
    )

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

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

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