{-# 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.Nimble.Types.StreamingSessionState
-- 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.Nimble.Types.StreamingSessionState
  ( StreamingSessionState
      ( ..,
        StreamingSessionState_CREATE_FAILED,
        StreamingSessionState_CREATE_IN_PROGRESS,
        StreamingSessionState_DELETED,
        StreamingSessionState_DELETE_FAILED,
        StreamingSessionState_DELETE_IN_PROGRESS,
        StreamingSessionState_READY
      ),
  )
where

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

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

pattern StreamingSessionState_CREATE_FAILED :: StreamingSessionState
pattern $bStreamingSessionState_CREATE_FAILED :: StreamingSessionState
$mStreamingSessionState_CREATE_FAILED :: forall r.
StreamingSessionState -> (Void# -> r) -> (Void# -> r) -> r
StreamingSessionState_CREATE_FAILED = StreamingSessionState' "CREATE_FAILED"

pattern StreamingSessionState_CREATE_IN_PROGRESS :: StreamingSessionState
pattern $bStreamingSessionState_CREATE_IN_PROGRESS :: StreamingSessionState
$mStreamingSessionState_CREATE_IN_PROGRESS :: forall r.
StreamingSessionState -> (Void# -> r) -> (Void# -> r) -> r
StreamingSessionState_CREATE_IN_PROGRESS = StreamingSessionState' "CREATE_IN_PROGRESS"

pattern StreamingSessionState_DELETED :: StreamingSessionState
pattern $bStreamingSessionState_DELETED :: StreamingSessionState
$mStreamingSessionState_DELETED :: forall r.
StreamingSessionState -> (Void# -> r) -> (Void# -> r) -> r
StreamingSessionState_DELETED = StreamingSessionState' "DELETED"

pattern StreamingSessionState_DELETE_FAILED :: StreamingSessionState
pattern $bStreamingSessionState_DELETE_FAILED :: StreamingSessionState
$mStreamingSessionState_DELETE_FAILED :: forall r.
StreamingSessionState -> (Void# -> r) -> (Void# -> r) -> r
StreamingSessionState_DELETE_FAILED = StreamingSessionState' "DELETE_FAILED"

pattern StreamingSessionState_DELETE_IN_PROGRESS :: StreamingSessionState
pattern $bStreamingSessionState_DELETE_IN_PROGRESS :: StreamingSessionState
$mStreamingSessionState_DELETE_IN_PROGRESS :: forall r.
StreamingSessionState -> (Void# -> r) -> (Void# -> r) -> r
StreamingSessionState_DELETE_IN_PROGRESS = StreamingSessionState' "DELETE_IN_PROGRESS"

pattern StreamingSessionState_READY :: StreamingSessionState
pattern $bStreamingSessionState_READY :: StreamingSessionState
$mStreamingSessionState_READY :: forall r.
StreamingSessionState -> (Void# -> r) -> (Void# -> r) -> r
StreamingSessionState_READY = StreamingSessionState' "READY"

{-# COMPLETE
  StreamingSessionState_CREATE_FAILED,
  StreamingSessionState_CREATE_IN_PROGRESS,
  StreamingSessionState_DELETED,
  StreamingSessionState_DELETE_FAILED,
  StreamingSessionState_DELETE_IN_PROGRESS,
  StreamingSessionState_READY,
  StreamingSessionState'
  #-}