{-# 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.TransitGatewayRegistrationState
-- 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.TransitGatewayRegistrationState
  ( TransitGatewayRegistrationState
      ( ..,
        TransitGatewayRegistrationState_AVAILABLE,
        TransitGatewayRegistrationState_DELETED,
        TransitGatewayRegistrationState_DELETING,
        TransitGatewayRegistrationState_FAILED,
        TransitGatewayRegistrationState_PENDING
      ),
  )
where

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

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

pattern TransitGatewayRegistrationState_AVAILABLE :: TransitGatewayRegistrationState
pattern $bTransitGatewayRegistrationState_AVAILABLE :: TransitGatewayRegistrationState
$mTransitGatewayRegistrationState_AVAILABLE :: forall r.
TransitGatewayRegistrationState
-> (Void# -> r) -> (Void# -> r) -> r
TransitGatewayRegistrationState_AVAILABLE = TransitGatewayRegistrationState' "AVAILABLE"

pattern TransitGatewayRegistrationState_DELETED :: TransitGatewayRegistrationState
pattern $bTransitGatewayRegistrationState_DELETED :: TransitGatewayRegistrationState
$mTransitGatewayRegistrationState_DELETED :: forall r.
TransitGatewayRegistrationState
-> (Void# -> r) -> (Void# -> r) -> r
TransitGatewayRegistrationState_DELETED = TransitGatewayRegistrationState' "DELETED"

pattern TransitGatewayRegistrationState_DELETING :: TransitGatewayRegistrationState
pattern $bTransitGatewayRegistrationState_DELETING :: TransitGatewayRegistrationState
$mTransitGatewayRegistrationState_DELETING :: forall r.
TransitGatewayRegistrationState
-> (Void# -> r) -> (Void# -> r) -> r
TransitGatewayRegistrationState_DELETING = TransitGatewayRegistrationState' "DELETING"

pattern TransitGatewayRegistrationState_FAILED :: TransitGatewayRegistrationState
pattern $bTransitGatewayRegistrationState_FAILED :: TransitGatewayRegistrationState
$mTransitGatewayRegistrationState_FAILED :: forall r.
TransitGatewayRegistrationState
-> (Void# -> r) -> (Void# -> r) -> r
TransitGatewayRegistrationState_FAILED = TransitGatewayRegistrationState' "FAILED"

pattern TransitGatewayRegistrationState_PENDING :: TransitGatewayRegistrationState
pattern $bTransitGatewayRegistrationState_PENDING :: TransitGatewayRegistrationState
$mTransitGatewayRegistrationState_PENDING :: forall r.
TransitGatewayRegistrationState
-> (Void# -> r) -> (Void# -> r) -> r
TransitGatewayRegistrationState_PENDING = TransitGatewayRegistrationState' "PENDING"

{-# COMPLETE
  TransitGatewayRegistrationState_AVAILABLE,
  TransitGatewayRegistrationState_DELETED,
  TransitGatewayRegistrationState_DELETING,
  TransitGatewayRegistrationState_FAILED,
  TransitGatewayRegistrationState_PENDING,
  TransitGatewayRegistrationState'
  #-}