{-# 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.Connect.Types.ContactFlowModuleStatus
-- 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.Connect.Types.ContactFlowModuleStatus
  ( ContactFlowModuleStatus
      ( ..,
        ContactFlowModuleStatus_PUBLISHED,
        ContactFlowModuleStatus_SAVED
      ),
  )
where

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

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

pattern ContactFlowModuleStatus_PUBLISHED :: ContactFlowModuleStatus
pattern $bContactFlowModuleStatus_PUBLISHED :: ContactFlowModuleStatus
$mContactFlowModuleStatus_PUBLISHED :: forall {r}.
ContactFlowModuleStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ContactFlowModuleStatus_PUBLISHED = ContactFlowModuleStatus' "PUBLISHED"

pattern ContactFlowModuleStatus_SAVED :: ContactFlowModuleStatus
pattern $bContactFlowModuleStatus_SAVED :: ContactFlowModuleStatus
$mContactFlowModuleStatus_SAVED :: forall {r}.
ContactFlowModuleStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ContactFlowModuleStatus_SAVED = ContactFlowModuleStatus' "SAVED"

{-# COMPLETE
  ContactFlowModuleStatus_PUBLISHED,
  ContactFlowModuleStatus_SAVED,
  ContactFlowModuleStatus'
  #-}