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

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

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

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

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

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

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

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