{-# 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.Chime.Types.ProxySessionStatus
-- 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.Chime.Types.ProxySessionStatus
  ( ProxySessionStatus
      ( ..,
        ProxySessionStatus_Closed,
        ProxySessionStatus_InProgress,
        ProxySessionStatus_Open
      ),
  )
where

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

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

pattern ProxySessionStatus_Closed :: ProxySessionStatus
pattern $bProxySessionStatus_Closed :: ProxySessionStatus
$mProxySessionStatus_Closed :: forall r. ProxySessionStatus -> (Void# -> r) -> (Void# -> r) -> r
ProxySessionStatus_Closed = ProxySessionStatus' "Closed"

pattern ProxySessionStatus_InProgress :: ProxySessionStatus
pattern $bProxySessionStatus_InProgress :: ProxySessionStatus
$mProxySessionStatus_InProgress :: forall r. ProxySessionStatus -> (Void# -> r) -> (Void# -> r) -> r
ProxySessionStatus_InProgress = ProxySessionStatus' "InProgress"

pattern ProxySessionStatus_Open :: ProxySessionStatus
pattern $bProxySessionStatus_Open :: ProxySessionStatus
$mProxySessionStatus_Open :: forall r. ProxySessionStatus -> (Void# -> r) -> (Void# -> r) -> r
ProxySessionStatus_Open = ProxySessionStatus' "Open"

{-# COMPLETE
  ProxySessionStatus_Closed,
  ProxySessionStatus_InProgress,
  ProxySessionStatus_Open,
  ProxySessionStatus'
  #-}