{-# 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.RouteTableAssociationStateCode
-- 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.RouteTableAssociationStateCode
  ( RouteTableAssociationStateCode
      ( ..,
        RouteTableAssociationStateCode_Associated,
        RouteTableAssociationStateCode_Associating,
        RouteTableAssociationStateCode_Disassociated,
        RouteTableAssociationStateCode_Disassociating,
        RouteTableAssociationStateCode_Failed
      ),
  )
where

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

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

pattern RouteTableAssociationStateCode_Associated :: RouteTableAssociationStateCode
pattern $bRouteTableAssociationStateCode_Associated :: RouteTableAssociationStateCode
$mRouteTableAssociationStateCode_Associated :: forall {r}.
RouteTableAssociationStateCode -> ((# #) -> r) -> ((# #) -> r) -> r
RouteTableAssociationStateCode_Associated = RouteTableAssociationStateCode' "associated"

pattern RouteTableAssociationStateCode_Associating :: RouteTableAssociationStateCode
pattern $bRouteTableAssociationStateCode_Associating :: RouteTableAssociationStateCode
$mRouteTableAssociationStateCode_Associating :: forall {r}.
RouteTableAssociationStateCode -> ((# #) -> r) -> ((# #) -> r) -> r
RouteTableAssociationStateCode_Associating = RouteTableAssociationStateCode' "associating"

pattern RouteTableAssociationStateCode_Disassociated :: RouteTableAssociationStateCode
pattern $bRouteTableAssociationStateCode_Disassociated :: RouteTableAssociationStateCode
$mRouteTableAssociationStateCode_Disassociated :: forall {r}.
RouteTableAssociationStateCode -> ((# #) -> r) -> ((# #) -> r) -> r
RouteTableAssociationStateCode_Disassociated = RouteTableAssociationStateCode' "disassociated"

pattern RouteTableAssociationStateCode_Disassociating :: RouteTableAssociationStateCode
pattern $bRouteTableAssociationStateCode_Disassociating :: RouteTableAssociationStateCode
$mRouteTableAssociationStateCode_Disassociating :: forall {r}.
RouteTableAssociationStateCode -> ((# #) -> r) -> ((# #) -> r) -> r
RouteTableAssociationStateCode_Disassociating = RouteTableAssociationStateCode' "disassociating"

pattern RouteTableAssociationStateCode_Failed :: RouteTableAssociationStateCode
pattern $bRouteTableAssociationStateCode_Failed :: RouteTableAssociationStateCode
$mRouteTableAssociationStateCode_Failed :: forall {r}.
RouteTableAssociationStateCode -> ((# #) -> r) -> ((# #) -> r) -> r
RouteTableAssociationStateCode_Failed = RouteTableAssociationStateCode' "failed"

{-# COMPLETE
  RouteTableAssociationStateCode_Associated,
  RouteTableAssociationStateCode_Associating,
  RouteTableAssociationStateCode_Disassociated,
  RouteTableAssociationStateCode_Disassociating,
  RouteTableAssociationStateCode_Failed,
  RouteTableAssociationStateCode'
  #-}