{-# 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.TransitGatewayPrefixListReferenceState
-- 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.TransitGatewayPrefixListReferenceState
  ( TransitGatewayPrefixListReferenceState
      ( ..,
        TransitGatewayPrefixListReferenceState_Available,
        TransitGatewayPrefixListReferenceState_Deleting,
        TransitGatewayPrefixListReferenceState_Modifying,
        TransitGatewayPrefixListReferenceState_Pending
      ),
  )
where

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

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

pattern TransitGatewayPrefixListReferenceState_Available :: TransitGatewayPrefixListReferenceState
pattern $bTransitGatewayPrefixListReferenceState_Available :: TransitGatewayPrefixListReferenceState
$mTransitGatewayPrefixListReferenceState_Available :: forall {r}.
TransitGatewayPrefixListReferenceState
-> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayPrefixListReferenceState_Available = TransitGatewayPrefixListReferenceState' "available"

pattern TransitGatewayPrefixListReferenceState_Deleting :: TransitGatewayPrefixListReferenceState
pattern $bTransitGatewayPrefixListReferenceState_Deleting :: TransitGatewayPrefixListReferenceState
$mTransitGatewayPrefixListReferenceState_Deleting :: forall {r}.
TransitGatewayPrefixListReferenceState
-> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayPrefixListReferenceState_Deleting = TransitGatewayPrefixListReferenceState' "deleting"

pattern TransitGatewayPrefixListReferenceState_Modifying :: TransitGatewayPrefixListReferenceState
pattern $bTransitGatewayPrefixListReferenceState_Modifying :: TransitGatewayPrefixListReferenceState
$mTransitGatewayPrefixListReferenceState_Modifying :: forall {r}.
TransitGatewayPrefixListReferenceState
-> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayPrefixListReferenceState_Modifying = TransitGatewayPrefixListReferenceState' "modifying"

pattern TransitGatewayPrefixListReferenceState_Pending :: TransitGatewayPrefixListReferenceState
pattern $bTransitGatewayPrefixListReferenceState_Pending :: TransitGatewayPrefixListReferenceState
$mTransitGatewayPrefixListReferenceState_Pending :: forall {r}.
TransitGatewayPrefixListReferenceState
-> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayPrefixListReferenceState_Pending = TransitGatewayPrefixListReferenceState' "pending"

{-# COMPLETE
  TransitGatewayPrefixListReferenceState_Available,
  TransitGatewayPrefixListReferenceState_Deleting,
  TransitGatewayPrefixListReferenceState_Modifying,
  TransitGatewayPrefixListReferenceState_Pending,
  TransitGatewayPrefixListReferenceState'
  #-}