{-# 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.Wisdom.Types.KnowledgeBaseStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Wisdom.Types.KnowledgeBaseStatus
  ( KnowledgeBaseStatus
      ( ..,
        KnowledgeBaseStatus_ACTIVE,
        KnowledgeBaseStatus_CREATE_FAILED,
        KnowledgeBaseStatus_CREATE_IN_PROGRESS,
        KnowledgeBaseStatus_DELETED,
        KnowledgeBaseStatus_DELETE_FAILED,
        KnowledgeBaseStatus_DELETE_IN_PROGRESS
      ),
  )
where

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

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

pattern KnowledgeBaseStatus_ACTIVE :: KnowledgeBaseStatus
pattern $bKnowledgeBaseStatus_ACTIVE :: KnowledgeBaseStatus
$mKnowledgeBaseStatus_ACTIVE :: forall r. KnowledgeBaseStatus -> (Void# -> r) -> (Void# -> r) -> r
KnowledgeBaseStatus_ACTIVE = KnowledgeBaseStatus' "ACTIVE"

pattern KnowledgeBaseStatus_CREATE_FAILED :: KnowledgeBaseStatus
pattern $bKnowledgeBaseStatus_CREATE_FAILED :: KnowledgeBaseStatus
$mKnowledgeBaseStatus_CREATE_FAILED :: forall r. KnowledgeBaseStatus -> (Void# -> r) -> (Void# -> r) -> r
KnowledgeBaseStatus_CREATE_FAILED = KnowledgeBaseStatus' "CREATE_FAILED"

pattern KnowledgeBaseStatus_CREATE_IN_PROGRESS :: KnowledgeBaseStatus
pattern $bKnowledgeBaseStatus_CREATE_IN_PROGRESS :: KnowledgeBaseStatus
$mKnowledgeBaseStatus_CREATE_IN_PROGRESS :: forall r. KnowledgeBaseStatus -> (Void# -> r) -> (Void# -> r) -> r
KnowledgeBaseStatus_CREATE_IN_PROGRESS = KnowledgeBaseStatus' "CREATE_IN_PROGRESS"

pattern KnowledgeBaseStatus_DELETED :: KnowledgeBaseStatus
pattern $bKnowledgeBaseStatus_DELETED :: KnowledgeBaseStatus
$mKnowledgeBaseStatus_DELETED :: forall r. KnowledgeBaseStatus -> (Void# -> r) -> (Void# -> r) -> r
KnowledgeBaseStatus_DELETED = KnowledgeBaseStatus' "DELETED"

pattern KnowledgeBaseStatus_DELETE_FAILED :: KnowledgeBaseStatus
pattern $bKnowledgeBaseStatus_DELETE_FAILED :: KnowledgeBaseStatus
$mKnowledgeBaseStatus_DELETE_FAILED :: forall r. KnowledgeBaseStatus -> (Void# -> r) -> (Void# -> r) -> r
KnowledgeBaseStatus_DELETE_FAILED = KnowledgeBaseStatus' "DELETE_FAILED"

pattern KnowledgeBaseStatus_DELETE_IN_PROGRESS :: KnowledgeBaseStatus
pattern $bKnowledgeBaseStatus_DELETE_IN_PROGRESS :: KnowledgeBaseStatus
$mKnowledgeBaseStatus_DELETE_IN_PROGRESS :: forall r. KnowledgeBaseStatus -> (Void# -> r) -> (Void# -> r) -> r
KnowledgeBaseStatus_DELETE_IN_PROGRESS = KnowledgeBaseStatus' "DELETE_IN_PROGRESS"

{-# COMPLETE
  KnowledgeBaseStatus_ACTIVE,
  KnowledgeBaseStatus_CREATE_FAILED,
  KnowledgeBaseStatus_CREATE_IN_PROGRESS,
  KnowledgeBaseStatus_DELETED,
  KnowledgeBaseStatus_DELETE_FAILED,
  KnowledgeBaseStatus_DELETE_IN_PROGRESS,
  KnowledgeBaseStatus'
  #-}