{-# 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.SSMContacts.Types.ChannelType
-- 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.SSMContacts.Types.ChannelType
  ( ChannelType
      ( ..,
        ChannelType_EMAIL,
        ChannelType_SMS,
        ChannelType_VOICE
      ),
  )
where

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

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

pattern ChannelType_EMAIL :: ChannelType
pattern $bChannelType_EMAIL :: ChannelType
$mChannelType_EMAIL :: forall {r}. ChannelType -> ((# #) -> r) -> ((# #) -> r) -> r
ChannelType_EMAIL = ChannelType' "EMAIL"

pattern ChannelType_SMS :: ChannelType
pattern $bChannelType_SMS :: ChannelType
$mChannelType_SMS :: forall {r}. ChannelType -> ((# #) -> r) -> ((# #) -> r) -> r
ChannelType_SMS = ChannelType' "SMS"

pattern ChannelType_VOICE :: ChannelType
pattern $bChannelType_VOICE :: ChannelType
$mChannelType_VOICE :: forall {r}. ChannelType -> ((# #) -> r) -> ((# #) -> r) -> r
ChannelType_VOICE = ChannelType' "VOICE"

{-# COMPLETE
  ChannelType_EMAIL,
  ChannelType_SMS,
  ChannelType_VOICE,
  ChannelType'
  #-}