{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Kinesis.Types.StreamStatus
( StreamStatus
( ..,
StreamStatus_ACTIVE,
StreamStatus_CREATING,
StreamStatus_DELETING,
StreamStatus_UPDATING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype StreamStatus = StreamStatus'
{ StreamStatus -> Text
fromStreamStatus ::
Core.Text
}
deriving stock
( Int -> StreamStatus -> ShowS
[StreamStatus] -> ShowS
StreamStatus -> String
(Int -> StreamStatus -> ShowS)
-> (StreamStatus -> String)
-> ([StreamStatus] -> ShowS)
-> Show StreamStatus
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]
(Int -> ReadS StreamStatus)
-> ReadS [StreamStatus]
-> ReadPrec StreamStatus
-> ReadPrec [StreamStatus]
-> Read 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
(StreamStatus -> StreamStatus -> Bool)
-> (StreamStatus -> StreamStatus -> Bool) -> Eq StreamStatus
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
Eq StreamStatus
-> (StreamStatus -> StreamStatus -> Ordering)
-> (StreamStatus -> StreamStatus -> Bool)
-> (StreamStatus -> StreamStatus -> Bool)
-> (StreamStatus -> StreamStatus -> Bool)
-> (StreamStatus -> StreamStatus -> Bool)
-> (StreamStatus -> StreamStatus -> StreamStatus)
-> (StreamStatus -> StreamStatus -> StreamStatus)
-> Ord 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
$cp1Ord :: Eq StreamStatus
Prelude.Ord,
(forall x. StreamStatus -> Rep StreamStatus x)
-> (forall x. Rep StreamStatus x -> StreamStatus)
-> Generic StreamStatus
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
( Int -> StreamStatus -> Int
StreamStatus -> Int
(Int -> StreamStatus -> Int)
-> (StreamStatus -> Int) -> Hashable StreamStatus
forall 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 -> ()
(StreamStatus -> ()) -> NFData StreamStatus
forall a. (a -> ()) -> NFData a
rnf :: StreamStatus -> ()
$crnf :: StreamStatus -> ()
Prelude.NFData,
Text -> Either String StreamStatus
(Text -> Either String StreamStatus) -> FromText StreamStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String StreamStatus
$cfromText :: Text -> Either String StreamStatus
Core.FromText,
StreamStatus -> Text
(StreamStatus -> Text) -> ToText StreamStatus
forall a. (a -> Text) -> ToText a
toText :: StreamStatus -> Text
$ctoText :: StreamStatus -> Text
Core.ToText,
StreamStatus -> ByteString
(StreamStatus -> ByteString) -> ToByteString StreamStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: StreamStatus -> ByteString
$ctoBS :: StreamStatus -> ByteString
Core.ToByteString,
StreamStatus -> ByteStringBuilder
(StreamStatus -> ByteStringBuilder) -> ToLog StreamStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: StreamStatus -> ByteStringBuilder
$cbuild :: StreamStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> StreamStatus -> [Header]
(HeaderName -> StreamStatus -> [Header]) -> ToHeader StreamStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> StreamStatus -> [Header]
$ctoHeader :: HeaderName -> StreamStatus -> [Header]
Core.ToHeader,
StreamStatus -> QueryString
(StreamStatus -> QueryString) -> ToQuery StreamStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: StreamStatus -> QueryString
$ctoQuery :: StreamStatus -> QueryString
Core.ToQuery,
Value -> Parser [StreamStatus]
Value -> Parser StreamStatus
(Value -> Parser StreamStatus)
-> (Value -> Parser [StreamStatus]) -> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [StreamStatus]
FromJSONKeyFunction StreamStatus
FromJSONKeyFunction StreamStatus
-> FromJSONKeyFunction [StreamStatus] -> FromJSONKey StreamStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [StreamStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [StreamStatus]
fromJSONKey :: FromJSONKeyFunction StreamStatus
$cfromJSONKey :: FromJSONKeyFunction StreamStatus
Core.FromJSONKey,
[StreamStatus] -> Encoding
[StreamStatus] -> Value
StreamStatus -> Encoding
StreamStatus -> Value
(StreamStatus -> Value)
-> (StreamStatus -> Encoding)
-> ([StreamStatus] -> Value)
-> ([StreamStatus] -> Encoding)
-> ToJSON StreamStatus
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
Core.ToJSON,
ToJSONKeyFunction [StreamStatus]
ToJSONKeyFunction StreamStatus
ToJSONKeyFunction StreamStatus
-> ToJSONKeyFunction [StreamStatus] -> ToJSONKey StreamStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [StreamStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [StreamStatus]
toJSONKey :: ToJSONKeyFunction StreamStatus
$ctoJSONKey :: ToJSONKeyFunction StreamStatus
Core.ToJSONKey,
[Node] -> Either String StreamStatus
([Node] -> Either String StreamStatus) -> FromXML StreamStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String StreamStatus
$cparseXML :: [Node] -> Either String StreamStatus
Core.FromXML,
StreamStatus -> XML
(StreamStatus -> XML) -> ToXML StreamStatus
forall a. (a -> XML) -> ToXML a
toXML :: StreamStatus -> XML
$ctoXML :: StreamStatus -> XML
Core.ToXML
)
pattern StreamStatus_ACTIVE :: StreamStatus
pattern $bStreamStatus_ACTIVE :: StreamStatus
$mStreamStatus_ACTIVE :: forall r. StreamStatus -> (Void# -> r) -> (Void# -> r) -> r
StreamStatus_ACTIVE = StreamStatus' "ACTIVE"
pattern StreamStatus_CREATING :: StreamStatus
pattern $bStreamStatus_CREATING :: StreamStatus
$mStreamStatus_CREATING :: forall r. StreamStatus -> (Void# -> r) -> (Void# -> r) -> r
StreamStatus_CREATING = StreamStatus' "CREATING"
pattern StreamStatus_DELETING :: StreamStatus
pattern $bStreamStatus_DELETING :: StreamStatus
$mStreamStatus_DELETING :: forall r. StreamStatus -> (Void# -> r) -> (Void# -> r) -> r
StreamStatus_DELETING = StreamStatus' "DELETING"
pattern StreamStatus_UPDATING :: StreamStatus
pattern $bStreamStatus_UPDATING :: StreamStatus
$mStreamStatus_UPDATING :: forall r. StreamStatus -> (Void# -> r) -> (Void# -> r) -> r
StreamStatus_UPDATING = StreamStatus' "UPDATING"
{-# COMPLETE
StreamStatus_ACTIVE,
StreamStatus_CREATING,
StreamStatus_DELETING,
StreamStatus_UPDATING,
StreamStatus'
#-}