{-# 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.APIGateway.Types.VpcLinkStatus
-- 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.APIGateway.Types.VpcLinkStatus
  ( VpcLinkStatus
      ( ..,
        VpcLinkStatus_AVAILABLE,
        VpcLinkStatus_DELETING,
        VpcLinkStatus_FAILED,
        VpcLinkStatus_PENDING
      ),
  )
where

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

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

pattern VpcLinkStatus_AVAILABLE :: VpcLinkStatus
pattern $bVpcLinkStatus_AVAILABLE :: VpcLinkStatus
$mVpcLinkStatus_AVAILABLE :: forall r. VpcLinkStatus -> (Void# -> r) -> (Void# -> r) -> r
VpcLinkStatus_AVAILABLE = VpcLinkStatus' "AVAILABLE"

pattern VpcLinkStatus_DELETING :: VpcLinkStatus
pattern $bVpcLinkStatus_DELETING :: VpcLinkStatus
$mVpcLinkStatus_DELETING :: forall r. VpcLinkStatus -> (Void# -> r) -> (Void# -> r) -> r
VpcLinkStatus_DELETING = VpcLinkStatus' "DELETING"

pattern VpcLinkStatus_FAILED :: VpcLinkStatus
pattern $bVpcLinkStatus_FAILED :: VpcLinkStatus
$mVpcLinkStatus_FAILED :: forall r. VpcLinkStatus -> (Void# -> r) -> (Void# -> r) -> r
VpcLinkStatus_FAILED = VpcLinkStatus' "FAILED"

pattern VpcLinkStatus_PENDING :: VpcLinkStatus
pattern $bVpcLinkStatus_PENDING :: VpcLinkStatus
$mVpcLinkStatus_PENDING :: forall r. VpcLinkStatus -> (Void# -> r) -> (Void# -> r) -> r
VpcLinkStatus_PENDING = VpcLinkStatus' "PENDING"

{-# COMPLETE
  VpcLinkStatus_AVAILABLE,
  VpcLinkStatus_DELETING,
  VpcLinkStatus_FAILED,
  VpcLinkStatus_PENDING,
  VpcLinkStatus'
  #-}