{-# 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.ApiGatewayV2.Types.VpcLinkVersion
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ApiGatewayV2.Types.VpcLinkVersion
  ( VpcLinkVersion
      ( ..,
        VpcLinkVersion_V2
      ),
  )
where

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

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

pattern VpcLinkVersion_V2 :: VpcLinkVersion
pattern $bVpcLinkVersion_V2 :: VpcLinkVersion
$mVpcLinkVersion_V2 :: forall r. VpcLinkVersion -> (Void# -> r) -> (Void# -> r) -> r
VpcLinkVersion_V2 = VpcLinkVersion' "V2"

{-# COMPLETE
  VpcLinkVersion_V2,
  VpcLinkVersion'
  #-}