{-# 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.Personalize.Types.DatasetImportJob
-- 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.Personalize.Types.DatasetImportJob where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Personalize.Types.DataSource
import Amazonka.Personalize.Types.ImportMode
import qualified Amazonka.Prelude as Prelude

-- | Describes a job that imports training data from a data source (Amazon S3
-- bucket) to an Amazon Personalize dataset. For more information, see
-- <https://docs.aws.amazon.com/personalize/latest/dg/API_CreateDatasetImportJob.html CreateDatasetImportJob>.
--
-- A dataset import job can be in one of the following states:
--
-- -   CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
--
-- /See:/ 'newDatasetImportJob' smart constructor.
data DatasetImportJob = DatasetImportJob'
  { -- | The creation date and time (in Unix time) of the dataset import job.
    DatasetImportJob -> Maybe POSIX
creationDateTime :: Prelude.Maybe Data.POSIX,
    -- | The Amazon S3 bucket that contains the training data to import.
    DatasetImportJob -> Maybe DataSource
dataSource :: Prelude.Maybe DataSource,
    -- | The Amazon Resource Name (ARN) of the dataset that receives the imported
    -- data.
    DatasetImportJob -> Maybe Text
datasetArn :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the dataset import job.
    DatasetImportJob -> Maybe Text
datasetImportJobArn :: Prelude.Maybe Prelude.Text,
    -- | If a dataset import job fails, provides the reason why.
    DatasetImportJob -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
    -- | The import mode used by the dataset import job to import new records.
    DatasetImportJob -> Maybe ImportMode
importMode :: Prelude.Maybe ImportMode,
    -- | The name of the import job.
    DatasetImportJob -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
    -- | The date and time (in Unix time) the dataset was last updated.
    DatasetImportJob -> Maybe POSIX
lastUpdatedDateTime :: Prelude.Maybe Data.POSIX,
    -- | Whether the job publishes metrics to Amazon S3 for a metric attribution.
    DatasetImportJob -> Maybe Bool
publishAttributionMetricsToS3 :: Prelude.Maybe Prelude.Bool,
    -- | The ARN of the IAM role that has permissions to read from the Amazon S3
    -- data source.
    DatasetImportJob -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text,
    -- | The status of the dataset import job.
    --
    -- A dataset import job can be in one of the following states:
    --
    -- -   CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
    DatasetImportJob -> Maybe Text
status :: Prelude.Maybe Prelude.Text
  }
  deriving (DatasetImportJob -> DatasetImportJob -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DatasetImportJob -> DatasetImportJob -> Bool
$c/= :: DatasetImportJob -> DatasetImportJob -> Bool
== :: DatasetImportJob -> DatasetImportJob -> Bool
$c== :: DatasetImportJob -> DatasetImportJob -> Bool
Prelude.Eq, ReadPrec [DatasetImportJob]
ReadPrec DatasetImportJob
Int -> ReadS DatasetImportJob
ReadS [DatasetImportJob]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DatasetImportJob]
$creadListPrec :: ReadPrec [DatasetImportJob]
readPrec :: ReadPrec DatasetImportJob
$creadPrec :: ReadPrec DatasetImportJob
readList :: ReadS [DatasetImportJob]
$creadList :: ReadS [DatasetImportJob]
readsPrec :: Int -> ReadS DatasetImportJob
$creadsPrec :: Int -> ReadS DatasetImportJob
Prelude.Read, Int -> DatasetImportJob -> ShowS
[DatasetImportJob] -> ShowS
DatasetImportJob -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DatasetImportJob] -> ShowS
$cshowList :: [DatasetImportJob] -> ShowS
show :: DatasetImportJob -> String
$cshow :: DatasetImportJob -> String
showsPrec :: Int -> DatasetImportJob -> ShowS
$cshowsPrec :: Int -> DatasetImportJob -> ShowS
Prelude.Show, forall x. Rep DatasetImportJob x -> DatasetImportJob
forall x. DatasetImportJob -> Rep DatasetImportJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DatasetImportJob x -> DatasetImportJob
$cfrom :: forall x. DatasetImportJob -> Rep DatasetImportJob x
Prelude.Generic)

