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

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

newtype DirectConnectGatewayAssociationState = DirectConnectGatewayAssociationState'
  { DirectConnectGatewayAssociationState -> Text
fromDirectConnectGatewayAssociationState ::
      Core.Text
  }
  deriving stock
    ( Int -> DirectConnectGatewayAssociationState -> ShowS
[DirectConnectGatewayAssociationState] -> ShowS
DirectConnectGatewayAssociationState -> String
(Int -> DirectConnectGatewayAssociationState -> ShowS)
-> (DirectConnectGatewayAssociationState -> String)
-> ([DirectConnectGatewayAssociationState] -> ShowS)
-> Show DirectConnectGatewayAssociationState
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]
(Int -> ReadS DirectConnectGatewayAssociationState)
-> ReadS [DirectConnectGatewayAssociationState]
-> ReadPrec DirectConnectGatewayAssociationState
-> ReadPrec [DirectConnectGatewayAssociationState]
-> Read 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
(DirectConnectGatewayAssociationState
 -> DirectConnectGatewayAssociationState -> Bool)
-> (DirectConnectGatewayAssociationState
    -> DirectConnectGatewayAssociationState -> Bool)
-> Eq DirectConnectGatewayAssociationState
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
Eq DirectConnectGatewayAssociationState
-> (DirectConnectGatewayAssociationState
    -> DirectConnectGatewayAssociationState -> Ordering)
-> (DirectConnectGatewayAssociationState
    -> DirectConnectGatewayAssociationState -> Bool)
-> (DirectConnectGatewayAssociationState
    -> DirectConnectGatewayAssociationState -> Bool)
-> (DirectConnectGatewayAssociationState
    -> DirectConnectGatewayAssociationState -> Bool)
-> (DirectConnectGatewayAssociationState
    -> DirectConnectGatewayAssociationState -> Bool)
-> (DirectConnectGatewayAssociationState
    -> DirectConnectGatewayAssociationState
    -> DirectConnectGatewayAssociationState)
-> (DirectConnectGatewayAssociationState
    -> DirectConnectGatewayAssociationState
    -> DirectConnectGatewayAssociationState)
-> Ord 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
$cp1Ord :: Eq DirectConnectGatewayAssociationState
Prelude.Ord,
      (forall x.
 DirectConnectGatewayAssociationState
 -> Rep DirectConnectGatewayAssociationState x)
-> (forall x.
    Rep DirectConnectGatewayAssociationState x
    -> DirectConnectGatewayAssociationState)
