{-# 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.EnabledType
-- 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.EnabledType
  ( EnabledType
      ( ..,
        EnabledType_Disabled,
        EnabledType_Enabled
      ),
  )
where

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

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

pattern EnabledType_Disabled :: EnabledType
pattern $bEnabledType_Disabled :: EnabledType
$mEnabledType_Disabled :: forall {r}. EnabledType -> ((# #) -> r) -> ((# #) -> r) -> r
EnabledType_Disabled = EnabledType' "Disabled"

pattern EnabledType_Enabled :: EnabledType
pattern $bEnabledType_Enabled :: EnabledType
$mEnabledType_Enabled :: forall {r}. EnabledType -> ((# #) -> r) -> ((# #) -> r) -> r
EnabledType_Enabled = EnabledType' "Enabled"

{-# COMPLETE
  EnabledType_Disabled,
  EnabledType_Enabled,
  EnabledType'
  #-}