{-# 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.WorkSpacesWeb.Types.PortalStatus
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.WorkSpacesWeb.Types.PortalStatus
  ( PortalStatus
      ( ..,
        PortalStatus_Active,
        PortalStatus_Incomplete,
        PortalStatus_Pending
      ),
  )
where

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

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

pattern PortalStatus_Active :: PortalStatus
pattern $bPortalStatus_Active :: PortalStatus
$mPortalStatus_Active :: forall {r}. PortalStatus -> ((# #) -> r) -> ((# #) -> r) -> r
PortalStatus_Active = PortalStatus' "Active"

pattern PortalStatus_Incomplete :: PortalStatus
pattern $bPortalStatus_Incomplete :: PortalStatus
$mPortalStatus_Incomplete :: forall {r}. PortalStatus -> ((# #) -> r) -> ((# #) -> r) -> r
PortalStatus_Incomplete = PortalStatus' "Incomplete"

pattern PortalStatus_Pending :: PortalStatus
pattern $bPortalStatus_Pending :: PortalStatus
$mPortalStatus_Pending :: forall {r}. PortalStatus -> ((# #) -> r) -> ((# #) -> r) -> r
PortalStatus_Pending = PortalStatus' "Pending"

{-# COMPLETE
  PortalStatus_Active,
  PortalStatus_Incomplete,
  PortalStatus_Pending,
  PortalStatus'
  #-}