-> Generic DirectConnectGatewayAssociationState
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
    ( Int -> DirectConnectGatewayAssociationState -> Int
DirectConnectGatewayAssociationState -> Int
(Int -> DirectConnectGatewayAssociationState -> Int)
-> (DirectConnectGatewayAssociationState -> Int)
-> Hashable DirectConnectGatewayAssociationState
forall 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 -> ()
(DirectConnectGatewayAssociationState -> ())
-> NFData DirectConnectGatewayAssociationState
forall a. (a -> ()) -> NFData a
rnf :: DirectConnectGatewayAssociationState -> ()
$crnf :: DirectConnectGatewayAssociationState -> ()
Prelude.NFData,
      Text -> Either String DirectConnectGatewayAssociationState
(Text -> Either String DirectConnectGatewayAssociationState)
-> FromText DirectConnectGatewayAssociationState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DirectConnectGatewayAssociationState
$cfromText :: Text -> Either String DirectConnectGatewayAssociationState
Core.FromText,
      DirectConnectGatewayAssociationState -> Text
(DirectConnectGatewayAssociationState -> Text)
-> ToText DirectConnectGatewayAssociationState
forall a. (a -> Text) -> ToText a
toText :: DirectConnectGatewayAssociationState -> Text
$ctoText :: DirectConnectGatewayAssociationState -> Text
Core.ToText,
      DirectConnectGatewayAssociationState -> ByteString
(DirectConnectGatewayAssociationState -> ByteString)
-> ToByteString DirectConnectGatewayAssociationState
forall a. (a -> ByteString) -> ToByteString a
toBS :: DirectConnectGatewayAssociationState -> ByteString
$ctoBS :: DirectConnectGatewayAssociationState -> ByteString
Core.ToByteString,
      DirectConnectGatewayAssociationState -> ByteStringBuilder
(DirectConnectGatewayAssociationState -> ByteStringBuilder)
-> ToLog DirectConnectGatewayAssociationState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DirectConnectGatewayAssociationState -> ByteStringBuilder
$cbuild :: DirectConnectGatewayAssociationState -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DirectConnectGatewayAssociationState -> [Header]
(HeaderName -> DirectConnectGatewayAssociationState -> [Header])
-> ToHeader DirectConnectGatewayAssociationState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DirectConnectGatewayAssociationState -> [Header]
$ctoHeader :: HeaderName -> DirectConnectGatewayAssociationState -> [Header]
Core.ToHeader,
      DirectConnectGatewayAssociationState -> QueryString
(DirectConnectGatewayAssociationState -> QueryString)
-> ToQuery DirectConnectGatewayAssociationState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DirectConnectGatewayAssociationState -> QueryString
$ctoQuery :: DirectConnectGatewayAssociationState -> QueryString
Core.ToQuery,
      Value -> Parser [DirectConnectGatewayAssociationState]
Value -> Parser DirectConnectGatewayAssociationState
(Value -> Parser DirectConnectGatewayAssociationState)
-> (Value -> Parser [DirectConnectGatewayAssociationState])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [DirectConnectGatewayAssociationState]
FromJSONKeyFunction DirectConnectGatewayAssociationState
FromJSONKeyFunction DirectConnectGatewayAssociationState
-> FromJSONKeyFunction [DirectConnectGatewayAssociationState]
-> FromJSONKey DirectConnectGatewayAssociationState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DirectConnectGatewayAssociationState]
$cfromJSONKeyList :: FromJSONKeyFunction [DirectConnectGatewayAssociationState]
fromJSONKey :: FromJSONKeyFunction DirectConnectGatewayAssociationState
$cfromJSONKey :: FromJSONKeyFunction DirectConnectGatewayAssociationState
Core.FromJSONKey,
      [DirectConnectGatewayAssociationState] -> Encoding
[DirectConnectGatewayAssociationState] -> Value
DirectConnectGatewayAssociationState -> Encoding
DirectConnectGatewayAssociationState -> Value
(DirectConnectGatewayAssociationState -> Value)
-> (DirectConnectGatewayAssociationState -> Encoding)
-> ([DirectConnectGatewayAssociationState] -> Value)
-> ([DirectConnectGatewayAssociationState] -> Encoding)
-> ToJSON DirectConnectGatewayAssociationState
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
Core.ToJSON,
      ToJSONKeyFunction [DirectConnectGatewayAssociationState]
ToJSONKeyFunction DirectConnectGatewayAssociationState
ToJSONKeyFunction DirectConnectGatewayAssociationState
-> ToJSONKeyFunction [DirectConnectGatewayAssociationState]
-> ToJSONKey DirectConnectGatewayAssociationState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DirectConnectGatewayAssociationState]
$ctoJSONKeyList :: ToJSONKeyFunction [DirectConnectGatewayAssociationState]
toJSONKey :: ToJSONKeyFunction DirectConnectGatewayAssociationState
$ctoJSONKey :: ToJSONKeyFunction DirectConnectGatewayAssociationState
Core.ToJSONKey,
      [Node] -> Either String DirectConnectGatewayAssociationState
([Node] -> Either String DirectConnectGatewayAssociationState)
-> FromXML DirectConnectGatewayAssociationState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DirectConnectGatewayAssociationState
$cparseXML :: [Node] -> Either String DirectConnectGatewayAssociationState
Core.FromXML,
      DirectConnectGatewayAssociationState -> XML
(DirectConnectGatewayAssociationState -> XML)
-> ToXML DirectConnectGatewayAssociationState
forall a. (a -> XML) -> ToXML a
toXML :: DirectConnectGatewayAssociationState -> XML
$ctoXML :: DirectConnectGatewayAssociationState -> XML
Core.ToXML
    )

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

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

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

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

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

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