{-# 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.RDS.Types.ActivityStreamStatus
-- 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.RDS.Types.ActivityStreamStatus
  ( ActivityStreamStatus
      ( ..,
        ActivityStreamStatus_Started,
        ActivityStreamStatus_Starting,
        ActivityStreamStatus_Stopped,
        ActivityStreamStatus_Stopping
      ),
  )
where

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

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

pattern ActivityStreamStatus_Started :: ActivityStreamStatus
pattern $bActivityStreamStatus_Started :: ActivityStreamStatus
$mActivityStreamStatus_Started :: forall {r}.
ActivityStreamStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ActivityStreamStatus_Started = ActivityStreamStatus' "started"

pattern ActivityStreamStatus_Starting :: ActivityStreamStatus
pattern $bActivityStreamStatus_Starting :: ActivityStreamStatus
$mActivityStreamStatus_Starting :: forall {r}.
ActivityStreamStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ActivityStreamStatus_Starting = ActivityStreamStatus' "starting"

pattern ActivityStreamStatus_Stopped :: ActivityStreamStatus
pattern $bActivityStreamStatus_Stopped :: ActivityStreamStatus
$mActivityStreamStatus_Stopped :: forall {r}.
ActivityStreamStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ActivityStreamStatus_Stopped = ActivityStreamStatus' "stopped"

pattern ActivityStreamStatus_Stopping :: ActivityStreamStatus
pattern $bActivityStreamStatus_Stopping :: ActivityStreamStatus
$mActivityStreamStatus_Stopping :: forall {r}.
ActivityStreamStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ActivityStreamStatus_Stopping = ActivityStreamStatus' "stopping"

{-# COMPLETE
  ActivityStreamStatus_Started,
  ActivityStreamStatus_Starting,
  ActivityStreamStatus_Stopped,
  ActivityStreamStatus_Stopping,
  ActivityStreamStatus'
  #-}