{-# 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.EC2.Types.GatewayAssociationState
-- 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.EC2.Types.GatewayAssociationState
  ( GatewayAssociationState
      ( ..,
        GatewayAssociationState_Associated,
        GatewayAssociationState_Associating,
        GatewayAssociationState_Disassociating,
        GatewayAssociationState_Not_associated
      ),
  )
where

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

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

pattern GatewayAssociationState_Associated :: GatewayAssociationState
pattern $bGatewayAssociationState_Associated :: GatewayAssociationState
$mGatewayAssociationState_Associated :: forall {r}.
GatewayAssociationState -> ((# #) -> r) -> ((# #) -> r) -> r
GatewayAssociationState_Associated = GatewayAssociationState' "associated"

pattern GatewayAssociationState_Associating :: GatewayAssociationState
pattern $bGatewayAssociationState_Associating :: GatewayAssociationState
$mGatewayAssociationState_Associating :: forall {r}.
GatewayAssociationState -> ((# #) -> r) -> ((# #) -> r) -> r
GatewayAssociationState_Associating = GatewayAssociationState' "associating"

pattern GatewayAssociationState_Disassociating :: GatewayAssociationState
pattern $bGatewayAssociationState_Disassociating :: GatewayAssociationState
$mGatewayAssociationState_Disassociating :: forall {r}.
GatewayAssociationState -> ((# #) -> r) -> ((# #) -> r) -> r
GatewayAssociationState_Disassociating = GatewayAssociationState' "disassociating"

pattern GatewayAssociationState_Not_associated :: GatewayAssociationState
pattern $bGatewayAssociationState_Not_associated :: GatewayAssociationState
$mGatewayAssociationState_Not_associated :: forall {r}.
GatewayAssociationState -> ((# #) -> r) -> ((# #) -> r) -> r
GatewayAssociationState_Not_associated = GatewayAssociationState' "not-associated"

{-# COMPLETE
  GatewayAssociationState_Associated,
  GatewayAssociationState_Associating,
  GatewayAssociationState_Disassociating,
  GatewayAssociationState_Not_associated,
  GatewayAssociationState'
  #-}