{-# 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.LexModels.Types.LexStatus
-- 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.LexModels.Types.LexStatus
  ( LexStatus
      ( ..,
        LexStatus_BUILDING,
        LexStatus_FAILED,
        LexStatus_NOT_BUILT,
        LexStatus_READY,
        LexStatus_READY_BASIC_TESTING
      ),
  )
where

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

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

pattern LexStatus_BUILDING :: LexStatus
pattern $bLexStatus_BUILDING :: LexStatus
$mLexStatus_BUILDING :: forall r. LexStatus -> (Void# -> r) -> (Void# -> r) -> r
LexStatus_BUILDING = LexStatus' "BUILDING"

pattern LexStatus_FAILED :: LexStatus
pattern $bLexStatus_FAILED :: LexStatus
$mLexStatus_FAILED :: forall r. LexStatus -> (Void# -> r) -> (Void# -> r) -> r
LexStatus_FAILED = LexStatus' "FAILED"

pattern LexStatus_NOT_BUILT :: LexStatus
pattern $bLexStatus_NOT_BUILT :: LexStatus
$mLexStatus_NOT_BUILT :: forall r. LexStatus -> (Void# -> r) -> (Void# -> r) -> r
LexStatus_NOT_BUILT = LexStatus' "NOT_BUILT"

pattern LexStatus_READY :: LexStatus
pattern $bLexStatus_READY :: LexStatus
$mLexStatus_READY :: forall r. LexStatus -> (Void# -> r) -> (Void# -> r) -> r
LexStatus_READY = LexStatus' "READY"

pattern LexStatus_READY_BASIC_TESTING :: LexStatus
pattern $bLexStatus_READY_BASIC_TESTING :: LexStatus
$mLexStatus_READY_BASIC_TESTING :: forall r. LexStatus -> (Void# -> r) -> (Void# -> r) -> r
LexStatus_READY_BASIC_TESTING = LexStatus' "READY_BASIC_TESTING"

{-# COMPLETE
  LexStatus_BUILDING,
  LexStatus_FAILED,
  LexStatus_NOT_BUILT,
  LexStatus_READY,
  LexStatus_READY_BASIC_TESTING,
  LexStatus'
  #-}