{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.AppMesh.Types.DefaultGatewayRouteRewrite
( DefaultGatewayRouteRewrite
( ..,
DefaultGatewayRouteRewrite_DISABLED,
DefaultGatewayRouteRewrite_ENABLED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype DefaultGatewayRouteRewrite = DefaultGatewayRouteRewrite'
{ DefaultGatewayRouteRewrite -> Text
fromDefaultGatewayRouteRewrite ::
Core.Text
}
deriving stock
( Int -> DefaultGatewayRouteRewrite -> ShowS
[DefaultGatewayRouteRewrite] -> ShowS
DefaultGatewayRouteRewrite -> String
(Int -> DefaultGatewayRouteRewrite -> ShowS)
-> (DefaultGatewayRouteRewrite -> String)
-> ([DefaultGatewayRouteRewrite] -> ShowS)
-> Show DefaultGatewayRouteRewrite
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DefaultGatewayRouteRewrite] -> ShowS
$cshowList :: [DefaultGatewayRouteRewrite] -> ShowS
show :: DefaultGatewayRouteRewrite -> String
$cshow :: DefaultGatewayRouteRewrite -> String
showsPrec :: Int -> DefaultGatewayRouteRewrite -> ShowS
$cshowsPrec :: Int -> DefaultGatewayRouteRewrite -> ShowS
Prelude.Show,
ReadPrec [DefaultGatewayRouteRewrite]
ReadPrec DefaultGatewayRouteRewrite
Int -> ReadS DefaultGatewayRouteRewrite
ReadS [DefaultGatewayRouteRewrite]
(Int -> ReadS DefaultGatewayRouteRewrite)
-> ReadS [DefaultGatewayRouteRewrite]
-> ReadPrec DefaultGatewayRouteRewrite
-> ReadPrec [DefaultGatewayRouteRewrite]
-> Read DefaultGatewayRouteRewrite
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DefaultGatewayRouteRewrite]
$creadListPrec :: ReadPrec [DefaultGatewayRouteRewrite]
readPrec :: ReadPrec DefaultGatewayRouteRewrite
$creadPrec :: ReadPrec DefaultGatewayRouteRewrite
readList :: ReadS [DefaultGatewayRouteRewrite]
$creadList :: ReadS [DefaultGatewayRouteRewrite]
readsPrec :: Int -> ReadS DefaultGatewayRouteRewrite
$creadsPrec :: Int -> ReadS DefaultGatewayRouteRewrite
Prelude.Read,
DefaultGatewayRouteRewrite -> DefaultGatewayRouteRewrite -> Bool
(DefaultGatewayRouteRewrite -> DefaultGatewayRouteRewrite -> Bool)
-> (DefaultGatewayRouteRewrite
-> DefaultGatewayRouteRewrite -> Bool)
-> Eq DefaultGatewayRouteRewrite
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DefaultGatewayRouteRewrite -> DefaultGatewayRouteRewrite -> Bool
$c/= :: DefaultGatewayRouteRewrite -> DefaultGatewayRouteRewrite -> Bool
== :: DefaultGatewayRouteRewrite -> DefaultGatewayRouteRewrite -> Bool
$c== :: DefaultGatewayRouteRewrite -> DefaultGatewayRouteRewrite -> Bool
Prelude.Eq,
Eq DefaultGatewayRouteRewrite
Eq DefaultGatewayRouteRewrite
-> (DefaultGatewayRouteRewrite
-> DefaultGatewayRouteRewrite -> Ordering)
-> (DefaultGatewayRouteRewrite
-> DefaultGatewayRouteRewrite -> Bool)
-> (DefaultGatewayRouteRewrite
-> DefaultGatewayRouteRewrite -> Bool)
-> (DefaultGatewayRouteRewrite
-> DefaultGatewayRouteRewrite -> Bool)
-> (DefaultGatewayRouteRewrite
-> DefaultGatewayRouteRewrite -> Bool)
-> (DefaultGatewayRouteRewrite
-> DefaultGatewayRouteRewrite -> DefaultGatewayRouteRewrite)
-> (DefaultGatewayRouteRewrite
-> DefaultGatewayRouteRewrite -> DefaultGatewayRouteRewrite)
-> Ord DefaultGatewayRouteRewrite
DefaultGatewayRouteRewrite -> DefaultGatewayRouteRewrite -> Bool
DefaultGatewayRouteRewrite
-> DefaultGatewayRouteRewrite -> Ordering
DefaultGatewayRouteRewrite
-> DefaultGatewayRouteRewrite -> DefaultGatewayRouteRewrite
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 :: DefaultGatewayRouteRewrite
-> DefaultGatewayRouteRewrite -> DefaultGatewayRouteRewrite
$cmin :: DefaultGatewayRouteRewrite
-> DefaultGatewayRouteRewrite -> DefaultGatewayRouteRewrite
max :: DefaultGatewayRouteRewrite
-> DefaultGatewayRouteRewrite -> DefaultGatewayRouteRewrite
$cmax :: DefaultGatewayRouteRewrite
-> DefaultGatewayRouteRewrite -> DefaultGatewayRouteRewrite
>= :: DefaultGatewayRouteRewrite -> DefaultGatewayRouteRewrite -> Bool
$c>= :: DefaultGatewayRouteRewrite -> DefaultGatewayRouteRewrite -> Bool
> :: DefaultGatewayRouteRewrite -> DefaultGatewayRouteRewrite -> Bool
$c> :: DefaultGatewayRouteRewrite -> DefaultGatewayRouteRewrite -> Bool
<= :: DefaultGatewayRouteRewrite -> DefaultGatewayRouteRewrite -> Bool
$c<= :: DefaultGatewayRouteRewrite -> DefaultGatewayRouteRewrite -> Bool
< :: DefaultGatewayRouteRewrite -> DefaultGatewayRouteRewrite -> Bool
$c< :: DefaultGatewayRouteRewrite -> DefaultGatewayRouteRewrite -> Bool
compare :: DefaultGatewayRouteRewrite
-> DefaultGatewayRouteRewrite -> Ordering
$ccompare :: DefaultGatewayRouteRewrite
-> DefaultGatewayRouteRewrite -> Ordering
$cp1Ord :: Eq DefaultGatewayRouteRewrite
Prelude.Ord,
(forall x.
DefaultGatewayRouteRewrite -> Rep DefaultGatewayRouteRewrite x)
-> (forall x.
Rep DefaultGatewayRouteRewrite x -> DefaultGatewayRouteRewrite)
-> Generic DefaultGatewayRouteRewrite
forall x.
Rep DefaultGatewayRouteRewrite x -> DefaultGatewayRouteRewrite
forall x.
DefaultGatewayRouteRewrite -> Rep DefaultGatewayRouteRewrite x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DefaultGatewayRouteRewrite x -> DefaultGatewayRouteRewrite
$cfrom :: forall x.
DefaultGatewayRouteRewrite -> Rep DefaultGatewayRouteRewrite x
Prelude.Generic
)
deriving newtype
( Int -> DefaultGatewayRouteRewrite -> Int
DefaultGatewayRouteRewrite -> Int
(Int -> DefaultGatewayRouteRewrite -> Int)
-> (DefaultGatewayRouteRewrite -> Int)
-> Hashable DefaultGatewayRouteRewrite
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DefaultGatewayRouteRewrite -> Int
$chash :: DefaultGatewayRouteRewrite -> Int
hashWithSalt :: Int -> DefaultGatewayRouteRewrite -> Int
$chashWithSalt :: Int -> DefaultGatewayRouteRewrite -> Int
Prelude.Hashable,
DefaultGatewayRouteRewrite -> ()
(DefaultGatewayRouteRewrite -> ())
-> NFData DefaultGatewayRouteRewrite
forall a. (a -> ()) -> NFData a
rnf :: DefaultGatewayRouteRewrite -> ()
$crnf :: DefaultGatewayRouteRewrite -> ()
Prelude.NFData,
Text -> Either String DefaultGatewayRouteRewrite
(Text -> Either String DefaultGatewayRouteRewrite)
-> FromText DefaultGatewayRouteRewrite
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DefaultGatewayRouteRewrite
$cfromText :: Text -> Either String DefaultGatewayRouteRewrite
Core.FromText,
DefaultGatewayRouteRewrite -> Text
(DefaultGatewayRouteRewrite -> Text)
-> ToText DefaultGatewayRouteRewrite
forall a. (a -> Text) -> ToText a
toText :: DefaultGatewayRouteRewrite -> Text
$ctoText :: DefaultGatewayRouteRewrite -> Text
Core.ToText,
DefaultGatewayRouteRewrite -> ByteString
(DefaultGatewayRouteRewrite -> ByteString)
-> ToByteString DefaultGatewayRouteRewrite
forall a. (a -> ByteString) -> ToByteString a
toBS :: DefaultGatewayRouteRewrite -> ByteString
$ctoBS :: DefaultGatewayRouteRewrite -> ByteString
Core.ToByteString,
DefaultGatewayRouteRewrite -> ByteStringBuilder
(DefaultGatewayRouteRewrite -> ByteStringBuilder)
-> ToLog DefaultGatewayRouteRewrite
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DefaultGatewayRouteRewrite -> ByteStringBuilder
$cbuild :: DefaultGatewayRouteRewrite -> ByteStringBuilder
Core.ToLog,
HeaderName -> DefaultGatewayRouteRewrite -> [Header]
(HeaderName -> DefaultGatewayRouteRewrite -> [Header])
-> ToHeader DefaultGatewayRouteRewrite
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DefaultGatewayRouteRewrite -> [Header]
$ctoHeader :: HeaderName -> DefaultGatewayRouteRewrite -> [Header]
Core.ToHeader,
DefaultGatewayRouteRewrite -> QueryString
(DefaultGatewayRouteRewrite -> QueryString)
-> ToQuery DefaultGatewayRouteRewrite
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DefaultGatewayRouteRewrite -> QueryString
$ctoQuery :: DefaultGatewayRouteRewrite -> QueryString
Core.ToQuery,
Value -> Parser [DefaultGatewayRouteRewrite]
Value -> Parser DefaultGatewayRouteRewrite
(Value -> Parser DefaultGatewayRouteRewrite)
-> (Value -> Parser [DefaultGatewayRouteRewrite])
-> FromJSON DefaultGatewayRouteRewrite
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DefaultGatewayRouteRewrite]
$cparseJSONList :: Value -> Parser [DefaultGatewayRouteRewrite]
parseJSON :: Value -> Parser DefaultGatewayRouteRewrite
$cparseJSON :: Value -> Parser DefaultGatewayRouteRewrite
Core.FromJSON,
FromJSONKeyFunction [DefaultGatewayRouteRewrite]
FromJSONKeyFunction DefaultGatewayRouteRewrite
FromJSONKeyFunction DefaultGatewayRouteRewrite
-> FromJSONKeyFunction [DefaultGatewayRouteRewrite]
-> FromJSONKey DefaultGatewayRouteRewrite
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DefaultGatewayRouteRewrite]
$cfromJSONKeyList :: FromJSONKeyFunction [DefaultGatewayRouteRewrite]
fromJSONKey :: FromJSONKeyFunction DefaultGatewayRouteRewrite
$cfromJSONKey :: FromJSONKeyFunction DefaultGatewayRouteRewrite
Core.FromJSONKey,
[DefaultGatewayRouteRewrite] -> Encoding
[DefaultGatewayRouteRewrite] -> Value
DefaultGatewayRouteRewrite -> Encoding
DefaultGatewayRouteRewrite -> Value
(DefaultGatewayRouteRewrite -> Value)
-> (DefaultGatewayRouteRewrite -> Encoding)
-> ([DefaultGatewayRouteRewrite] -> Value)
-> ([DefaultGatewayRouteRewrite] -> Encoding)
-> ToJSON DefaultGatewayRouteRewrite
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DefaultGatewayRouteRewrite] -> Encoding
$ctoEncodingList :: [DefaultGatewayRouteRewrite] -> Encoding
toJSONList :: [DefaultGatewayRouteRewrite] -> Value
$ctoJSONList :: [DefaultGatewayRouteRewrite] -> Value
toEncoding :: DefaultGatewayRouteRewrite -> Encoding
$ctoEncoding :: DefaultGatewayRouteRewrite -> Encoding
toJSON :: DefaultGatewayRouteRewrite -> Value
$ctoJSON :: DefaultGatewayRouteRewrite -> Value
Core.ToJSON,
ToJSONKeyFunction [DefaultGatewayRouteRewrite]
ToJSONKeyFunction DefaultGatewayRouteRewrite
ToJSONKeyFunction DefaultGatewayRouteRewrite
-> ToJSONKeyFunction [DefaultGatewayRouteRewrite]
-> ToJSONKey DefaultGatewayRouteRewrite
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DefaultGatewayRouteRewrite]
$ctoJSONKeyList :: ToJSONKeyFunction [DefaultGatewayRouteRewrite]
toJSONKey :: ToJSONKeyFunction DefaultGatewayRouteRewrite
$ctoJSONKey :: ToJSONKeyFunction DefaultGatewayRouteRewrite
Core.ToJSONKey,
[Node] -> Either String DefaultGatewayRouteRewrite
([Node] -> Either String DefaultGatewayRouteRewrite)
-> FromXML DefaultGatewayRouteRewrite
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DefaultGatewayRouteRewrite
$cparseXML :: [Node] -> Either String DefaultGatewayRouteRewrite
Core.FromXML,
DefaultGatewayRouteRewrite -> XML
(DefaultGatewayRouteRewrite -> XML)
-> ToXML DefaultGatewayRouteRewrite
forall a. (a -> XML) -> ToXML a
toXML :: DefaultGatewayRouteRewrite -> XML
$ctoXML :: DefaultGatewayRouteRewrite -> XML
Core.ToXML
)
pattern DefaultGatewayRouteRewrite_DISABLED :: DefaultGatewayRouteRewrite
pattern $bDefaultGatewayRouteRewrite_DISABLED :: DefaultGatewayRouteRewrite
$mDefaultGatewayRouteRewrite_DISABLED :: forall r.
DefaultGatewayRouteRewrite -> (Void# -> r) -> (Void# -> r) -> r
DefaultGatewayRouteRewrite_DISABLED = DefaultGatewayRouteRewrite' "DISABLED"
pattern DefaultGatewayRouteRewrite_ENABLED :: DefaultGatewayRouteRewrite
pattern $bDefaultGatewayRouteRewrite_ENABLED :: DefaultGatewayRouteRewrite
$mDefaultGatewayRouteRewrite_ENABLED :: forall r.
DefaultGatewayRouteRewrite -> (Void# -> r) -> (Void# -> r) -> r
DefaultGatewayRouteRewrite_ENABLED = DefaultGatewayRouteRewrite' "ENABLED"
{-# COMPLETE
DefaultGatewayRouteRewrite_DISABLED,
DefaultGatewayRouteRewrite_ENABLED,
DefaultGatewayRouteRewrite'
#-}