{-# 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.LocalGatewayRouteType
-- 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.LocalGatewayRouteType
  ( LocalGatewayRouteType
      ( ..,
        LocalGatewayRouteType_Propagated,
        LocalGatewayRouteType_Static
      ),
  )
where

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

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

pattern LocalGatewayRouteType_Propagated :: LocalGatewayRouteType
pattern $bLocalGatewayRouteType_Propagated :: LocalGatewayRouteType
$mLocalGatewayRouteType_Propagated :: forall {r}.
LocalGatewayRouteType -> ((# #) -> r) -> ((# #) -> r) -> r
LocalGatewayRouteType_Propagated = LocalGatewayRouteType' "propagated"

pattern LocalGatewayRouteType_Static :: LocalGatewayRouteType
pattern $bLocalGatewayRouteType_Static :: LocalGatewayRouteType
$mLocalGatewayRouteType_Static :: forall {r}.
LocalGatewayRouteType -> ((# #) -> r) -> ((# #) -> r) -> r
LocalGatewayRouteType_Static = LocalGatewayRouteType' "static"

{-# COMPLETE
  LocalGatewayRouteType_Propagated,
  LocalGatewayRouteType_Static,
  LocalGatewayRouteType'
  #-}