{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Glue.Types.FindMatchesTaskRunProperties
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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

-- | Specifies configuration properties for a Find Matches task run.
--
-- /See:/ 'newFindMatchesTaskRunProperties' smart constructor.
data FindMatchesTaskRunProperties = FindMatchesTaskRunProperties'
  { -- | The job ID for the Find Matches task run.
    FindMatchesTaskRunProperties -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
    -- | The name assigned to the job for the Find Matches task run.
    FindMatchesTaskRunProperties -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
    -- | The job run ID for the Find Matches task run.
    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)

-- |
-- Create a value of 'FindMatchesTaskRunProperties' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'jobId', 'findMatchesTaskRunProperties_jobId' - The job ID for the Find Matches task run.
--
-- 'jobName', 'findMatchesTaskRunProperties_jobName' - The name assigned to the job for the Find Matches task run.
--
-- 'jobRunId', 'findMatchesTaskRunProperties_jobRunId' - The job run ID for the Find Matches task run.
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
    }

-- | The job ID for the Find Matches task run.
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)

-- | The name assigned to the job for the Find Matches task run.
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)

-- | The job run ID for the Find Matches task run.
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