{-# 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.QLDB.Types.StreamStatus
-- 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.QLDB.Types.StreamStatus
  ( StreamStatus
      ( ..,
        StreamStatus_ACTIVE,
        StreamStatus_CANCELED,
        StreamStatus_COMPLETED,
        StreamStatus_FAILED,
        StreamStatus_IMPAIRED
      ),
  )
where

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

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

pattern StreamStatus_ACTIVE :: StreamStatus
pattern $bStreamStatus_ACTIVE :: StreamStatus
$mStreamStatus_ACTIVE :: forall {r}. StreamStatus -> ((# #) -> r) -> ((# #) -> r) -> r
StreamStatus_ACTIVE = StreamStatus' "ACTIVE"

pattern StreamStatus_CANCELED :: StreamStatus
pattern $bStreamStatus_CANCELED :: StreamStatus
$mStreamStatus_CANCELED :: forall {r}. StreamStatus -> ((# #) -> r) -> ((# #) -> r) -> r
StreamStatus_CANCELED = StreamStatus' "CANCELED"

pattern StreamStatus_COMPLETED :: StreamStatus
pattern $bStreamStatus_COMPLETED :: StreamStatus
$mStreamStatus_COMPLETED :: forall {r}. StreamStatus -> ((# #) -> r) -> ((# #) -> r) -> r
StreamStatus_COMPLETED = StreamStatus' "COMPLETED"

pattern StreamStatus_FAILED :: StreamStatus
pattern $bStreamStatus_FAILED :: StreamStatus
$mStreamStatus_FAILED :: forall {r}. StreamStatus -> ((# #) -> r) -> ((# #) -> r) -> r
StreamStatus_FAILED = StreamStatus' "FAILED"

pattern StreamStatus_IMPAIRED :: StreamStatus
pattern $bStreamStatus_IMPAIRED :: StreamStatus
$mStreamStatus_IMPAIRED :: forall {r}. StreamStatus -> ((# #) -> r) -> ((# #) -> r) -> r
StreamStatus_IMPAIRED = StreamStatus' "IMPAIRED"

{-# COMPLETE
  StreamStatus_ACTIVE,
  StreamStatus_CANCELED,
  StreamStatus_COMPLETED,
  StreamStatus_FAILED,
  StreamStatus_IMPAIRED,
  StreamStatus'
  #-}