module Stratosphere.AppMesh.Route.HttpQueryParameterMatchProperty (
        HttpQueryParameterMatchProperty(..),
        mkHttpQueryParameterMatchProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data HttpQueryParameterMatchProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httpqueryparametermatch.html>
    HttpQueryParameterMatchProperty {HttpQueryParameterMatchProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httpqueryparametermatch.html#cfn-appmesh-route-httpqueryparametermatch-exact>
                                     HttpQueryParameterMatchProperty -> Maybe (Value Text)
exact :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (HttpQueryParameterMatchProperty
-> HttpQueryParameterMatchProperty -> Bool
(HttpQueryParameterMatchProperty
 -> HttpQueryParameterMatchProperty -> Bool)
-> (HttpQueryParameterMatchProperty
    -> HttpQueryParameterMatchProperty -> Bool)
-> Eq HttpQueryParameterMatchProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: HttpQueryParameterMatchProperty
-> HttpQueryParameterMatchProperty -> Bool
== :: HttpQueryParameterMatchProperty
-> HttpQueryParameterMatchProperty -> Bool
$c/= :: HttpQueryParameterMatchProperty
-> HttpQueryParameterMatchProperty -> Bool
/= :: HttpQueryParameterMatchProperty
-> HttpQueryParameterMatchProperty -> Bool
Prelude.Eq, Int -> HttpQueryParameterMatchProperty -> ShowS
[HttpQueryParameterMatchProperty] -> ShowS
HttpQueryParameterMatchProperty -> String
(Int -> HttpQueryParameterMatchProperty -> ShowS)
-> (HttpQueryParameterMatchProperty -> String)
-> ([HttpQueryParameterMatchProperty] -> ShowS)
-> Show HttpQueryParameterMatchProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> HttpQueryParameterMatchProperty -> ShowS
showsPrec :: Int -> HttpQueryParameterMatchProperty -> ShowS
$cshow :: HttpQueryParameterMatchProperty -> String
show :: HttpQueryParameterMatchProperty -> String
$cshowList :: [HttpQueryParameterMatchProperty] -> ShowS
showList :: [HttpQueryParameterMatchProperty] -> ShowS
Prelude.Show)
mkHttpQueryParameterMatchProperty ::
  HttpQueryParameterMatchProperty
mkHttpQueryParameterMatchProperty :: HttpQueryParameterMatchProperty
mkHttpQueryParameterMatchProperty
  = HttpQueryParameterMatchProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), exact :: Maybe (Value Text)
exact = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties HttpQueryParameterMatchProperty where
  toResourceProperties :: HttpQueryParameterMatchProperty -> ResourceProperties
toResourceProperties HttpQueryParameterMatchProperty {Maybe (Value Text)
()
haddock_workaround_ :: HttpQueryParameterMatchProperty -> ()
exact :: HttpQueryParameterMatchProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppMesh::Route.HttpQueryParameterMatch",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Exact" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
exact])}
instance JSON.ToJSON HttpQueryParameterMatchProperty where
  toJSON :: HttpQueryParameterMatchProperty -> Value
toJSON HttpQueryParameterMatchProperty {Maybe (Value Text)
()
haddock_workaround_ :: HttpQueryParameterMatchProperty -> ()
exact :: HttpQueryParameterMatchProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Exact" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
exact]))
instance Property "Exact" HttpQueryParameterMatchProperty where
  type PropertyType "Exact" HttpQueryParameterMatchProperty = Value Prelude.Text
  set :: PropertyType "Exact" HttpQueryParameterMatchProperty
-> HttpQueryParameterMatchProperty
-> HttpQueryParameterMatchProperty
set PropertyType "Exact" HttpQueryParameterMatchProperty
newValue HttpQueryParameterMatchProperty {Maybe (Value Text)
()
haddock_workaround_ :: HttpQueryParameterMatchProperty -> ()
exact :: HttpQueryParameterMatchProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
..}
    = HttpQueryParameterMatchProperty
        {exact :: Maybe (Value Text)
exact = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Exact" HttpQueryParameterMatchProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}