{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Nimble.Types.StreamingSessionStreamState
( StreamingSessionStreamState
( ..,
StreamingSessionStreamState_CREATE_FAILED,
StreamingSessionStreamState_CREATE_IN_PROGRESS,
StreamingSessionStreamState_DELETED,
StreamingSessionStreamState_DELETE_FAILED,
StreamingSessionStreamState_DELETE_IN_PROGRESS,
StreamingSessionStreamState_READY
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype StreamingSessionStreamState = StreamingSessionStreamState'
{ StreamingSessionStreamState -> Text
fromStreamingSessionStreamState ::
Core.Text
}
deriving stock
( Int -> StreamingSessionStreamState -> ShowS
[StreamingSessionStreamState] -> ShowS
StreamingSessionStreamState -> String
(Int -> StreamingSessionStreamState -> ShowS)
-> (StreamingSessionStreamState -> String)
-> ([StreamingSessionStreamState] -> ShowS)
-> Show StreamingSessionStreamState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StreamingSessionStreamState] -> ShowS
$cshowList :: [StreamingSessionStreamState] -> ShowS
show :: StreamingSessionStreamState -> String
$cshow :: StreamingSessionStreamState -> String
showsPrec :: Int -> StreamingSessionStreamState -> ShowS
$cshowsPrec :: Int -> StreamingSessionStreamState -> ShowS
Prelude.Show,
ReadPrec [StreamingSessionStreamState]
ReadPrec StreamingSessionStreamState
Int -> ReadS StreamingSessionStreamState
ReadS [StreamingSessionStreamState]
(Int -> ReadS StreamingSessionStreamState)
-> ReadS [StreamingSessionStreamState]
-> ReadPrec StreamingSessionStreamState
-> ReadPrec [StreamingSessionStreamState]
-> Read StreamingSessionStreamState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StreamingSessionStreamState]
$creadListPrec :: ReadPrec [StreamingSessionStreamState]
readPrec :: ReadPrec StreamingSessionStreamState
$creadPrec :: ReadPrec StreamingSessionStreamState
readList :: ReadS [StreamingSessionStreamState]
$creadList :: ReadS [StreamingSessionStreamState]
readsPrec :: Int -> ReadS StreamingSessionStreamState
$creadsPrec :: Int -> ReadS StreamingSessionStreamState
Prelude.Read,
StreamingSessionStreamState -> StreamingSessionStreamState -> Bool
(StreamingSessionStreamState
-> StreamingSessionStreamState -> Bool)
-> (StreamingSessionStreamState
-> StreamingSessionStreamState -> Bool)
-> Eq StreamingSessionStreamState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StreamingSessionStreamState -> StreamingSessionStreamState -> Bool
$c/= :: StreamingSessionStreamState -> StreamingSessionStreamState -> Bool
== :: StreamingSessionStreamState -> StreamingSessionStreamState -> Bool
$c== :: StreamingSessionStreamState -> StreamingSessionStreamState -> Bool
Prelude.Eq,
Eq StreamingSessionStreamState
Eq StreamingSessionStreamState
-> (StreamingSessionStreamState
-> StreamingSessionStreamState -> Ordering)
-> (StreamingSessionStreamState
-> StreamingSessionStreamState -> Bool)
-> (StreamingSessionStreamState
-> StreamingSessionStreamState -> Bool)
-> (StreamingSessionStreamState
-> StreamingSessionStreamState -> Bool)
-> (StreamingSessionStreamState
-> StreamingSessionStreamState -> Bool)
-> (StreamingSessionStreamState
-> StreamingSessionStreamState -> StreamingSessionStreamState)
-> (StreamingSessionStreamState
-> StreamingSessionStreamState -> StreamingSessionStreamState)
-> Ord StreamingSessionStreamState
StreamingSessionStreamState -> StreamingSessionStreamState -> Bool
StreamingSessionStreamState
-> StreamingSessionStreamState -> Ordering
StreamingSessionStreamState
-> StreamingSessionStreamState -> StreamingSessionStreamState
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 :: StreamingSessionStreamState
-> StreamingSessionStreamState -> StreamingSessionStreamState
$cmin :: StreamingSessionStreamState
-> StreamingSessionStreamState -> StreamingSessionStreamState
max :: StreamingSessionStreamState
-> StreamingSessionStreamState -> StreamingSessionStreamState
$cmax :: StreamingSessionStreamState
-> StreamingSessionStreamState -> StreamingSessionStreamState
>= :: StreamingSessionStreamState -> StreamingSessionStreamState -> Bool
$c>= :: StreamingSessionStreamState -> StreamingSessionStreamState -> Bool
> :: StreamingSessionStreamState -> StreamingSessionStreamState -> Bool
$c> :: StreamingSessionStreamState -> StreamingSessionStreamState -> Bool
<= :: StreamingSessionStreamState -> StreamingSessionStreamState -> Bool
$c<= :: StreamingSessionStreamState -> StreamingSessionStreamState -> Bool
< :: StreamingSessionStreamState -> StreamingSessionStreamState -> Bool
$c< :: StreamingSessionStreamState -> StreamingSessionStreamState -> Bool
compare :: StreamingSessionStreamState
-> StreamingSessionStreamState -> Ordering
$ccompare :: StreamingSessionStreamState
-> StreamingSessionStreamState -> Ordering
$cp1Ord :: Eq StreamingSessionStreamState
Prelude.Ord,
(forall x.
StreamingSessionStreamState -> Rep StreamingSessionStreamState x)
-> (forall x.
Rep StreamingSessionStreamState x -> StreamingSessionStreamState)
-> Generic StreamingSessionStreamState
forall x.
Rep StreamingSessionStreamState x -> StreamingSessionStreamState
forall x.
StreamingSessionStreamState -> Rep StreamingSessionStreamState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StreamingSessionStreamState x -> StreamingSessionStreamState
$cfrom :: forall x.
StreamingSessionStreamState -> Rep StreamingSessionStreamState x
Prelude.Generic
)
deriving newtype
( Int -> StreamingSessionStreamState -> Int
StreamingSessionStreamState -> Int
(Int -> StreamingSessionStreamState -> Int)
-> (StreamingSessionStreamState -> Int)
-> Hashable StreamingSessionStreamState
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: StreamingSessionStreamState -> Int
$chash :: StreamingSessionStreamState -> Int
hashWithSalt :: Int -> StreamingSessionStreamState -> Int
$chashWithSalt :: Int -> StreamingSessionStreamState -> Int
Prelude.Hashable,
StreamingSessionStreamState -> ()
(StreamingSessionStreamState -> ())
-> NFData StreamingSessionStreamState
forall a. (a -> ()) -> NFData a
rnf :: StreamingSessionStreamState -> ()
$crnf :: StreamingSessionStreamState -> ()
Prelude.NFData,
Text -> Either String StreamingSessionStreamState
(Text -> Either String StreamingSessionStreamState)
-> FromText StreamingSessionStreamState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String StreamingSessionStreamState
$cfromText :: Text -> Either String StreamingSessionStreamState
Core.FromText,
StreamingSessionStreamState -> Text
(StreamingSessionStreamState -> Text)
-> ToText StreamingSessionStreamState
forall a. (a -> Text) -> ToText a
toText :: StreamingSessionStreamState -> Text
$ctoText :: StreamingSessionStreamState -> Text
Core.ToText,
StreamingSessionStreamState -> ByteString
(StreamingSessionStreamState -> ByteString)
-> ToByteString StreamingSessionStreamState
forall a. (a -> ByteString) -> ToByteString a
toBS :: StreamingSessionStreamState -> ByteString
$ctoBS :: StreamingSessionStreamState -> ByteString
Core.ToByteString,
StreamingSessionStreamState -> ByteStringBuilder
(StreamingSessionStreamState -> ByteStringBuilder)
-> ToLog StreamingSessionStreamState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: StreamingSessionStreamState -> ByteStringBuilder
$cbuild :: StreamingSessionStreamState -> ByteStringBuilder
Core.ToLog,
HeaderName -> StreamingSessionStreamState -> [Header]
(HeaderName -> StreamingSessionStreamState -> [Header])
-> ToHeader StreamingSessionStreamState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> StreamingSessionStreamState -> [Header]
$ctoHeader :: HeaderName -> StreamingSessionStreamState -> [Header]
Core.ToHeader,
StreamingSessionStreamState -> QueryString
(StreamingSessionStreamState -> QueryString)
-> ToQuery StreamingSessionStreamState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: StreamingSessionStreamState -> QueryString
$ctoQuery :: StreamingSessionStreamState -> QueryString
Core.ToQuery,
Value -> Parser [StreamingSessionStreamState]
Value -> Parser StreamingSessionStreamState
(Value -> Parser StreamingSessionStreamState)
-> (Value -> Parser [StreamingSessionStreamState])
-> FromJSON StreamingSessionStreamState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [StreamingSessionStreamState]
$cparseJSONList :: Value -> Parser [StreamingSessionStreamState]
parseJSON :: Value -> Parser StreamingSessionStreamState
$cparseJSON :: Value -> Parser StreamingSessionStreamState
Core.FromJSON,
FromJSONKeyFunction [StreamingSessionStreamState]
FromJSONKeyFunction StreamingSessionStreamState
FromJSONKeyFunction StreamingSessionStreamState
-> FromJSONKeyFunction [StreamingSessionStreamState]
-> FromJSONKey StreamingSessionStreamState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [StreamingSessionStreamState]
$cfromJSONKeyList :: FromJSONKeyFunction [StreamingSessionStreamState]
fromJSONKey :: FromJSONKeyFunction StreamingSessionStreamState
$cfromJSONKey :: FromJSONKeyFunction StreamingSessionStreamState
Core.FromJSONKey,
[StreamingSessionStreamState] -> Encoding
[StreamingSessionStreamState] -> Value
StreamingSessionStreamState -> Encoding
StreamingSessionStreamState -> Value
(StreamingSessionStreamState -> Value)
-> (StreamingSessionStreamState -> Encoding)
-> ([StreamingSessionStreamState] -> Value)
-> ([StreamingSessionStreamState] -> Encoding)
-> ToJSON StreamingSessionStreamState
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [StreamingSessionStreamState] -> Encoding
$ctoEncodingList :: [StreamingSessionStreamState] -> Encoding
toJSONList :: [StreamingSessionStreamState] -> Value
$ctoJSONList :: [StreamingSessionStreamState] -> Value
toEncoding :: StreamingSessionStreamState -> Encoding
$ctoEncoding :: StreamingSessionStreamState -> Encoding
toJSON :: StreamingSessionStreamState -> Value
$ctoJSON :: StreamingSessionStreamState -> Value
Core.ToJSON,
ToJSONKeyFunction [StreamingSessionStreamState]
ToJSONKeyFunction StreamingSessionStreamState
ToJSONKeyFunction StreamingSessionStreamState
-> ToJSONKeyFunction [StreamingSessionStreamState]
-> ToJSONKey StreamingSessionStreamState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [StreamingSessionStreamState]
$ctoJSONKeyList :: ToJSONKeyFunction [StreamingSessionStreamState]
toJSONKey :: ToJSONKeyFunction StreamingSessionStreamState
$ctoJSONKey :: ToJSONKeyFunction StreamingSessionStreamState
Core.ToJSONKey,
[Node] -> Either String StreamingSessionStreamState
([Node] -> Either String StreamingSessionStreamState)
-> FromXML StreamingSessionStreamState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String StreamingSessionStreamState
$cparseXML :: [Node] -> Either String StreamingSessionStreamState
Core.FromXML,
StreamingSessionStreamState -> XML
(StreamingSessionStreamState -> XML)
-> ToXML StreamingSessionStreamState
forall a. (a -> XML) -> ToXML a
toXML :: StreamingSessionStreamState -> XML
$ctoXML :: StreamingSessionStreamState -> XML
Core.ToXML
)
pattern StreamingSessionStreamState_CREATE_FAILED :: StreamingSessionStreamState
pattern $bStreamingSessionStreamState_CREATE_FAILED :: StreamingSessionStreamState
$mStreamingSessionStreamState_CREATE_FAILED :: forall r.
StreamingSessionStreamState -> (Void# -> r) -> (Void# -> r) -> r
StreamingSessionStreamState_CREATE_FAILED = StreamingSessionStreamState' "CREATE_FAILED"
pattern StreamingSessionStreamState_CREATE_IN_PROGRESS :: StreamingSessionStreamState
pattern $bStreamingSessionStreamState_CREATE_IN_PROGRESS :: StreamingSessionStreamState
$mStreamingSessionStreamState_CREATE_IN_PROGRESS :: forall r.
StreamingSessionStreamState -> (Void# -> r) -> (Void# -> r) -> r
StreamingSessionStreamState_CREATE_IN_PROGRESS = StreamingSessionStreamState' "CREATE_IN_PROGRESS"
pattern StreamingSessionStreamState_DELETED :: StreamingSessionStreamState
pattern $bStreamingSessionStreamState_DELETED :: StreamingSessionStreamState
$mStreamingSessionStreamState_DELETED :: forall r.
StreamingSessionStreamState -> (Void# -> r) -> (Void# -> r) -> r
StreamingSessionStreamState_DELETED = StreamingSessionStreamState' "DELETED"
pattern StreamingSessionStreamState_DELETE_FAILED :: StreamingSessionStreamState
pattern $bStreamingSessionStreamState_DELETE_FAILED :: StreamingSessionStreamState
$mStreamingSessionStreamState_DELETE_FAILED :: forall r.
StreamingSessionStreamState -> (Void# -> r) -> (Void# -> r) -> r
StreamingSessionStreamState_DELETE_FAILED = StreamingSessionStreamState' "DELETE_FAILED"
pattern StreamingSessionStreamState_DELETE_IN_PROGRESS :: StreamingSessionStreamState
pattern $bStreamingSessionStreamState_DELETE_IN_PROGRESS :: StreamingSessionStreamState
$mStreamingSessionStreamState_DELETE_IN_PROGRESS :: forall r.
StreamingSessionStreamState -> (Void# -> r) -> (Void# -> r) -> r
StreamingSessionStreamState_DELETE_IN_PROGRESS = StreamingSessionStreamState' "DELETE_IN_PROGRESS"
pattern StreamingSessionStreamState_READY :: StreamingSessionStreamState
pattern $bStreamingSessionStreamState_READY :: StreamingSessionStreamState
$mStreamingSessionStreamState_READY :: forall r.
StreamingSessionStreamState -> (Void# -> r) -> (Void# -> r) -> r
StreamingSessionStreamState_READY = StreamingSessionStreamState' "READY"
{-# COMPLETE
StreamingSessionStreamState_CREATE_FAILED,
StreamingSessionStreamState_CREATE_IN_PROGRESS,
StreamingSessionStreamState_DELETED,
StreamingSessionStreamState_DELETE_FAILED,
StreamingSessionStreamState_DELETE_IN_PROGRESS,
StreamingSessionStreamState_READY,
StreamingSessionStreamState'
#-}