{-# 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.ContactFlowModuleState
-- 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.ContactFlowModuleState
  ( ContactFlowModuleState
      ( ..,
        ContactFlowModuleState_ACTIVE,
        ContactFlowModuleState_ARCHIVED
      ),
  )
where

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

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

pattern ContactFlowModuleState_ACTIVE :: ContactFlowModuleState
pattern $bContactFlowModuleState_ACTIVE :: ContactFlowModuleState
$mContactFlowModuleState_ACTIVE :: forall {r}.
ContactFlowModuleState -> ((# #) -> r) -> ((# #) -> r) -> r
ContactFlowModuleState_ACTIVE = ContactFlowModuleState' "ACTIVE"

pattern ContactFlowModuleState_ARCHIVED :: ContactFlowModuleState
pattern $bContactFlowModuleState_ARCHIVED :: ContactFlowModuleState
$mContactFlowModuleState_ARCHIVED :: forall {r}.
ContactFlowModuleState -> ((# #) -> r) -> ((# #) -> r) -> r
ContactFlowModuleState_ARCHIVED = ContactFlowModuleState' "ARCHIVED"

{-# COMPLETE
  ContactFlowModuleState_ACTIVE,
  ContactFlowModuleState_ARCHIVED,
  ContactFlowModuleState'
  #-}