{-# 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.TunnelProtocol
-- 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.TunnelProtocol
  ( TunnelProtocol
      ( ..,
        TunnelProtocol_GRE
      ),
  )
where

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

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

pattern TunnelProtocol_GRE :: TunnelProtocol
pattern $bTunnelProtocol_GRE :: TunnelProtocol
$mTunnelProtocol_GRE :: forall {r}. TunnelProtocol -> ((# #) -> r) -> ((# #) -> r) -> r
TunnelProtocol_GRE = TunnelProtocol' "GRE"

{-# COMPLETE
  TunnelProtocol_GRE,
  TunnelProtocol'
  #-}