{-# 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.GatewayRouteStatusCode
-- 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.GatewayRouteStatusCode
  ( GatewayRouteStatusCode
      ( ..,
        GatewayRouteStatusCode_ACTIVE,
        GatewayRouteStatusCode_DELETED,
        GatewayRouteStatusCode_INACTIVE
      ),
  )
where

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

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

pattern GatewayRouteStatusCode_ACTIVE :: GatewayRouteStatusCode
pattern $bGatewayRouteStatusCode_ACTIVE :: GatewayRouteStatusCode
$mGatewayRouteStatusCode_ACTIVE :: forall r.
GatewayRouteStatusCode -> (Void# -> r) -> (Void# -> r) -> r
GatewayRouteStatusCode_ACTIVE = GatewayRouteStatusCode' "ACTIVE"

pattern GatewayRouteStatusCode_DELETED :: GatewayRouteStatusCode
pattern $bGatewayRouteStatusCode_DELETED :: GatewayRouteStatusCode
$mGatewayRouteStatusCode_DELETED :: forall r.
GatewayRouteStatusCode -> (Void# -> r) -> (Void# -> r) -> r
GatewayRouteStatusCode_DELETED = GatewayRouteStatusCode' "DELETED"

pattern GatewayRouteStatusCode_INACTIVE :: GatewayRouteStatusCode
pattern $bGatewayRouteStatusCode_INACTIVE :: GatewayRouteStatusCode
$mGatewayRouteStatusCode_INACTIVE :: forall r.
GatewayRouteStatusCode -> (Void# -> r) -> (Void# -> r) -> r
GatewayRouteStatusCode_INACTIVE = GatewayRouteStatusCode' "INACTIVE"

{-# COMPLETE
  GatewayRouteStatusCode_ACTIVE,
  GatewayRouteStatusCode_DELETED,
  GatewayRouteStatusCode_INACTIVE,
  GatewayRouteStatusCode'
  #-}