{-# 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.VpnState
-- 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.VpnState
  ( VpnState
      ( ..,
        VpnState_Available,
        VpnState_Deleted,
        VpnState_Deleting,
        VpnState_Pending
      ),
  )
where

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

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

pattern VpnState_Available :: VpnState
pattern $bVpnState_Available :: VpnState
$mVpnState_Available :: forall {r}. VpnState -> ((# #) -> r) -> ((# #) -> r) -> r
VpnState_Available = VpnState' "available"

pattern VpnState_Deleted :: VpnState
pattern $bVpnState_Deleted :: VpnState
$mVpnState_Deleted :: forall {r}. VpnState -> ((# #) -> r) -> ((# #) -> r) -> r
VpnState_Deleted = VpnState' "deleted"

pattern VpnState_Deleting :: VpnState
pattern $bVpnState_Deleting :: VpnState
$mVpnState_Deleting :: forall {r}. VpnState -> ((# #) -> r) -> ((# #) -> r) -> r
VpnState_Deleting = VpnState' "deleting"

pattern VpnState_Pending :: VpnState
pattern $bVpnState_Pending :: VpnState
$mVpnState_Pending :: forall {r}. VpnState -> ((# #) -> r) -> ((# #) -> r) -> r
VpnState_Pending = VpnState' "pending"

{-# COMPLETE
  VpnState_Available,
  VpnState_Deleted,
  VpnState_Deleting,
  VpnState_Pending,
  VpnState'
  #-}