{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.AppStream.Types.SessionConnectionState
( SessionConnectionState
( ..,
SessionConnectionState_CONNECTED,
SessionConnectionState_NOT_CONNECTED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype SessionConnectionState = SessionConnectionState'
{ SessionConnectionState -> Text
fromSessionConnectionState ::
Data.Text
}
deriving stock
( Int -> SessionConnectionState -> ShowS
[SessionConnectionState] -> ShowS
SessionConnectionState -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SessionConnectionState] -> ShowS
$cshowList :: [SessionConnectionState] -> ShowS
show :: SessionConnectionState -> String
$cshow :: SessionConnectionState -> String
showsPrec :: Int -> SessionConnectionState -> ShowS
$cshowsPrec :: Int -> SessionConnectionState -> ShowS
Prelude.Show,
ReadPrec [SessionConnectionState]
ReadPrec SessionConnectionState
Int -> ReadS SessionConnectionState
ReadS [SessionConnectionState]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SessionConnectionState]
$creadListPrec :: ReadPrec [SessionConnectionState]
readPrec :: ReadPrec SessionConnectionState
$creadPrec :: ReadPrec SessionConnectionState
readList :: ReadS [SessionConnectionState]
$creadList :: ReadS [SessionConnectionState]
readsPrec :: Int -> ReadS SessionConnectionState
$creadsPrec :: Int -> ReadS SessionConnectionState
Prelude.Read,
SessionConnectionState -> SessionConnectionState -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SessionConnectionState -> SessionConnectionState -> Bool
$c/= :: SessionConnectionState -> SessionConnectionState -> Bool
== :: SessionConnectionState -> SessionConnectionState -> Bool
$c== :: SessionConnectionState -> SessionConnectionState -> Bool
Prelude.Eq,
Eq SessionConnectionState
SessionConnectionState -> SessionConnectionState -> Bool
SessionConnectionState -> SessionConnectionState -> Ordering
SessionConnectionState
-> SessionConnectionState -> SessionConnectionState
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 :: SessionConnectionState
-> SessionConnectionState -> SessionConnectionState
$cmin :: SessionConnectionState
-> SessionConnectionState -> SessionConnectionState
max :: SessionConnectionState
-> SessionConnectionState -> SessionConnectionState
$cmax :: SessionConnectionState
-> SessionConnectionState -> SessionConnectionState
>= :: SessionConnectionState -> SessionConnectionState -> Bool
$c>= :: SessionConnectionState -> SessionConnectionState -> Bool
> :: SessionConnectionState -> SessionConnectionState -> Bool
$c> :: SessionConnectionState -> SessionConnectionState -> Bool
<= :: SessionConnectionState -> SessionConnectionState -> Bool
$c<= :: SessionConnectionState -> SessionConnectionState -> Bool
< :: SessionConnectionState -> SessionConnectionState -> Bool
$c< :: SessionConnectionState -> SessionConnectionState -> Bool
compare :: SessionConnectionState -> SessionConnectionState -> Ordering
$ccompare :: SessionConnectionState -> SessionConnectionState -> Ordering
Prelude.Ord,
forall x. Rep SessionConnectionState x -> SessionConnectionState
forall x. SessionConnectionState -> Rep SessionConnectionState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SessionConnectionState x -> SessionConnectionState
$cfrom :: forall x. SessionConnectionState -> Rep SessionConnectionState x
Prelude.Generic
)
deriving newtype
( Eq SessionConnectionState
Int -> SessionConnectionState -> Int
SessionConnectionState -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SessionConnectionState -> Int
$chash :: SessionConnectionState -> Int
hashWithSalt :: Int -> SessionConnectionState -> Int
$chashWithSalt :: Int -> SessionConnectionState -> Int
Prelude.Hashable,
SessionConnectionState -> ()
forall a. (a -> ()) -> NFData a
rnf :: SessionConnectionState -> ()
$crnf :: SessionConnectionState -> ()
Prelude.NFData,
Text -> Either String SessionConnectionState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SessionConnectionState
$cfromText :: Text -> Either String SessionConnectionState
Data.FromText,
SessionConnectionState -> Text
forall a. (a -> Text) -> ToText a
toText :: SessionConnectionState -> Text
$ctoText :: SessionConnectionState -> Text
Data.ToText,
SessionConnectionState -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: SessionConnectionState -> ByteString
$ctoBS :: SessionConnectionState -> ByteString
Data.ToByteString,
SessionConnectionState -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SessionConnectionState -> ByteStringBuilder
$cbuild :: SessionConnectionState -> ByteStringBuilder
Data.ToLog,
HeaderName -> SessionConnectionState -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SessionConnectionState -> [Header]
$ctoHeader :: HeaderName -> SessionConnectionState -> [Header]
Data.ToHeader,
SessionConnectionState -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SessionConnectionState -> QueryString
$ctoQuery :: SessionConnectionState -> QueryString
Data.ToQuery,
Value -> Parser [SessionConnectionState]
Value -> Parser SessionConnectionState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SessionConnectionState]
$cparseJSONList :: Value -> Parser [SessionConnectionState]
parseJSON :: Value -> Parser SessionConnectionState
$cparseJSON :: Value -> Parser SessionConnectionState
Data.FromJSON,
FromJSONKeyFunction [SessionConnectionState]
FromJSONKeyFunction SessionConnectionState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SessionConnectionState]
$cfromJSONKeyList :: FromJSONKeyFunction [SessionConnectionState]
fromJSONKey :: FromJSONKeyFunction SessionConnectionState
$cfromJSONKey :: FromJSONKeyFunction SessionConnectionState
Data.FromJSONKey,
[SessionConnectionState] -> Encoding
[SessionConnectionState] -> Value
SessionConnectionState -> Encoding
SessionConnectionState -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SessionConnectionState] -> Encoding
$ctoEncodingList :: [SessionConnectionState] -> Encoding
toJSONList :: [SessionConnectionState] -> Value
$ctoJSONList :: [SessionConnectionState] -> Value
toEncoding :: SessionConnectionState -> Encoding
$ctoEncoding :: SessionConnectionState -> Encoding
toJSON :: SessionConnectionState -> Value
$ctoJSON :: SessionConnectionState -> Value
Data.ToJSON,
ToJSONKeyFunction [SessionConnectionState]
ToJSONKeyFunction SessionConnectionState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SessionConnectionState]
$ctoJSONKeyList :: ToJSONKeyFunction [SessionConnectionState]
toJSONKey :: ToJSONKeyFunction SessionConnectionState
$ctoJSONKey :: ToJSONKeyFunction SessionConnectionState
Data.ToJSONKey,
[Node] -> Either String SessionConnectionState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SessionConnectionState
$cparseXML :: [Node] -> Either String SessionConnectionState
Data.FromXML,
SessionConnectionState -> XML
forall a. (a -> XML) -> ToXML a
toXML :: SessionConnectionState -> XML
$ctoXML :: SessionConnectionState -> XML
Data.ToXML
)
pattern SessionConnectionState_CONNECTED :: SessionConnectionState
pattern $bSessionConnectionState_CONNECTED :: SessionConnectionState
$mSessionConnectionState_CONNECTED :: forall {r}.
SessionConnectionState -> ((# #) -> r) -> ((# #) -> r) -> r
SessionConnectionState_CONNECTED = SessionConnectionState' "CONNECTED"
pattern SessionConnectionState_NOT_CONNECTED :: SessionConnectionState
pattern $bSessionConnectionState_NOT_CONNECTED :: SessionConnectionState
$mSessionConnectionState_NOT_CONNECTED :: forall {r}.
SessionConnectionState -> ((# #) -> r) -> ((# #) -> r) -> r
SessionConnectionState_NOT_CONNECTED = SessionConnectionState' "NOT_CONNECTED"
{-# COMPLETE
SessionConnectionState_CONNECTED,
SessionConnectionState_NOT_CONNECTED,
SessionConnectionState'
#-}