{-# 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.DirectConnectGatewayState
-- 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.DirectConnectGatewayState
  ( DirectConnectGatewayState
      ( ..,
        DirectConnectGatewayState_Available,
        DirectConnectGatewayState_Deleted,
        DirectConnectGatewayState_Deleting,
        DirectConnectGatewayState_Pending
      ),
  )
where

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

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

pattern DirectConnectGatewayState_Available :: DirectConnectGatewayState
pattern $bDirectConnectGatewayState_Available :: DirectConnectGatewayState
$mDirectConnectGatewayState_Available :: forall {r}.
DirectConnectGatewayState -> ((# #) -> r) -> ((# #) -> r) -> r
DirectConnectGatewayState_Available = DirectConnectGatewayState' "available"

pattern DirectConnectGatewayState_Deleted :: DirectConnectGatewayState
pattern $bDirectConnectGatewayState_Deleted :: DirectConnectGatewayState
$mDirectConnectGatewayState_Deleted :: forall {r}.
DirectConnectGatewayState -> ((# #) -> r) -> ((# #) -> r) -> r
DirectConnectGatewayState_Deleted = DirectConnectGatewayState' "deleted"

pattern DirectConnectGatewayState_Deleting :: DirectConnectGatewayState
pattern $bDirectConnectGatewayState_Deleting :: DirectConnectGatewayState
$mDirectConnectGatewayState_Deleting :: forall {r}.
DirectConnectGatewayState -> ((# #) -> r) -> ((# #) -> r) -> r
DirectConnectGatewayState_Deleting = DirectConnectGatewayState' "deleting"

pattern DirectConnectGatewayState_Pending :: DirectConnectGatewayState
pattern $bDirectConnectGatewayState_Pending :: DirectConnectGatewayState
$mDirectConnectGatewayState_Pending :: forall {r}.
DirectConnectGatewayState -> ((# #) -> r) -> ((# #) -> r) -> r
DirectConnectGatewayState_Pending = DirectConnectGatewayState' "pending"

{-# COMPLETE
  DirectConnectGatewayState_Available,
  DirectConnectGatewayState_Deleted,
  DirectConnectGatewayState_Deleting,
  DirectConnectGatewayState_Pending,
  DirectConnectGatewayState'
  #-}