{-# 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.VocabularyState
-- 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.VocabularyState
  ( VocabularyState
      ( ..,
        VocabularyState_ACTIVE,
        VocabularyState_CREATION_FAILED,
        VocabularyState_CREATION_IN_PROGRESS,
        VocabularyState_DELETE_IN_PROGRESS
      ),
  )
where

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

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

pattern VocabularyState_ACTIVE :: VocabularyState
pattern $bVocabularyState_ACTIVE :: VocabularyState
$mVocabularyState_ACTIVE :: forall {r}. VocabularyState -> ((# #) -> r) -> ((# #) -> r) -> r
VocabularyState_ACTIVE = VocabularyState' "ACTIVE"

pattern VocabularyState_CREATION_FAILED :: VocabularyState
pattern $bVocabularyState_CREATION_FAILED :: VocabularyState
$mVocabularyState_CREATION_FAILED :: forall {r}. VocabularyState -> ((# #) -> r) -> ((# #) -> r) -> r
VocabularyState_CREATION_FAILED = VocabularyState' "CREATION_FAILED"

pattern VocabularyState_CREATION_IN_PROGRESS :: VocabularyState
pattern $bVocabularyState_CREATION_IN_PROGRESS :: VocabularyState
$mVocabularyState_CREATION_IN_PROGRESS :: forall {r}. VocabularyState -> ((# #) -> r) -> ((# #) -> r) -> r
VocabularyState_CREATION_IN_PROGRESS = VocabularyState' "CREATION_IN_PROGRESS"

pattern VocabularyState_DELETE_IN_PROGRESS :: VocabularyState
pattern $bVocabularyState_DELETE_IN_PROGRESS :: VocabularyState
$mVocabularyState_DELETE_IN_PROGRESS :: forall {r}. VocabularyState -> ((# #) -> r) -> ((# #) -> r) -> r
VocabularyState_DELETE_IN_PROGRESS = VocabularyState' "DELETE_IN_PROGRESS"

{-# COMPLETE
  VocabularyState_ACTIVE,
  VocabularyState_CREATION_FAILED,
  VocabularyState_CREATION_IN_PROGRESS,
  VocabularyState_DELETE_IN_PROGRESS,
  VocabularyState'
  #-}