{-# 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.LexV2Models.Types.BotLocaleStatus
-- 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.LexV2Models.Types.BotLocaleStatus
  ( BotLocaleStatus
      ( ..,
        BotLocaleStatus_Building,
        BotLocaleStatus_Built,
        BotLocaleStatus_Creating,
        BotLocaleStatus_Deleting,
        BotLocaleStatus_Failed,
        BotLocaleStatus_Importing,
        BotLocaleStatus_NotBuilt,
        BotLocaleStatus_Processing,
        BotLocaleStatus_ReadyExpressTesting
      ),
  )
where

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

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

pattern BotLocaleStatus_Building :: BotLocaleStatus
pattern $bBotLocaleStatus_Building :: BotLocaleStatus
$mBotLocaleStatus_Building :: forall {r}. BotLocaleStatus -> ((# #) -> r) -> ((# #) -> r) -> r
BotLocaleStatus_Building = BotLocaleStatus' "Building"

pattern BotLocaleStatus_Built :: BotLocaleStatus
pattern $bBotLocaleStatus_Built :: BotLocaleStatus
$mBotLocaleStatus_Built :: forall {r}. BotLocaleStatus -> ((# #) -> r) -> ((# #) -> r) -> r
BotLocaleStatus_Built = BotLocaleStatus' "Built"

pattern BotLocaleStatus_Creating :: BotLocaleStatus
pattern $bBotLocaleStatus_Creating :: BotLocaleStatus
$mBotLocaleStatus_Creating :: forall {r}. BotLocaleStatus -> ((# #) -> r) -> ((# #) -> r) -> r
BotLocaleStatus_Creating = BotLocaleStatus' "Creating"

pattern BotLocaleStatus_Deleting :: BotLocaleStatus
pattern $bBotLocaleStatus_Deleting :: BotLocaleStatus
$mBotLocaleStatus_Deleting :: forall {r}. BotLocaleStatus -> ((# #) -> r) -> ((# #) -> r) -> r
BotLocaleStatus_Deleting = BotLocaleStatus' "Deleting"

pattern BotLocaleStatus_Failed :: BotLocaleStatus
pattern $bBotLocaleStatus_Failed :: BotLocaleStatus
$mBotLocaleStatus_Failed :: forall {r}. BotLocaleStatus -> ((# #) -> r) -> ((# #) -> r) -> r
BotLocaleStatus_Failed = BotLocaleStatus' "Failed"

pattern BotLocaleStatus_Importing :: BotLocaleStatus
pattern $bBotLocaleStatus_Importing :: BotLocaleStatus
$mBotLocaleStatus_Importing :: forall {r}. BotLocaleStatus -> ((# #) -> r) -> ((# #) -> r) -> r
BotLocaleStatus_Importing = BotLocaleStatus' "Importing"

pattern BotLocaleStatus_NotBuilt :: BotLocaleStatus
pattern $bBotLocaleStatus_NotBuilt :: BotLocaleStatus
$mBotLocaleStatus_NotBuilt :: forall {r}. BotLocaleStatus -> ((# #) -> r) -> ((# #) -> r) -> r
BotLocaleStatus_NotBuilt = BotLocaleStatus' "NotBuilt"

pattern BotLocaleStatus_Processing :: BotLocaleStatus
pattern $bBotLocaleStatus_Processing :: BotLocaleStatus
$mBotLocaleStatus_Processing :: forall {r}. BotLocaleStatus -> ((# #) -> r) -> ((# #) -> r) -> r
BotLocaleStatus_Processing = BotLocaleStatus' "Processing"

pattern BotLocaleStatus_ReadyExpressTesting :: BotLocaleStatus
pattern $bBotLocaleStatus_ReadyExpressTesting :: BotLocaleStatus
$mBotLocaleStatus_ReadyExpressTesting :: forall {r}. BotLocaleStatus -> ((# #) -> r) -> ((# #) -> r) -> r
BotLocaleStatus_ReadyExpressTesting = BotLocaleStatus' "ReadyExpressTesting"

{-# COMPLETE
  BotLocaleStatus_Building,
  BotLocaleStatus_Built,
  BotLocaleStatus_Creating,
  BotLocaleStatus_Deleting,
  BotLocaleStatus_Failed,
  BotLocaleStatus_Importing,
  BotLocaleStatus_NotBuilt,
  BotLocaleStatus_Processing,
  BotLocaleStatus_ReadyExpressTesting,
  BotLocaleStatus'
  #-}