{-# 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.AppMesh.Types.VirtualGatewayStatusCode
-- 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.AppMesh.Types.VirtualGatewayStatusCode
  ( VirtualGatewayStatusCode
      ( ..,
        VirtualGatewayStatusCode_ACTIVE,
        VirtualGatewayStatusCode_DELETED,
        VirtualGatewayStatusCode_INACTIVE
      ),
  )
where

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

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

pattern VirtualGatewayStatusCode_ACTIVE :: VirtualGatewayStatusCode
pattern $bVirtualGatewayStatusCode_ACTIVE :: VirtualGatewayStatusCode
$mVirtualGatewayStatusCode_ACTIVE :: forall r.
VirtualGatewayStatusCode -> (Void# -> r) -> (Void# -> r) -> r
VirtualGatewayStatusCode_ACTIVE = VirtualGatewayStatusCode' "ACTIVE"

pattern VirtualGatewayStatusCode_DELETED :: VirtualGatewayStatusCode
pattern $bVirtualGatewayStatusCode_DELETED :: VirtualGatewayStatusCode
$mVirtualGatewayStatusCode_DELETED :: forall r.
VirtualGatewayStatusCode -> (Void# -> r) -> (Void# -> r) -> r
VirtualGatewayStatusCode_DELETED = VirtualGatewayStatusCode' "DELETED"

pattern VirtualGatewayStatusCode_INACTIVE :: VirtualGatewayStatusCode
pattern $bVirtualGatewayStatusCode_INACTIVE :: VirtualGatewayStatusCode
$mVirtualGatewayStatusCode_INACTIVE :: forall r.
VirtualGatewayStatusCode -> (Void# -> r) -> (Void# -> r) -> r
VirtualGatewayStatusCode_INACTIVE = VirtualGatewayStatusCode' "INACTIVE"

{-# COMPLETE
  VirtualGatewayStatusCode_ACTIVE,
  VirtualGatewayStatusCode_DELETED,
  VirtualGatewayStatusCode_INACTIVE,
  VirtualGatewayStatusCode'
  #-}