{-# 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.ConnectPeerAssociationState
-- 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.ConnectPeerAssociationState
  ( ConnectPeerAssociationState
      ( ..,
        ConnectPeerAssociationState_AVAILABLE,
        ConnectPeerAssociationState_DELETED,
        ConnectPeerAssociationState_DELETING,
        ConnectPeerAssociationState_PENDING
      ),
  )
where

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

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

pattern ConnectPeerAssociationState_AVAILABLE :: ConnectPeerAssociationState
pattern $bConnectPeerAssociationState_AVAILABLE :: ConnectPeerAssociationState
$mConnectPeerAssociationState_AVAILABLE :: forall {r}.
ConnectPeerAssociationState -> ((# #) -> r) -> ((# #) -> r) -> r
ConnectPeerAssociationState_AVAILABLE = ConnectPeerAssociationState' "AVAILABLE"

pattern ConnectPeerAssociationState_DELETED :: ConnectPeerAssociationState
pattern $bConnectPeerAssociationState_DELETED :: ConnectPeerAssociationState
$mConnectPeerAssociationState_DELETED :: forall {r}.
ConnectPeerAssociationState -> ((# #) -> r) -> ((# #) -> r) -> r
ConnectPeerAssociationState_DELETED = ConnectPeerAssociationState' "DELETED"

pattern ConnectPeerAssociationState_DELETING :: ConnectPeerAssociationState
pattern $bConnectPeerAssociationState_DELETING :: ConnectPeerAssociationState
$mConnectPeerAssociationState_DELETING :: forall {r}.
ConnectPeerAssociationState -> ((# #) -> r) -> ((# #) -> r) -> r
ConnectPeerAssociationState_DELETING = ConnectPeerAssociationState' "DELETING"

pattern ConnectPeerAssociationState_PENDING :: ConnectPeerAssociationState
pattern $bConnectPeerAssociationState_PENDING :: ConnectPeerAssociationState
$mConnectPeerAssociationState_PENDING :: forall {r}.
ConnectPeerAssociationState -> ((# #) -> r) -> ((# #) -> r) -> r
ConnectPeerAssociationState_PENDING = ConnectPeerAssociationState' "PENDING"

{-# COMPLETE
  ConnectPeerAssociationState_AVAILABLE,
  ConnectPeerAssociationState_DELETED,
  ConnectPeerAssociationState_DELETING,
  ConnectPeerAssociationState_PENDING,
  ConnectPeerAssociationState'
  #-}