{-# 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.Kendra.Types.FaqStatus
-- 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.Kendra.Types.FaqStatus
  ( FaqStatus
      ( ..,
        FaqStatus_ACTIVE,
        FaqStatus_CREATING,
        FaqStatus_DELETING,
        FaqStatus_FAILED,
        FaqStatus_UPDATING
      ),
  )
where

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

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

pattern FaqStatus_ACTIVE :: FaqStatus
pattern $bFaqStatus_ACTIVE :: FaqStatus
$mFaqStatus_ACTIVE :: forall {r}. FaqStatus -> ((# #) -> r) -> ((# #) -> r) -> r
FaqStatus_ACTIVE = FaqStatus' "ACTIVE"

pattern FaqStatus_CREATING :: FaqStatus
pattern $bFaqStatus_CREATING :: FaqStatus
$mFaqStatus_CREATING :: forall {r}. FaqStatus -> ((# #) -> r) -> ((# #) -> r) -> r
FaqStatus_CREATING = FaqStatus' "CREATING"

pattern FaqStatus_DELETING :: FaqStatus
pattern $bFaqStatus_DELETING :: FaqStatus
$mFaqStatus_DELETING :: forall {r}. FaqStatus -> ((# #) -> r) -> ((# #) -> r) -> r
FaqStatus_DELETING = FaqStatus' "DELETING"

pattern FaqStatus_FAILED :: FaqStatus
pattern $bFaqStatus_FAILED :: FaqStatus
$mFaqStatus_FAILED :: forall {r}. FaqStatus -> ((# #) -> r) -> ((# #) -> r) -> r
FaqStatus_FAILED = FaqStatus' "FAILED"

pattern FaqStatus_UPDATING :: FaqStatus
pattern $bFaqStatus_UPDATING :: FaqStatus
$mFaqStatus_UPDATING :: forall {r}. FaqStatus -> ((# #) -> r) -> ((# #) -> r) -> r
FaqStatus_UPDATING = FaqStatus' "UPDATING"

{-# COMPLETE
  FaqStatus_ACTIVE,
  FaqStatus_CREATING,
  FaqStatus_DELETING,
  FaqStatus_FAILED,
  FaqStatus_UPDATING,
  FaqStatus'
  #-}