{-# 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.ContactType
-- 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.ContactType
  ( ContactType
      ( ..,
        ContactType_ESCALATION,
        ContactType_PERSONAL
      ),
  )
where

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

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

pattern ContactType_ESCALATION :: ContactType
pattern $bContactType_ESCALATION :: ContactType
$mContactType_ESCALATION :: forall {r}. ContactType -> ((# #) -> r) -> ((# #) -> r) -> r
ContactType_ESCALATION = ContactType' "ESCALATION"

pattern ContactType_PERSONAL :: ContactType
pattern $bContactType_PERSONAL :: ContactType
$mContactType_PERSONAL :: forall {r}. ContactType -> ((# #) -> r) -> ((# #) -> r) -> r
ContactType_PERSONAL = ContactType' "PERSONAL"

{-# COMPLETE
  ContactType_ESCALATION,
  ContactType_PERSONAL,
  ContactType'
  #-}