-- |
-- Create a value of 'DatasetImportJob' 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:
--
-- 'creationDateTime', 'datasetImportJob_creationDateTime' - The creation date and time (in Unix time) of the dataset import job.
--
-- 'dataSource', 'datasetImportJob_dataSource' - The Amazon S3 bucket that contains the training data to import.
--
-- 'datasetArn', 'datasetImportJob_datasetArn' - The Amazon Resource Name (ARN) of the dataset that receives the imported
-- data.
--
-- 'datasetImportJobArn', 'datasetImportJob_datasetImportJobArn' - The ARN of the dataset import job.
--
-- 'failureReason', 'datasetImportJob_failureReason' - If a dataset import job fails, provides the reason why.
--
-- 'importMode', 'datasetImportJob_importMode' - The import mode used by the dataset import job to import new records.
--
-- 'jobName', 'datasetImportJob_jobName' - The name of the import job.
--
-- 'lastUpdatedDateTime', 'datasetImportJob_lastUpdatedDateTime' - The date and time (in Unix time) the dataset was last updated.
--
-- 'publishAttributionMetricsToS3', 'datasetImportJob_publishAttributionMetricsToS3' - Whether the job publishes metrics to Amazon S3 for a metric attribution.
--
-- 'roleArn', 'datasetImportJob_roleArn' - The ARN of the IAM role that has permissions to read from the Amazon S3
-- data source.
--
-- 'status', 'datasetImportJob_status' - The status of the dataset import job.
--
-- A dataset import job can be in one of the following states:
--
-- -   CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
newDatasetImportJob ::
  DatasetImportJob
newDatasetImportJob :: DatasetImportJob
newDatasetImportJob =
  DatasetImportJob'
    { $sel:creationDateTime:DatasetImportJob' :: Maybe POSIX
creationDateTime =
        forall a. Maybe a
Prelude.Nothing,
      $sel:dataSource:DatasetImportJob' :: Maybe DataSource
dataSource = forall a. Maybe a
Prelude.Nothing,
      $sel:datasetArn:DatasetImportJob' :: Maybe Text
datasetArn = forall a. Maybe a
Prelude.Nothing,
      $sel:datasetImportJobArn:DatasetImportJob' :: Maybe Text
datasetImportJobArn = forall a. Maybe a
Prelude.Nothing,
      $sel:failureReason:DatasetImportJob' :: Maybe Text
failureReason = forall a. Maybe a
Prelude.Nothing,
      $sel:importMode:DatasetImportJob' :: Maybe ImportMode
importMode = forall a. Maybe a
Prelude.Nothing,
      $sel:jobName:DatasetImportJob' :: Maybe Text
jobName = forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedDateTime:DatasetImportJob' :: Maybe POSIX
lastUpdatedDateTime = forall a. Maybe a
Prelude.Nothing,
      $sel:publishAttributionMetricsToS3:DatasetImportJob' :: Maybe Bool
publishAttributionMetricsToS3 = forall a. Maybe a
Prelude.Nothing,
      $sel:roleArn:DatasetImportJob' :: Maybe Text
roleArn = forall a. Maybe a
Prelude.Nothing,
      $sel:status:DatasetImportJob' :: Maybe Text
status = forall a. Maybe a
Prelude.Nothing
    }

-- | The creation date and time (in Unix time) of the dataset import job.
datasetImportJob_creationDateTime :: Lens.Lens' DatasetImportJob (Prelude.Maybe Prelude.UTCTime)
datasetImportJob_creationDateTime :: Lens' DatasetImportJob (Maybe UTCTime)
datasetImportJob_creationDateTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetImportJob' {Maybe POSIX
creationDateTime :: Maybe POSIX
$sel:creationDateTime:DatasetImportJob' :: DatasetImportJob -> Maybe POSIX
creationDateTime} -> Maybe POSIX
creationDateTime) (\s :: DatasetImportJob
s@DatasetImportJob' {} Maybe POSIX
a -> DatasetImportJob
s {$sel:creationDateTime:DatasetImportJob' :: Maybe POSIX
creationDateTime = Maybe POSIX
a} :: DatasetImportJob) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The Amazon S3 bucket that contains the training data to import.
datasetImportJob_dataSource :: Lens.Lens' DatasetImportJob (Prelude.Maybe DataSource)
datasetImportJob_dataSource :: Lens' DatasetImportJob (Maybe DataSource)
datasetImportJob_dataSource = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetImportJob' {Maybe DataSource
dataSource :: Maybe DataSource
$sel:dataSource:DatasetImportJob' :: DatasetImportJob -> Maybe DataSource
dataSource} -> Maybe DataSource
dataSource) (\s :: DatasetImportJob
s@DatasetImportJob' {} Maybe DataSource
a -> DatasetImportJob
s {$sel:dataSource:DatasetImportJob' :: Maybe DataSource
dataSource = Maybe DataSource
a} :: DatasetImportJob)

