{-# 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.NetworkManager.Types.CustomerGatewayAssociationState
-- 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.NetworkManager.Types.CustomerGatewayAssociationState
  ( CustomerGatewayAssociationState
      ( ..,
        CustomerGatewayAssociationState_AVAILABLE,
        CustomerGatewayAssociationState_DELETED,
        CustomerGatewayAssociationState_DELETING,
        CustomerGatewayAssociationState_PENDING
      ),
  )
where

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

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

pattern CustomerGatewayAssociationState_AVAILABLE :: CustomerGatewayAssociationState
pattern $bCustomerGatewayAssociationState_AVAILABLE :: CustomerGatewayAssociationState
$mCustomerGatewayAssociationState_AVAILABLE :: forall {r}.
CustomerGatewayAssociationState
-> ((# #) -> r) -> ((# #) -> r) -> r
CustomerGatewayAssociationState_AVAILABLE = CustomerGatewayAssociationState' "AVAILABLE"

pattern CustomerGatewayAssociationState_DELETED :: CustomerGatewayAssociationState
pattern $bCustomerGatewayAssociationState_DELETED :: CustomerGatewayAssociationState
$mCustomerGatewayAssociationState_DELETED :: forall {r}.
CustomerGatewayAssociationState
-> ((# #) -> r) -> ((# #) -> r) -> r
CustomerGatewayAssociationState_DELETED = CustomerGatewayAssociationState' "DELETED"

pattern CustomerGatewayAssociationState_DELETING :: CustomerGatewayAssociationState
pattern $bCustomerGatewayAssociationState_DELETING :: CustomerGatewayAssociationState
$mCustomerGatewayAssociationState_DELETING :: forall {r}.
CustomerGatewayAssociationState
-> ((# #) -> r) -> ((# #) -> r) -> r
CustomerGatewayAssociationState_DELETING = CustomerGatewayAssociationState' "DELETING"

pattern CustomerGatewayAssociationState_PENDING :: CustomerGatewayAssociationState
pattern $bCustomerGatewayAssociationState_PENDING :: CustomerGatewayAssociationState
$mCustomerGatewayAssociationState_PENDING :: forall {r}.
CustomerGatewayAssociationState
-> ((# #) -> r) -> ((# #) -> r) -> r
CustomerGatewayAssociationState_PENDING = CustomerGatewayAssociationState' "PENDING"

{-# COMPLETE
  CustomerGatewayAssociationState_AVAILABLE,
  CustomerGatewayAssociationState_DELETED,
  CustomerGatewayAssociationState_DELETING,
  CustomerGatewayAssociationState_PENDING,
  CustomerGatewayAssociationState'
  #-}