{-# 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.VpnEcmpSupportValue
-- 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.VpnEcmpSupportValue
  ( VpnEcmpSupportValue
      ( ..,
        VpnEcmpSupportValue_Disable,
        VpnEcmpSupportValue_Enable
      ),
  )
where

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

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

pattern VpnEcmpSupportValue_Disable :: VpnEcmpSupportValue
pattern $bVpnEcmpSupportValue_Disable :: VpnEcmpSupportValue
$mVpnEcmpSupportValue_Disable :: forall {r}.
VpnEcmpSupportValue -> ((# #) -> r) -> ((# #) -> r) -> r
VpnEcmpSupportValue_Disable = VpnEcmpSupportValue' "disable"

pattern VpnEcmpSupportValue_Enable :: VpnEcmpSupportValue
pattern $bVpnEcmpSupportValue_Enable :: VpnEcmpSupportValue
$mVpnEcmpSupportValue_Enable :: forall {r}.
VpnEcmpSupportValue -> ((# #) -> r) -> ((# #) -> r) -> r
VpnEcmpSupportValue_Enable = VpnEcmpSupportValue' "enable"

{-# COMPLETE
  VpnEcmpSupportValue_Disable,
  VpnEcmpSupportValue_Enable,
  VpnEcmpSupportValue'
  #-}