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

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

newtype ActivityStreamStatus = ActivityStreamStatus'
  { ActivityStreamStatus -> Text
fromActivityStreamStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> ActivityStreamStatus -> ShowS
[ActivityStreamStatus] -> ShowS
ActivityStreamStatus -> String
(Int -> ActivityStreamStatus -> ShowS)
-> (ActivityStreamStatus -> String)
-> ([ActivityStreamStatus] -> ShowS)
-> Show ActivityStreamStatus
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]
(Int -> ReadS ActivityStreamStatus)
-> ReadS [ActivityStreamStatus]
-> ReadPrec ActivityStreamStatus
-> ReadPrec [ActivityStreamStatus]
-> Read 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
(ActivityStreamStatus -> ActivityStreamStatus -> Bool)
-> (ActivityStreamStatus -> ActivityStreamStatus -> Bool)
-> Eq ActivityStreamStatus
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
Eq ActivityStreamStatus
-> (ActivityStreamStatus -> ActivityStreamStatus -> Ordering)
-> (ActivityStreamStatus -> ActivityStreamStatus -> Bool)
-> (ActivityStreamStatus -> ActivityStreamStatus -> Bool)
-> (ActivityStreamStatus -> ActivityStreamStatus -> Bool)
-> (ActivityStreamStatus -> ActivityStreamStatus -> Bool)
-> (ActivityStreamStatus
    -> ActivityStreamStatus -> ActivityStreamStatus)
-> (ActivityStreamStatus
    -> ActivityStreamStatus -> ActivityStreamStatus)
-> Ord 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
$cp1Ord :: Eq ActivityStreamStatus
Prelude.Ord,
      (forall x. ActivityStreamStatus -> Rep ActivityStreamStatus x)
-> (forall x. Rep ActivityStreamStatus x -> ActivityStreamStatus)
-> Generic ActivityStreamStatus
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
    ( Int -> ActivityStreamStatus -> Int
ActivityStreamStatus -> Int
(Int -> ActivityStreamStatus -> Int)
-> (ActivityStreamStatus -> Int) -> Hashable ActivityStreamStatus
forall 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 -> ()
(ActivityStreamStatus -> ()) -> NFData ActivityStreamStatus
forall a. (a -> ()) -> NFData a
rnf :: ActivityStreamStatus -> ()
$crnf :: ActivityStreamStatus -> ()
Prelude.NFData,
      Text -> Either String ActivityStreamStatus
(Text -> Either String ActivityStreamStatus)
-> FromText ActivityStreamStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ActivityStreamStatus
$cfromText :: Text -> Either String ActivityStreamStatus
Core.FromText,
      ActivityStreamStatus -> Text
(ActivityStreamStatus -> Text) -> ToText ActivityStreamStatus
forall a. (a -> Text) -> ToText a
toText :: ActivityStreamStatus -> Text
$ctoText :: ActivityStreamStatus -> Text
Core.ToText,
      ActivityStreamStatus -> ByteString
(ActivityStreamStatus -> ByteString)
-> ToByteString ActivityStreamStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ActivityStreamStatus -> ByteString
$ctoBS :: ActivityStreamStatus -> ByteString
Core.ToByteString,
      ActivityStreamStatus -> ByteStringBuilder
(ActivityStreamStatus -> ByteStringBuilder)
-> ToLog ActivityStreamStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ActivityStreamStatus -> ByteStringBuilder
$cbuild :: ActivityStreamStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ActivityStreamStatus -> [Header]
(HeaderName -> ActivityStreamStatus -> [Header])
-> ToHeader ActivityStreamStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ActivityStreamStatus -> [Header]
$ctoHeader :: HeaderName -> ActivityStreamStatus -> [Header]
Core.ToHeader,
      ActivityStreamStatus -> QueryString
(ActivityStreamStatus -> QueryString)
-> ToQuery ActivityStreamStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ActivityStreamStatus -> QueryString
$ctoQuery :: ActivityStreamStatus -> QueryString
Core.ToQuery,
      Value -> Parser [ActivityStreamStatus]
Value -> Parser ActivityStreamStatus
(Value -> Parser ActivityStreamStatus)
-> (Value -> Parser [ActivityStreamStatus])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ActivityStreamStatus]
FromJSONKeyFunction ActivityStreamStatus
FromJSONKeyFunction ActivityStreamStatus
-> FromJSONKeyFunction [ActivityStreamStatus]
-> FromJSONKey ActivityStreamStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ActivityStreamStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ActivityStreamStatus]
fromJSONKey :: FromJSONKeyFunction ActivityStreamStatus
$cfromJSONKey :: FromJSONKeyFunction ActivityStreamStatus
Core.FromJSONKey,
      [ActivityStreamStatus] -> Encoding
[ActivityStreamStatus] -> Value
ActivityStreamStatus -> Encoding
ActivityStreamStatus -> Value
(ActivityStreamStatus -> Value)
-> (ActivityStreamStatus -> Encoding)
-> ([ActivityStreamStatus] -> Value)
-> ([ActivityStreamStatus] -> Encoding)
-> ToJSON ActivityStreamStatus
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
Core.ToJSON,
      ToJSONKeyFunction [ActivityStreamStatus]
ToJSONKeyFunction ActivityStreamStatus
ToJSONKeyFunction ActivityStreamStatus
-> ToJSONKeyFunction [ActivityStreamStatus]
-> ToJSONKey ActivityStreamStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ActivityStreamStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ActivityStreamStatus]
toJSONKey :: ToJSONKeyFunction ActivityStreamStatus
$ctoJSONKey :: ToJSONKeyFunction ActivityStreamStatus
Core.ToJSONKey,
      [Node] -> Either String ActivityStreamStatus
([Node] -> Either String ActivityStreamStatus)
-> FromXML ActivityStreamStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ActivityStreamStatus
$cparseXML :: [Node] -> Either String ActivityStreamStatus
Core.FromXML,
      ActivityStreamStatus -> XML
(ActivityStreamStatus -> XML) -> ToXML ActivityStreamStatus
forall a. (a -> XML) -> ToXML a
toXML :: ActivityStreamStatus -> XML
$ctoXML :: ActivityStreamStatus -> XML
Core.ToXML
    )

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

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

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

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

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