{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Glue.Types.FindMatchesTaskRunProperties where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data FindMatchesTaskRunProperties = FindMatchesTaskRunProperties'
{
FindMatchesTaskRunProperties -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
FindMatchesTaskRunProperties -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
FindMatchesTaskRunProperties -> Maybe Text
jobRunId :: Prelude.Maybe Prelude.Text
}
deriving (FindMatchesTaskRunProperties
-> FindMatchesTaskRunProperties -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FindMatchesTaskRunProperties
-> FindMatchesTaskRunProperties -> Bool
$c/= :: FindMatchesTaskRunProperties
-> FindMatchesTaskRunProperties -> Bool
== :: FindMatchesTaskRunProperties
-> FindMatchesTaskRunProperties -> Bool
$c== :: FindMatchesTaskRunProperties
-> FindMatchesTaskRunProperties -> Bool
Prelude.Eq, ReadPrec [FindMatchesTaskRunProperties]
ReadPrec FindMatchesTaskRunProperties
Int -> ReadS FindMatchesTaskRunProperties
ReadS [FindMatchesTaskRunProperties]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FindMatchesTaskRunProperties]
$creadListPrec :: ReadPrec [FindMatchesTaskRunProperties]
readPrec :: ReadPrec FindMatchesTaskRunProperties
$creadPrec :: ReadPrec FindMatchesTaskRunProperties
readList :: ReadS [FindMatchesTaskRunProperties]
$creadList :: ReadS [FindMatchesTaskRunProperties]
readsPrec :: Int -> ReadS FindMatchesTaskRunProperties
$creadsPrec :: Int -> ReadS FindMatchesTaskRunProperties
Prelude.Read, Int -> FindMatchesTaskRunProperties -> ShowS
[FindMatchesTaskRunProperties] -> ShowS
FindMatchesTaskRunProperties -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FindMatchesTaskRunProperties] -> ShowS
$cshowList :: [FindMatchesTaskRunProperties] -> ShowS
show :: FindMatchesTaskRunProperties -> String
$cshow :: FindMatchesTaskRunProperties -> String
showsPrec :: Int -> FindMatchesTaskRunProperties -> ShowS
$cshowsPrec :: Int -> FindMatchesTaskRunProperties -> ShowS
Prelude.Show, forall x.
Rep FindMatchesTaskRunProperties x -> FindMatchesTaskRunProperties
forall x.
FindMatchesTaskRunProperties -> Rep FindMatchesTaskRunProperties x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep FindMatchesTaskRunProperties x -> FindMatchesTaskRunProperties
$cfrom :: forall x.
FindMatchesTaskRunProperties -> Rep FindMatchesTaskRunProperties x
Prelude.Generic)
newFindMatchesTaskRunProperties ::
FindMatchesTaskRunProperties
newFindMatchesTaskRunProperties :: FindMatchesTaskRunProperties
newFindMatchesTaskRunProperties =
FindMatchesTaskRunProperties'
{ $sel:jobId:FindMatchesTaskRunProperties' :: Maybe Text
jobId =
forall a. Maybe a
Prelude.Nothing,
$sel:jobName:FindMatchesTaskRunProperties' :: Maybe Text
jobName = forall a. Maybe a
Prelude.Nothing,
$sel:jobRunId:FindMatchesTaskRunProperties' :: Maybe Text
jobRunId = forall a. Maybe a
Prelude.Nothing
}
findMatchesTaskRunProperties_jobId :: Lens.Lens' FindMatchesTaskRunProperties (Prelude.Maybe Prelude.Text)
findMatchesTaskRunProperties_jobId :: Lens' FindMatchesTaskRunProperties (Maybe Text)
findMatchesTaskRunProperties_jobId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FindMatchesTaskRunProperties' {Maybe Text
jobId :: Maybe Text
$sel:jobId:FindMatchesTaskRunProperties' :: FindMatchesTaskRunProperties -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: FindMatchesTaskRunProperties
s@FindMatchesTaskRunProperties' {} Maybe Text
a -> FindMatchesTaskRunProperties
s {$sel:jobId:FindMatchesTaskRunProperties' :: Maybe Text
jobId = Maybe Text
a} :: FindMatchesTaskRunProperties)
findMatchesTaskRunProperties_jobName :: Lens.Lens' FindMatchesTaskRunProperties (Prelude.Maybe Prelude.Text)
findMatchesTaskRunProperties_jobName :: Lens' FindMatchesTaskRunProperties (Maybe Text)
findMatchesTaskRunProperties_jobName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FindMatchesTaskRunProperties' {Maybe Text
jobName :: Maybe Text
$sel:jobName:FindMatchesTaskRunProperties' :: FindMatchesTaskRunProperties -> Maybe Text
jobName} -> Maybe Text
jobName) (\s :: FindMatchesTaskRunProperties
s@FindMatchesTaskRunProperties' {} Maybe Text
a -> FindMatchesTaskRunProperties
s {$sel:jobName:FindMatchesTaskRunProperties' :: Maybe Text
jobName = Maybe Text
a} :: FindMatchesTaskRunProperties)
findMatchesTaskRunProperties_jobRunId :: Lens.Lens' FindMatchesTaskRunProperties (Prelude.Maybe Prelude.Text)
findMatchesTaskRunProperties_jobRunId :: Lens' FindMatchesTaskRunProperties (Maybe Text)
findMatchesTaskRunProperties_jobRunId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FindMatchesTaskRunProperties' {Maybe Text
jobRunId :: Maybe Text
$sel:jobRunId:FindMatchesTaskRunProperties' :: FindMatchesTaskRunProperties -> Maybe Text
jobRunId} -> Maybe Text
jobRunId) (\s :: FindMatchesTaskRunProperties
s@FindMatchesTaskRunProperties' {} Maybe Text
a -> FindMatchesTaskRunProperties
s {$sel:jobRunId:FindMatchesTaskRunProperties' :: Maybe Text
jobRunId = Maybe Text
a} :: FindMatchesTaskRunProperties)
instance Data.FromJSON FindMatchesTaskRunProperties where
parseJSON :: Value -> Parser FindMatchesTaskRunProperties
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"FindMatchesTaskRunProperties"
( \Object
x ->
Maybe Text
-> Maybe Text -> Maybe Text -> FindMatchesTaskRunProperties
FindMatchesTaskRunProperties'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"JobId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"JobName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"JobRunId")
)
instance
Prelude.Hashable
FindMatchesTaskRunProperties
where
hashWithSalt :: Int -> FindMatchesTaskRunProperties -> Int
hashWithSalt Int
_salt FindMatchesTaskRunProperties' {Maybe Text
jobRunId :: Maybe Text
jobName :: Maybe Text
jobId :: Maybe Text
$sel:jobRunId:FindMatchesTaskRunProperties' :: FindMatchesTaskRunProperties -> Maybe Text
$sel:jobName:FindMatchesTaskRunProperties' :: FindMatchesTaskRunProperties -> Maybe Text
$sel:jobId:FindMatchesTaskRunProperties' :: FindMatchesTaskRunProperties -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
jobId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
jobName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
jobRunId
instance Prelude.NFData FindMatchesTaskRunProperties where
rnf :: FindMatchesTaskRunProperties -> ()
rnf FindMatchesTaskRunProperties' {Maybe Text
jobRunId :: Maybe Text
jobName :: Maybe Text
jobId :: Maybe Text
$sel:jobRunId:FindMatchesTaskRunProperties' :: FindMatchesTaskRunProperties -> Maybe Text
$sel:jobName:FindMatchesTaskRunProperties' :: FindMatchesTaskRunProperties -> Maybe Text
$sel:jobId:FindMatchesTaskRunProperties' :: FindMatchesTaskRunProperties -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
jobId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
jobName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
jobRunId