{-# 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.WorkSpaces.Types.ReconnectEnum
-- 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.WorkSpaces.Types.ReconnectEnum
  ( ReconnectEnum
      ( ..,
        ReconnectEnum_DISABLED,
        ReconnectEnum_ENABLED
      ),
  )
where

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

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

pattern ReconnectEnum_DISABLED :: ReconnectEnum
pattern $bReconnectEnum_DISABLED :: ReconnectEnum
$mReconnectEnum_DISABLED :: forall r. ReconnectEnum -> (Void# -> r) -> (Void# -> r) -> r
ReconnectEnum_DISABLED = ReconnectEnum' "DISABLED"

pattern ReconnectEnum_ENABLED :: ReconnectEnum
pattern $bReconnectEnum_ENABLED :: ReconnectEnum
$mReconnectEnum_ENABLED :: forall r. ReconnectEnum -> (Void# -> r) -> (Void# -> r) -> r
ReconnectEnum_ENABLED = ReconnectEnum' "ENABLED"

{-# COMPLETE
  ReconnectEnum_DISABLED,
  ReconnectEnum_ENABLED,
  ReconnectEnum'
  #-}