-- | The Amazon Resource Name (ARN) of the dataset that receives the imported
-- data.
datasetImportJob_datasetArn :: Lens.Lens' DatasetImportJob (Prelude.Maybe Prelude.Text)
datasetImportJob_datasetArn :: Lens' DatasetImportJob (Maybe Text)
datasetImportJob_datasetArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetImportJob' {Maybe Text
datasetArn :: Maybe Text
$sel:datasetArn:DatasetImportJob' :: DatasetImportJob -> Maybe Text
datasetArn} -> Maybe Text
datasetArn) (\s :: DatasetImportJob
s@DatasetImportJob' {} Maybe Text
a -> DatasetImportJob
s {$sel:datasetArn:DatasetImportJob' :: Maybe Text
datasetArn = Maybe Text
a} :: DatasetImportJob)

-- | The ARN of the dataset import job.
datasetImportJob_datasetImportJobArn :: Lens.Lens' DatasetImportJob (Prelude.Maybe Prelude.Text)
datasetImportJob_datasetImportJobArn :: Lens' DatasetImportJob (Maybe Text)
datasetImportJob_datasetImportJobArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetImportJob' {Maybe Text
datasetImportJobArn :: Maybe Text
$sel:datasetImportJobArn:DatasetImportJob' :: DatasetImportJob -> Maybe Text
datasetImportJobArn} -> Maybe Text
datasetImportJobArn) (\s :: DatasetImportJob
s@DatasetImportJob' {} Maybe Text
a -> DatasetImportJob
s {$sel:datasetImportJobArn:DatasetImportJob' :: Maybe Text
datasetImportJobArn = Maybe Text
a} :: DatasetImportJob)

-- | If a dataset import job fails, provides the reason why.
datasetImportJob_failureReason :: Lens.Lens' DatasetImportJob (Prelude.Maybe Prelude.Text)
datasetImportJob_failureReason :: Lens' DatasetImportJob (Maybe Text)
datasetImportJob_failureReason = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetImportJob' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:DatasetImportJob' :: DatasetImportJob -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: DatasetImportJob
s@DatasetImportJob' {} Maybe Text
a -> DatasetImportJob
s {$sel:failureReason:DatasetImportJob' :: Maybe Text
failureReason = Maybe Text
a} :: DatasetImportJob)

-- | The import mode used by the dataset import job to import new records.
datasetImportJob_importMode :: Lens.Lens' DatasetImportJob (Prelude.Maybe ImportMode)
datasetImportJob_importMode :: Lens' DatasetImportJob (Maybe ImportMode)
datasetImportJob_importMode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetImportJob' {Maybe ImportMode
importMode :: Maybe ImportMode
$sel:importMode:DatasetImportJob' :: DatasetImportJob -> Maybe ImportMode
importMode} -> Maybe ImportMode
importMode) (\s :: DatasetImportJob
s@DatasetImportJob' {} Maybe ImportMode
a -> DatasetImportJob
s {$sel:importMode:DatasetImportJob' :: Maybe ImportMode
importMode = Maybe ImportMode
a} :: DatasetImportJob)

-- | The name of the import job.
datasetImportJob_jobName :: Lens.Lens' DatasetImportJob (Prelude.Maybe Prelude.Text)
datasetImportJob_jobName :: Lens' DatasetImportJob (Maybe Text)
datasetImportJob_jobName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetImportJob' {Maybe Text
jobName :: Maybe Text
$sel:jobName:DatasetImportJob' :: DatasetImportJob -> Maybe Text
jobName} -> Maybe Text
jobName) (\s :: DatasetImportJob
s@DatasetImportJob' {} Maybe Text
a -> DatasetImportJob
s {$sel:jobName:DatasetImportJob' :: Maybe Text
jobName = Maybe Text
a} :: DatasetImportJob)

