{-# 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.DirectConnect.Types.DirectConnectGatewayAssociationState
-- 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.DirectConnect.Types.DirectConnectGatewayAssociationState
  ( DirectConnectGatewayAssociationState
      ( ..,
        DirectConnectGatewayAssociationState_Associated,
        DirectConnectGatewayAssociationState_Associating,
        DirectConnectGatewayAssociationState_Disassociated,
        DirectConnectGatewayAssociationState_Disassociating,
        DirectConnectGatewayAssociationState_Updating
      ),
  )
where

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

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

pattern DirectConnectGatewayAssociationState_Associated :: DirectConnectGatewayAssociationState
pattern $bDirectConnectGatewayAssociationState_Associated :: DirectConnectGatewayAssociationState
$mDirectConnectGatewayAssociationState_Associated :: forall {r}.
DirectConnectGatewayAssociationState
-> ((# #) -> r) -> ((# #) -> r) -> r
DirectConnectGatewayAssociationState_Associated = DirectConnectGatewayAssociationState' "associated"

pattern DirectConnectGatewayAssociationState_Associating :: DirectConnectGatewayAssociationState
pattern $bDirectConnectGatewayAssociationState_Associating :: DirectConnectGatewayAssociationState
$mDirectConnectGatewayAssociationState_Associating :: forall {r}.
DirectConnectGatewayAssociationState
-> ((# #) -> r) -> ((# #) -> r) -> r
DirectConnectGatewayAssociationState_Associating = DirectConnectGatewayAssociationState' "associating"

pattern DirectConnectGatewayAssociationState_Disassociated :: DirectConnectGatewayAssociationState
pattern $bDirectConnectGatewayAssociationState_Disassociated :: DirectConnectGatewayAssociationState
$mDirectConnectGatewayAssociationState_Disassociated :: forall {r}.
DirectConnectGatewayAssociationState
-> ((# #) -> r) -> ((# #) -> r) -> r
DirectConnectGatewayAssociationState_Disassociated = DirectConnectGatewayAssociationState' "disassociated"

pattern DirectConnectGatewayAssociationState_Disassociating :: DirectConnectGatewayAssociationState
pattern $bDirectConnectGatewayAssociationState_Disassociating :: DirectConnectGatewayAssociationState
$mDirectConnectGatewayAssociationState_Disassociating :: forall {r}.
DirectConnectGatewayAssociationState
-> ((# #) -> r) -> ((# #) -> r) -> r
DirectConnectGatewayAssociationState_Disassociating = DirectConnectGatewayAssociationState' "disassociating"

pattern DirectConnectGatewayAssociationState_Updating :: DirectConnectGatewayAssociationState
pattern $bDirectConnectGatewayAssociationState_Updating :: DirectConnectGatewayAssociationState
$mDirectConnectGatewayAssociationState_Updating :: forall {r}.
DirectConnectGatewayAssociationState
-> ((# #) -> r) -> ((# #) -> r) -> r
DirectConnectGatewayAssociationState_Updating = DirectConnectGatewayAssociationState' "updating"

{-# COMPLETE
  DirectConnectGatewayAssociationState_Associated,
  DirectConnectGatewayAssociationState_Associating,
  DirectConnectGatewayAssociationState_Disassociated,
  DirectConnectGatewayAssociationState_Disassociating,
  DirectConnectGatewayAssociationState_Updating,
  DirectConnectGatewayAssociationState'
  #-}