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

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

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

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

{-# COMPLETE
  NotificationDestinationType_SNS,
  NotificationDestinationType'
  #-}