{-# 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.LocalGatewayRouteTableMode
-- 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.LocalGatewayRouteTableMode
  ( LocalGatewayRouteTableMode
      ( ..,
        LocalGatewayRouteTableMode_Coip,
        LocalGatewayRouteTableMode_Direct_vpc_routing
      ),
  )
where

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

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

pattern LocalGatewayRouteTableMode_Coip :: LocalGatewayRouteTableMode
pattern $bLocalGatewayRouteTableMode_Coip :: LocalGatewayRouteTableMode
$mLocalGatewayRouteTableMode_Coip :: forall {r}.
LocalGatewayRouteTableMode -> ((# #) -> r) -> ((# #) -> r) -> r
LocalGatewayRouteTableMode_Coip = LocalGatewayRouteTableMode' "coip"

pattern LocalGatewayRouteTableMode_Direct_vpc_routing :: LocalGatewayRouteTableMode
pattern $bLocalGatewayRouteTableMode_Direct_vpc_routing :: LocalGatewayRouteTableMode
$mLocalGatewayRouteTableMode_Direct_vpc_routing :: forall {r}.
LocalGatewayRouteTableMode -> ((# #) -> r) -> ((# #) -> r) -> r
LocalGatewayRouteTableMode_Direct_vpc_routing = LocalGatewayRouteTableMode' "direct-vpc-routing"

{-# COMPLETE
  LocalGatewayRouteTableMode_Coip,
  LocalGatewayRouteTableMode_Direct_vpc_routing,
  LocalGatewayRouteTableMode'
  #-}