{-# 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.Grafana.Types.NotificationDestinationType
-- 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.Grafana.Types.NotificationDestinationType
  ( NotificationDestinationType
      ( ..,
        NotificationDestinationType_SNS
      ),
  )
where

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

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

pattern NotificationDestinationType_SNS :: NotificationDestinationType
pattern $bNotificationDestinationType_SNS :: NotificationDestinationType
$mNotificationDestinationType_SNS :: forall {r}.
NotificationDestinationType -> ((# #) -> r) -> ((# #) -> r) -> r
NotificationDestinationType_SNS = NotificationDestinationType' "SNS"

{-# COMPLETE
  NotificationDestinationType_SNS,
  NotificationDestinationType'
  #-}