-- | The date and time (in Unix time) the dataset was last updated.
datasetImportJob_lastUpdatedDateTime :: Lens.Lens' DatasetImportJob (Prelude.Maybe Prelude.UTCTime)
datasetImportJob_lastUpdatedDateTime :: Lens' DatasetImportJob (Maybe UTCTime)
datasetImportJob_lastUpdatedDateTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetImportJob' {Maybe POSIX
lastUpdatedDateTime :: Maybe POSIX
$sel:lastUpdatedDateTime:DatasetImportJob' :: DatasetImportJob -> Maybe POSIX
lastUpdatedDateTime} -> Maybe POSIX
lastUpdatedDateTime) (\s :: DatasetImportJob
s@DatasetImportJob' {} Maybe POSIX
a -> DatasetImportJob
s {$sel:lastUpdatedDateTime:DatasetImportJob' :: Maybe POSIX
lastUpdatedDateTime = Maybe POSIX
a} :: DatasetImportJob) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | Whether the job publishes metrics to Amazon S3 for a metric attribution.
datasetImportJob_publishAttributionMetricsToS3 :: Lens.Lens' DatasetImportJob (Prelude.Maybe Prelude.Bool)
datasetImportJob_publishAttributionMetricsToS3 :: Lens' DatasetImportJob (Maybe Bool)
datasetImportJob_publishAttributionMetricsToS3 = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetImportJob' {Maybe Bool
publishAttributionMetricsToS3 :: Maybe Bool
$sel:publishAttributionMetricsToS3:DatasetImportJob' :: DatasetImportJob -> Maybe Bool
publishAttributionMetricsToS3} -> Maybe Bool
publishAttributionMetricsToS3) (\s :: DatasetImportJob
s@DatasetImportJob' {} Maybe Bool
a -> DatasetImportJob
s {$sel:publishAttributionMetricsToS3:DatasetImportJob' :: Maybe Bool
publishAttributionMetricsToS3 = Maybe Bool
a} :: DatasetImportJob)

-- | The ARN of the IAM role that has permissions to read from the Amazon S3
-- data source.
datasetImportJob_roleArn :: Lens.Lens' DatasetImportJob (Prelude.Maybe Prelude.Text)
datasetImportJob_roleArn :: Lens' DatasetImportJob (Maybe Text)
datasetImportJob_roleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetImportJob' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:DatasetImportJob' :: DatasetImportJob -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: DatasetImportJob
s@DatasetImportJob' {} Maybe Text
a -> DatasetImportJob
s {$sel:roleArn:DatasetImportJob' :: Maybe Text
roleArn = Maybe Text
a} :: DatasetImportJob)

-- | The status of the dataset import job.
--
-- A dataset import job can be in one of the following states:
--
-- -   CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
datasetImportJob_status :: Lens.Lens' DatasetImportJob (Prelude.Maybe Prelude.Text)
datasetImportJob_status :: Lens' DatasetImportJob (Maybe Text)
datasetImportJob_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetImportJob' {Maybe Text
status :: Maybe Text
$sel:status:DatasetImportJob' :: DatasetImportJob -> Maybe Text
status} -> Maybe Text
status) (\s :: DatasetImportJob
s@DatasetImportJob' {} Maybe Text
a -> DatasetImportJob
s {$sel:status:DatasetImportJob' :: Maybe Text
status = Maybe Text
a} :: DatasetImportJob)

instance Data.FromJSON DatasetImportJob where
  parseJSON :: Value -> Parser DatasetImportJob
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"DatasetImportJob"
      ( \Object
x ->
          Maybe POSIX
-> Maybe DataSource
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ImportMode
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> DatasetImportJob
DatasetImportJob'
            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
"creationDateTime")
            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
"dataSource")
            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
"datasetArn")
            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
"datasetImportJobArn")
            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
"failureReason")
            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
"importMode")
            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
