{-# 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.RouteTableType
-- 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.NetworkManager.Types.RouteTableType
  ( RouteTableType
      ( ..,
        RouteTableType_CORE_NETWORK_SEGMENT,
        RouteTableType_TRANSIT_GATEWAY_ROUTE_TABLE
      ),
  )
where

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

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

pattern RouteTableType_CORE_NETWORK_SEGMENT :: RouteTableType
pattern $bRouteTableType_CORE_NETWORK_SEGMENT :: RouteTableType
$mRouteTableType_CORE_NETWORK_SEGMENT :: forall {r}. RouteTableType -> ((# #) -> r) -> ((# #) -> r) -> r
RouteTableType_CORE_NETWORK_SEGMENT = RouteTableType' "CORE_NETWORK_SEGMENT"

pattern RouteTableType_TRANSIT_GATEWAY_ROUTE_TABLE :: RouteTableType
pattern $bRouteTableType_TRANSIT_GATEWAY_ROUTE_TABLE :: RouteTableType
$mRouteTableType_TRANSIT_GATEWAY_ROUTE_TABLE :: forall {r}. RouteTableType -> ((# #) -> r) -> ((# #) -> r) -> r
RouteTableType_TRANSIT_GATEWAY_ROUTE_TABLE = RouteTableType' "TRANSIT_GATEWAY_ROUTE_TABLE"

{-# COMPLETE
  RouteTableType_CORE_NETWORK_SEGMENT,
  RouteTableType_TRANSIT_GATEWAY_ROUTE_TABLE,
  RouteTableType'
  #-}