{-# 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.IoTEventsData.Types.TriggerType
-- 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.IoTEventsData.Types.TriggerType
  ( TriggerType
      ( ..,
        TriggerType_SNOOZE_TIMEOUT
      ),
  )
where

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

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

pattern TriggerType_SNOOZE_TIMEOUT :: TriggerType
pattern $bTriggerType_SNOOZE_TIMEOUT :: TriggerType
$mTriggerType_SNOOZE_TIMEOUT :: forall r. TriggerType -> (Void# -> r) -> (Void# -> r) -> r
TriggerType_SNOOZE_TIMEOUT = TriggerType' "SNOOZE_TIMEOUT"

{-# COMPLETE
  TriggerType_SNOOZE_TIMEOUT,
  TriggerType'
  #-}