"lastUpdatedDateTime")
            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
"publishAttributionMetricsToS3")
            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
"roleArn")
            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
"status")
      )

instance Prelude.Hashable DatasetImportJob where
  hashWithSalt :: Int -> DatasetImportJob -> Int
hashWithSalt Int
_salt DatasetImportJob' {Maybe Bool
Maybe Text
Maybe POSIX
Maybe DataSource
Maybe ImportMode
status :: Maybe Text
roleArn :: Maybe Text
publishAttributionMetricsToS3 :: Maybe Bool
lastUpdatedDateTime :: Maybe POSIX
jobName :: Maybe Text
importMode :: Maybe ImportMode
failureReason :: Maybe Text
datasetImportJobArn :: Maybe Text
datasetArn :: Maybe Text
dataSource :: Maybe DataSource
creationDateTime :: Maybe POSIX
$sel:status:DatasetImportJob' :: DatasetImportJob -> Maybe Text
$sel:roleArn:DatasetImportJob' :: DatasetImportJob -> Maybe Text
$sel:publishAttributionMetricsToS3:DatasetImportJob' :: DatasetImportJob -> Maybe Bool
$sel:lastUpdatedDateTime:DatasetImportJob' :: DatasetImportJob -> Maybe POSIX
$sel:jobName:DatasetImportJob' :: DatasetImportJob -> Maybe Text
$sel:importMode:DatasetImportJob' :: DatasetImportJob -> Maybe ImportMode
$sel:failureReason:DatasetImportJob' :: DatasetImportJob -> Maybe Text
$sel:datasetImportJobArn:DatasetImportJob' :: DatasetImportJob -> Maybe Text
$sel:datasetArn:DatasetImportJob' :: DatasetImportJob -> Maybe Text
$sel:dataSource:DatasetImportJob' :: DatasetImportJob -> Maybe DataSource
$sel:creationDateTime:DatasetImportJob' :: DatasetImportJob -> Maybe POSIX
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationDateTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DataSource
dataSource
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
datasetArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
datasetImportJobArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
failureReason
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ImportMode
importMode
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
jobName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastUpdatedDateTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
publishAttributionMetricsToS3
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
roleArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
status

instance Prelude.NFData DatasetImportJob where
  rnf :: DatasetImportJob -> ()
rnf DatasetImportJob' {Maybe Bool
Maybe Text
Maybe POSIX
Maybe DataSource
Maybe ImportMode
status :: Maybe Text
roleArn :: Maybe Text
publishAttributionMetricsToS3 :: Maybe Bool
lastUpdatedDateTime :: Maybe POSIX
jobName :: Maybe Text
importMode :: Maybe ImportMode
failureReason :: Maybe Text
datasetImportJobArn :: Maybe Text
datasetArn :: Maybe Text
dataSource :: Maybe DataSource
creationDateTime :: Maybe POSIX
$sel:status:DatasetImportJob' :: DatasetImportJob -> Maybe Text
$sel:roleArn:DatasetImportJob' :: DatasetImportJob -> Maybe Text
$sel:publishAttributionMetricsToS3:DatasetImportJob' :: DatasetImportJob -> Maybe Bool
$sel:lastUpdatedDateTime:DatasetImportJob' :: DatasetImportJob -> Maybe POSIX
$sel:jobName:DatasetImportJob' :: DatasetImportJob -> Maybe Text
$sel:importMode:DatasetImportJob' :: DatasetImportJob -> Maybe ImportMode
$sel:failureReason:DatasetImportJob' :: DatasetImportJob -> Maybe Text
$sel:datasetImportJobArn:DatasetImportJob' :: DatasetImportJob -> Maybe Text
$sel:datasetArn:DatasetImportJob' :: DatasetImportJob -> Maybe Text
$sel:dataSource:DatasetImportJob' :: DatasetImportJob -> Maybe DataSource
$sel:creationDateTime:DatasetImportJob' :: DatasetImportJob -> Maybe POSIX
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationDateTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DataSource
dataSource
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
datasetArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
datasetImportJobArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
failureReason
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ImportMode
importMode
      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 POSIX
lastUpdatedDateTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
publishAttributionMetricsToS3
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
roleArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
status