{-# 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.ConnectionAliasState
-- 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.ConnectionAliasState
  ( ConnectionAliasState
      ( ..,
        ConnectionAliasState_CREATED,
        ConnectionAliasState_CREATING,
        ConnectionAliasState_DELETING
      ),
  )
where

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

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

pattern ConnectionAliasState_CREATED :: ConnectionAliasState
pattern $bConnectionAliasState_CREATED :: ConnectionAliasState
$mConnectionAliasState_CREATED :: forall r. ConnectionAliasState -> (Void# -> r) -> (Void# -> r) -> r
ConnectionAliasState_CREATED = ConnectionAliasState' "CREATED"

pattern ConnectionAliasState_CREATING :: ConnectionAliasState
pattern $bConnectionAliasState_CREATING :: ConnectionAliasState
$mConnectionAliasState_CREATING :: forall r. ConnectionAliasState -> (Void# -> r) -> (Void# -> r) -> r
ConnectionAliasState_CREATING = ConnectionAliasState' "CREATING"

pattern ConnectionAliasState_DELETING :: ConnectionAliasState
pattern $bConnectionAliasState_DELETING :: ConnectionAliasState
$mConnectionAliasState_DELETING :: forall r. ConnectionAliasState -> (Void# -> r) -> (Void# -> r) -> r
ConnectionAliasState_DELETING = ConnectionAliasState' "DELETING"

{-# COMPLETE
  ConnectionAliasState_CREATED,
  ConnectionAliasState_CREATING,
  ConnectionAliasState_DELETING,
  ConnectionAliasState'
  #-}