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

pattern VpnStaticRouteSource_Static :: VpnStaticRouteSource
pattern $bVpnStaticRouteSource_Static :: VpnStaticRouteSource
$mVpnStaticRouteSource_Static :: forall {r}.
VpnStaticRouteSource -> ((# #) -> r) -> ((# #) -> r) -> r
VpnStaticRouteSource_Static = VpnStaticRouteSource' "Static"

{-# COMPLETE
  VpnStaticRouteSource_Static,
  VpnStaticRouteSource'
  #-}