{-# 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.QuickSight.Types.DataSet
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.QuickSight.Types.DataSet where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.QuickSight.Types.ColumnGroup
import Amazonka.QuickSight.Types.ColumnLevelPermissionRule
import Amazonka.QuickSight.Types.DataSetImportMode
import Amazonka.QuickSight.Types.DataSetUsageConfiguration
import Amazonka.QuickSight.Types.FieldFolder
import Amazonka.QuickSight.Types.LogicalTable
import Amazonka.QuickSight.Types.OutputColumn
import Amazonka.QuickSight.Types.PhysicalTable
import Amazonka.QuickSight.Types.RowLevelPermissionDataSet
import Amazonka.QuickSight.Types.RowLevelPermissionTagConfiguration

-- | Dataset.
--
-- /See:/ 'newDataSet' smart constructor.
data DataSet = DataSet'
  { -- | The folder that contains fields and nested subfolders for your dataset.
    DataSet -> Maybe (HashMap Text FieldFolder)
fieldFolders :: Prelude.Maybe (Prelude.HashMap Prelude.Text FieldFolder),
    -- | Groupings of columns that work together in certain Amazon QuickSight
    -- features. Currently, only geospatial hierarchy is supported.
    DataSet -> Maybe (NonEmpty ColumnGroup)
columnGroups :: Prelude.Maybe (Prelude.NonEmpty ColumnGroup),
    -- | The last time that this dataset was updated.
    DataSet -> Maybe POSIX
lastUpdatedTime :: Prelude.Maybe Core.POSIX,
    -- | The Amazon Resource Name (ARN) of the resource.
    DataSet -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The time that this dataset was created.
    DataSet -> Maybe POSIX
createdTime :: Prelude.Maybe Core.POSIX,
    -- | The amount of SPICE capacity used by this dataset. This is 0 if the
    -- dataset isn\'t imported into SPICE.
    DataSet -> Maybe Integer
consumedSpiceCapacityInBytes :: Prelude.Maybe Prelude.Integer,
    -- | A value that indicates whether you want to import the data into SPICE.
    DataSet -> Maybe DataSetImportMode
importMode :: Prelude.Maybe DataSetImportMode,
    -- | Declares the physical tables that are available in the underlying data
    -- sources.
    DataSet -> Maybe (HashMap Text PhysicalTable)
physicalTableMap :: Prelude.Maybe (Prelude.HashMap Prelude.Text PhysicalTable),
    -- | The ID of the dataset.
    DataSet -> Maybe Text
dataSetId :: Prelude.Maybe Prelude.Text,
    -- | A display name for the dataset.
    DataSet -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The usage configuration to apply to child datasets that reference this
    -- dataset as a source.
    DataSet -> Maybe DataSetUsageConfiguration
dataSetUsageConfiguration :: Prelude.Maybe DataSetUsageConfiguration,
    -- | The list of columns after all transforms. These columns are available in
    -- templates, analyses, and dashboards.
    DataSet -> Maybe [OutputColumn]
outputColumns :: Prelude.Maybe [OutputColumn],
    -- | The element you can use to define tags for row-level security.
    DataSet -> Maybe RowLevelPermissionTagConfiguration
rowLevelPermissionTagConfiguration :: Prelude.Maybe RowLevelPermissionTagConfiguration,
    -- | The row-level security configuration for the dataset.
    DataSet -> Maybe RowLevelPermissionDataSet
rowLevelPermissionDataSet :: Prelude.Maybe RowLevelPermissionDataSet,
    -- | A set of one or more definitions of a @ ColumnLevelPermissionRule @.
    DataSet -> Maybe (NonEmpty ColumnLevelPermissionRule)
columnLevelPermissionRules :: Prelude.Maybe (Prelude.NonEmpty ColumnLevelPermissionRule),
    -- | Configures the combination and transformation of the data from the
    -- physical tables.
    DataSet -> Maybe (HashMap Text LogicalTable)
logicalTableMap :: Prelude.Maybe (Prelude.HashMap Prelude.Text LogicalTable)
  }
  deriving (DataSet -> DataSet -> Bool
(DataSet -> DataSet -> Bool)
-> (DataSet -> DataSet -> Bool) -> Eq DataSet
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DataSet -> DataSet -> Bool
$c/= :: DataSet -> DataSet -> Bool
== :: DataSet -> DataSet -> Bool
$c== :: DataSet -> DataSet -> Bool
Prelude.Eq, Int -> DataSet -> ShowS
[DataSet] -> ShowS
DataSet -> String
(Int -> DataSet -> ShowS)
-> (DataSet -> String) -> ([DataSet] -> ShowS) -> Show DataSet
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DataSet] -> ShowS
$cshowList :: [DataSet] -> ShowS
show :: DataSet -> String
$cshow :: DataSet -> String
showsPrec :: Int -> DataSet -> ShowS
$cshowsPrec :: Int -> DataSet -> ShowS
Prelude.Show, (forall x. DataSet -> Rep DataSet x)
-> (forall x. Rep DataSet x -> DataSet) -> Generic DataSet
forall x. Rep DataSet x -> DataSet
forall x. DataSet -> Rep DataSet x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DataSet x -> DataSet
$cfrom :: forall x. DataSet -> Rep DataSet x
Prelude.Generic)

-- |
-- Create a value of 'DataSet' 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:
--
-- 'fieldFolders', 'dataSet_fieldFolders' - The folder that contains fields and nested subfolders for your dataset.
--
-- 'columnGroups', 'dataSet_columnGroups' - Groupings of columns that work together in certain Amazon QuickSight
-- features. Currently, only geospatial hierarchy is supported.
--
-- 'lastUpdatedTime', 'dataSet_lastUpdatedTime' - The last time that this dataset was updated.
--
-- 'arn', 'dataSet_arn' - The Amazon Resource Name (ARN) of the resource.
--
-- 'createdTime', 'dataSet_createdTime' - The time that this dataset was created.
--
-- 'consumedSpiceCapacityInBytes', 'dataSet_consumedSpiceCapacityInBytes' - The amount of SPICE capacity used by this dataset. This is 0 if the
-- dataset isn\'t imported into SPICE.
--
-- 'importMode', 'dataSet_importMode' - A value that indicates whether you want to import the data into SPICE.
--
-- 'physicalTableMap', 'dataSet_physicalTableMap' - Declares the physical tables that are available in the underlying data
-- sources.
--
-- 'dataSetId', 'dataSet_dataSetId' - The ID of the dataset.
--
-- 'name', 'dataSet_name' - A display name for the dataset.
--
-- 'dataSetUsageConfiguration', 'dataSet_dataSetUsageConfiguration' - The usage configuration to apply to child datasets that reference this
-- dataset as a source.
--
-- 'outputColumns', 'dataSet_outputColumns' - The list of columns after all transforms. These columns are available in
-- templates, analyses, and dashboards.
--
-- 'rowLevelPermissionTagConfiguration', 'dataSet_rowLevelPermissionTagConfiguration' - The element you can use to define tags for row-level security.
--
-- 'rowLevelPermissionDataSet', 'dataSet_rowLevelPermissionDataSet' - The row-level security configuration for the dataset.
--
-- 'columnLevelPermissionRules', 'dataSet_columnLevelPermissionRules' - A set of one or more definitions of a @ ColumnLevelPermissionRule @.
--
-- 'logicalTableMap', 'dataSet_logicalTableMap' - Configures the combination and transformation of the data from the
-- physical tables.
newDataSet ::
  DataSet
newDataSet :: DataSet
newDataSet =
  DataSet' :: Maybe (HashMap Text FieldFolder)
-> Maybe (NonEmpty ColumnGroup)
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Integer
-> Maybe DataSetImportMode
-> Maybe (HashMap Text PhysicalTable)
-> Maybe Text
-> Maybe Text
-> Maybe DataSetUsageConfiguration
-> Maybe [OutputColumn]
-> Maybe RowLevelPermissionTagConfiguration
-> Maybe RowLevelPermissionDataSet
-> Maybe (NonEmpty ColumnLevelPermissionRule)
-> Maybe (HashMap Text LogicalTable)
-> DataSet
DataSet'
    { $sel:fieldFolders:DataSet' :: Maybe (HashMap Text FieldFolder)
fieldFolders = Maybe (HashMap Text FieldFolder)
forall a. Maybe a
Prelude.Nothing,
      $sel:columnGroups:DataSet' :: Maybe (NonEmpty ColumnGroup)
columnGroups = Maybe (NonEmpty ColumnGroup)
forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedTime:DataSet' :: Maybe POSIX
lastUpdatedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:DataSet' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdTime:DataSet' :: Maybe POSIX
createdTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:consumedSpiceCapacityInBytes:DataSet' :: Maybe Integer
consumedSpiceCapacityInBytes = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
      $sel:importMode:DataSet' :: Maybe DataSetImportMode
importMode = Maybe DataSetImportMode
forall a. Maybe a
Prelude.Nothing,
      $sel:physicalTableMap:DataSet' :: Maybe (HashMap Text PhysicalTable)
physicalTableMap = Maybe (HashMap Text PhysicalTable)
forall a. Maybe a
Prelude.Nothing,
      $sel:dataSetId:DataSet' :: Maybe Text
dataSetId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:name:DataSet' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:dataSetUsageConfiguration:DataSet' :: Maybe DataSetUsageConfiguration
dataSetUsageConfiguration = Maybe DataSetUsageConfiguration
forall a. Maybe a
Prelude.Nothing,
      $sel:outputColumns:DataSet' :: Maybe [OutputColumn]
outputColumns = Maybe [OutputColumn]
forall a. Maybe a
Prelude.Nothing,
      $sel:rowLevelPermissionTagConfiguration:DataSet' :: Maybe RowLevelPermissionTagConfiguration
rowLevelPermissionTagConfiguration = Maybe RowLevelPermissionTagConfiguration
forall a. Maybe a
Prelude.Nothing,
      $sel:rowLevelPermissionDataSet:DataSet' :: Maybe RowLevelPermissionDataSet
rowLevelPermissionDataSet = Maybe RowLevelPermissionDataSet
forall a. Maybe a
Prelude.Nothing,
      $sel:columnLevelPermissionRules:DataSet' :: Maybe (NonEmpty ColumnLevelPermissionRule)
columnLevelPermissionRules = Maybe (NonEmpty ColumnLevelPermissionRule)
forall a. Maybe a
Prelude.Nothing,
      $sel:logicalTableMap:DataSet' :: Maybe (HashMap Text LogicalTable)
logicalTableMap = Maybe (HashMap Text LogicalTable)
forall a. Maybe a
Prelude.Nothing
    }

-- | The folder that contains fields and nested subfolders for your dataset.
dataSet_fieldFolders :: Lens.Lens' DataSet (Prelude.Maybe (Prelude.HashMap Prelude.Text FieldFolder))
dataSet_fieldFolders :: (Maybe (HashMap Text FieldFolder)
 -> f (Maybe (HashMap Text FieldFolder)))
-> DataSet -> f DataSet
dataSet_fieldFolders = (DataSet -> Maybe (HashMap Text FieldFolder))
-> (DataSet -> Maybe (HashMap Text FieldFolder) -> DataSet)
-> Lens
     DataSet
     DataSet
     (Maybe (HashMap Text FieldFolder))
     (Maybe (HashMap Text FieldFolder))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataSet' {Maybe (HashMap Text FieldFolder)
fieldFolders :: Maybe (HashMap Text FieldFolder)
$sel:fieldFolders:DataSet' :: DataSet -> Maybe (HashMap Text FieldFolder)
fieldFolders} -> Maybe (HashMap Text FieldFolder)
fieldFolders) (\s :: DataSet
s@DataSet' {} Maybe (HashMap Text FieldFolder)
a -> DataSet
s {$sel:fieldFolders:DataSet' :: Maybe (HashMap Text FieldFolder)
fieldFolders = Maybe (HashMap Text FieldFolder)
a} :: DataSet) ((Maybe (HashMap Text FieldFolder)
  -> f (Maybe (HashMap Text FieldFolder)))
 -> DataSet -> f DataSet)
-> ((Maybe (HashMap Text FieldFolder)
     -> f (Maybe (HashMap Text FieldFolder)))
    -> Maybe (HashMap Text FieldFolder)
    -> f (Maybe (HashMap Text FieldFolder)))
-> (Maybe (HashMap Text FieldFolder)
    -> f (Maybe (HashMap Text FieldFolder)))
-> DataSet
-> f DataSet
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text FieldFolder)
  (HashMap Text FieldFolder)
  (HashMap Text FieldFolder)
  (HashMap Text FieldFolder)
-> Iso
     (Maybe (HashMap Text FieldFolder))
     (Maybe (HashMap Text FieldFolder))
     (Maybe (HashMap Text FieldFolder))
     (Maybe (HashMap Text FieldFolder))
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 AnIso
  (HashMap Text FieldFolder)
  (HashMap Text FieldFolder)
  (HashMap Text FieldFolder)
  (HashMap Text FieldFolder)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Groupings of columns that work together in certain Amazon QuickSight
-- features. Currently, only geospatial hierarchy is supported.
dataSet_columnGroups :: Lens.Lens' DataSet (Prelude.Maybe (Prelude.NonEmpty ColumnGroup))
dataSet_columnGroups :: (Maybe (NonEmpty ColumnGroup) -> f (Maybe (NonEmpty ColumnGroup)))
-> DataSet -> f DataSet
dataSet_columnGroups = (DataSet -> Maybe (NonEmpty ColumnGroup))
-> (DataSet -> Maybe (NonEmpty ColumnGroup) -> DataSet)
-> Lens
     DataSet
     DataSet
     (Maybe (NonEmpty ColumnGroup))
     (Maybe (NonEmpty ColumnGroup))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataSet' {Maybe (NonEmpty ColumnGroup)
columnGroups :: Maybe (NonEmpty ColumnGroup)
$sel:columnGroups:DataSet' :: DataSet -> Maybe (NonEmpty ColumnGroup)
columnGroups} -> Maybe (NonEmpty ColumnGroup)
columnGroups) (\s :: DataSet
s@DataSet' {} Maybe (NonEmpty ColumnGroup)
a -> DataSet
s {$sel:columnGroups:DataSet' :: Maybe (NonEmpty ColumnGroup)
columnGroups = Maybe (NonEmpty ColumnGroup)
a} :: DataSet) ((Maybe (NonEmpty ColumnGroup) -> f (Maybe (NonEmpty ColumnGroup)))
 -> DataSet -> f DataSet)
-> ((Maybe (NonEmpty ColumnGroup)
     -> f (Maybe (NonEmpty ColumnGroup)))
    -> Maybe (NonEmpty ColumnGroup)
    -> f (Maybe (NonEmpty ColumnGroup)))
-> (Maybe (NonEmpty ColumnGroup)
    -> f (Maybe (NonEmpty ColumnGroup)))
-> DataSet
-> f DataSet
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (NonEmpty ColumnGroup)
  (NonEmpty ColumnGroup)
  (NonEmpty ColumnGroup)
  (NonEmpty ColumnGroup)
-> Iso
     (Maybe (NonEmpty ColumnGroup))
     (Maybe (NonEmpty ColumnGroup))
     (Maybe (NonEmpty ColumnGroup))
     (Maybe (NonEmpty ColumnGroup))
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 AnIso
  (NonEmpty ColumnGroup)
  (NonEmpty ColumnGroup)
  (NonEmpty ColumnGroup)
  (NonEmpty ColumnGroup)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The last time that this dataset was updated.
dataSet_lastUpdatedTime :: Lens.Lens' DataSet (Prelude.Maybe Prelude.UTCTime)
dataSet_lastUpdatedTime :: (Maybe UTCTime -> f (Maybe UTCTime)) -> DataSet -> f DataSet
dataSet_lastUpdatedTime = (DataSet -> Maybe POSIX)
-> (DataSet -> Maybe POSIX -> DataSet)
-> Lens DataSet DataSet (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataSet' {Maybe POSIX
lastUpdatedTime :: Maybe POSIX
$sel:lastUpdatedTime:DataSet' :: DataSet -> Maybe POSIX
lastUpdatedTime} -> Maybe POSIX
lastUpdatedTime) (\s :: DataSet
s@DataSet' {} Maybe POSIX
a -> DataSet
s {$sel:lastUpdatedTime:DataSet' :: Maybe POSIX
lastUpdatedTime = Maybe POSIX
a} :: DataSet) ((Maybe POSIX -> f (Maybe POSIX)) -> DataSet -> f DataSet)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DataSet
-> f DataSet
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The Amazon Resource Name (ARN) of the resource.
dataSet_arn :: Lens.Lens' DataSet (Prelude.Maybe Prelude.Text)
dataSet_arn :: (Maybe Text -> f (Maybe Text)) -> DataSet -> f DataSet
dataSet_arn = (DataSet -> Maybe Text)
-> (DataSet -> Maybe Text -> DataSet)
-> Lens DataSet DataSet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataSet' {Maybe Text
arn :: Maybe Text
$sel:arn:DataSet' :: DataSet -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DataSet
s@DataSet' {} Maybe Text
a -> DataSet
s {$sel:arn:DataSet' :: Maybe Text
arn = Maybe Text
a} :: DataSet)

-- | The time that this dataset was created.
dataSet_createdTime :: Lens.Lens' DataSet (Prelude.Maybe Prelude.UTCTime)
dataSet_createdTime :: (Maybe UTCTime -> f (Maybe UTCTime)) -> DataSet -> f DataSet
dataSet_createdTime = (DataSet -> Maybe POSIX)
-> (DataSet -> Maybe POSIX -> DataSet)
-> Lens DataSet DataSet (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataSet' {Maybe POSIX
createdTime :: Maybe POSIX
$sel:createdTime:DataSet' :: DataSet -> Maybe POSIX
createdTime} -> Maybe POSIX
createdTime) (\s :: DataSet
s@DataSet' {} Maybe POSIX
a -> DataSet
s {$sel:createdTime:DataSet' :: Maybe POSIX
createdTime = Maybe POSIX
a} :: DataSet) ((Maybe POSIX -> f (Maybe POSIX)) -> DataSet -> f DataSet)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DataSet
-> f DataSet
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The amount of SPICE capacity used by this dataset. This is 0 if the
-- dataset isn\'t imported into SPICE.
dataSet_consumedSpiceCapacityInBytes :: Lens.Lens' DataSet (Prelude.Maybe Prelude.Integer)
dataSet_consumedSpiceCapacityInBytes :: (Maybe Integer -> f (Maybe Integer)) -> DataSet -> f DataSet
dataSet_consumedSpiceCapacityInBytes = (DataSet -> Maybe Integer)
-> (DataSet -> Maybe Integer -> DataSet)
-> Lens DataSet DataSet (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataSet' {Maybe Integer
consumedSpiceCapacityInBytes :: Maybe Integer
$sel:consumedSpiceCapacityInBytes:DataSet' :: DataSet -> Maybe Integer
consumedSpiceCapacityInBytes} -> Maybe Integer
consumedSpiceCapacityInBytes) (\s :: DataSet
s@DataSet' {} Maybe Integer
a -> DataSet
s {$sel:consumedSpiceCapacityInBytes:DataSet' :: Maybe Integer
consumedSpiceCapacityInBytes = Maybe Integer
a} :: DataSet)

-- | A value that indicates whether you want to import the data into SPICE.
dataSet_importMode :: Lens.Lens' DataSet (Prelude.Maybe DataSetImportMode)
dataSet_importMode :: (Maybe DataSetImportMode -> f (Maybe DataSetImportMode))
-> DataSet -> f DataSet
dataSet_importMode = (DataSet -> Maybe DataSetImportMode)
-> (DataSet -> Maybe DataSetImportMode -> DataSet)
-> Lens
     DataSet DataSet (Maybe DataSetImportMode) (Maybe DataSetImportMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataSet' {Maybe DataSetImportMode
importMode :: Maybe DataSetImportMode
$sel:importMode:DataSet' :: DataSet -> Maybe DataSetImportMode
importMode} -> Maybe DataSetImportMode
importMode) (\s :: DataSet
s@DataSet' {} Maybe DataSetImportMode
a -> DataSet
s {$sel:importMode:DataSet' :: Maybe DataSetImportMode
importMode = Maybe DataSetImportMode
a} :: DataSet)

-- | Declares the physical tables that are available in the underlying data
-- sources.
dataSet_physicalTableMap :: Lens.Lens' DataSet (Prelude.Maybe (Prelude.HashMap Prelude.Text PhysicalTable))
dataSet_physicalTableMap :: (Maybe (HashMap Text PhysicalTable)
 -> f (Maybe (HashMap Text PhysicalTable)))
-> DataSet -> f DataSet
dataSet_physicalTableMap = (DataSet -> Maybe (HashMap Text PhysicalTable))
-> (DataSet -> Maybe (HashMap Text PhysicalTable) -> DataSet)
-> Lens
     DataSet
     DataSet
     (Maybe (HashMap Text PhysicalTable))
     (Maybe (HashMap Text PhysicalTable))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataSet' {Maybe (HashMap Text PhysicalTable)
physicalTableMap :: Maybe (HashMap Text PhysicalTable)
$sel:physicalTableMap:DataSet' :: DataSet -> Maybe (HashMap Text PhysicalTable)
physicalTableMap} -> Maybe (HashMap Text PhysicalTable)
physicalTableMap) (\s :: DataSet
s@DataSet' {} Maybe (HashMap Text PhysicalTable)
a -> DataSet
s {$sel:physicalTableMap:DataSet' :: Maybe (HashMap Text PhysicalTable)
physicalTableMap = Maybe (HashMap Text PhysicalTable)
a} :: DataSet) ((Maybe (HashMap Text PhysicalTable)
  -> f (Maybe (HashMap Text PhysicalTable)))
 -> DataSet -> f DataSet)
-> ((Maybe (HashMap Text PhysicalTable)
     -> f (Maybe (HashMap Text PhysicalTable)))
    -> Maybe (HashMap Text PhysicalTable)
    -> f (Maybe (HashMap Text PhysicalTable)))
-> (Maybe (HashMap Text PhysicalTable)
    -> f (Maybe (HashMap Text PhysicalTable)))
-> DataSet
-> f DataSet
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text PhysicalTable)
  (HashMap Text PhysicalTable)
  (HashMap Text PhysicalTable)
  (HashMap Text PhysicalTable)
-> Iso
     (Maybe (HashMap Text PhysicalTable))
     (Maybe (HashMap Text PhysicalTable))
     (Maybe (HashMap Text PhysicalTable))
     (Maybe (HashMap Text PhysicalTable))
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 AnIso
  (HashMap Text PhysicalTable)
  (HashMap Text PhysicalTable)
  (HashMap Text PhysicalTable)
  (HashMap Text PhysicalTable)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The ID of the dataset.
dataSet_dataSetId :: Lens.Lens' DataSet (Prelude.Maybe Prelude.Text)
dataSet_dataSetId :: (Maybe Text -> f (Maybe Text)) -> DataSet -> f DataSet
dataSet_dataSetId = (DataSet -> Maybe Text)
-> (DataSet -> Maybe Text -> DataSet)
-> Lens DataSet DataSet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataSet' {Maybe Text
dataSetId :: Maybe Text
$sel:dataSetId:DataSet' :: DataSet -> Maybe Text
dataSetId} -> Maybe Text
dataSetId) (\s :: DataSet
s@DataSet' {} Maybe Text
a -> DataSet
s {$sel:dataSetId:DataSet' :: Maybe Text
dataSetId = Maybe Text
a} :: DataSet)

-- | A display name for the dataset.
dataSet_name :: Lens.Lens' DataSet (Prelude.Maybe Prelude.Text)
dataSet_name :: (Maybe Text -> f (Maybe Text)) -> DataSet -> f DataSet
dataSet_name = (DataSet -> Maybe Text)
-> (DataSet -> Maybe Text -> DataSet)
-> Lens DataSet DataSet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataSet' {Maybe Text
name :: Maybe Text
$sel:name:DataSet' :: DataSet -> Maybe Text
name} -> Maybe Text
name) (\s :: DataSet
s@DataSet' {} Maybe Text
a -> DataSet
s {$sel:name:DataSet' :: Maybe Text
name = Maybe Text
a} :: DataSet)

-- | The usage configuration to apply to child datasets that reference this
-- dataset as a source.
dataSet_dataSetUsageConfiguration :: Lens.Lens' DataSet (Prelude.Maybe DataSetUsageConfiguration)
dataSet_dataSetUsageConfiguration :: (Maybe DataSetUsageConfiguration
 -> f (Maybe DataSetUsageConfiguration))
-> DataSet -> f DataSet
dataSet_dataSetUsageConfiguration = (DataSet -> Maybe DataSetUsageConfiguration)
-> (DataSet -> Maybe DataSetUsageConfiguration -> DataSet)
-> Lens
     DataSet
     DataSet
     (Maybe DataSetUsageConfiguration)
     (Maybe DataSetUsageConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataSet' {Maybe DataSetUsageConfiguration
dataSetUsageConfiguration :: Maybe DataSetUsageConfiguration
$sel:dataSetUsageConfiguration:DataSet' :: DataSet -> Maybe DataSetUsageConfiguration
dataSetUsageConfiguration} -> Maybe DataSetUsageConfiguration
dataSetUsageConfiguration) (\s :: DataSet
s@DataSet' {} Maybe DataSetUsageConfiguration
a -> DataSet
s {$sel:dataSetUsageConfiguration:DataSet' :: Maybe DataSetUsageConfiguration
dataSetUsageConfiguration = Maybe DataSetUsageConfiguration
a} :: DataSet)

-- | The list of columns after all transforms. These columns are available in
-- templates, analyses, and dashboards.
dataSet_outputColumns :: Lens.Lens' DataSet (Prelude.Maybe [OutputColumn])
dataSet_outputColumns :: (Maybe [OutputColumn] -> f (Maybe [OutputColumn]))
-> DataSet -> f DataSet
dataSet_outputColumns = (DataSet -> Maybe [OutputColumn])
-> (DataSet -> Maybe [OutputColumn] -> DataSet)
-> Lens
     DataSet DataSet (Maybe [OutputColumn]) (Maybe [OutputColumn])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataSet' {Maybe [OutputColumn]
outputColumns :: Maybe [OutputColumn]
$sel:outputColumns:DataSet' :: DataSet -> Maybe [OutputColumn]
outputColumns} -> Maybe [OutputColumn]
outputColumns) (\s :: DataSet
s@DataSet' {} Maybe [OutputColumn]
a -> DataSet
s {$sel:outputColumns:DataSet' :: Maybe [OutputColumn]
outputColumns = Maybe [OutputColumn]
a} :: DataSet) ((Maybe [OutputColumn] -> f (Maybe [OutputColumn]))
 -> DataSet -> f DataSet)
-> ((Maybe [OutputColumn] -> f (Maybe [OutputColumn]))
    -> Maybe [OutputColumn] -> f (Maybe [OutputColumn]))
-> (Maybe [OutputColumn] -> f (Maybe [OutputColumn]))
-> DataSet
-> f DataSet
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [OutputColumn] [OutputColumn] [OutputColumn] [OutputColumn]
-> Iso
     (Maybe [OutputColumn])
     (Maybe [OutputColumn])
     (Maybe [OutputColumn])
     (Maybe [OutputColumn])
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 AnIso [OutputColumn] [OutputColumn] [OutputColumn] [OutputColumn]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The element you can use to define tags for row-level security.
dataSet_rowLevelPermissionTagConfiguration :: Lens.Lens' DataSet (Prelude.Maybe RowLevelPermissionTagConfiguration)
dataSet_rowLevelPermissionTagConfiguration :: (Maybe RowLevelPermissionTagConfiguration
 -> f (Maybe RowLevelPermissionTagConfiguration))
-> DataSet -> f DataSet
dataSet_rowLevelPermissionTagConfiguration = (DataSet -> Maybe RowLevelPermissionTagConfiguration)
-> (DataSet -> Maybe RowLevelPermissionTagConfiguration -> DataSet)
-> Lens
     DataSet
     DataSet
     (Maybe RowLevelPermissionTagConfiguration)
     (Maybe RowLevelPermissionTagConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataSet' {Maybe RowLevelPermissionTagConfiguration
rowLevelPermissionTagConfiguration :: Maybe RowLevelPermissionTagConfiguration
$sel:rowLevelPermissionTagConfiguration:DataSet' :: DataSet -> Maybe RowLevelPermissionTagConfiguration
rowLevelPermissionTagConfiguration} -> Maybe RowLevelPermissionTagConfiguration
rowLevelPermissionTagConfiguration) (\s :: DataSet
s@DataSet' {} Maybe RowLevelPermissionTagConfiguration
a -> DataSet
s {$sel:rowLevelPermissionTagConfiguration:DataSet' :: Maybe RowLevelPermissionTagConfiguration
rowLevelPermissionTagConfiguration = Maybe RowLevelPermissionTagConfiguration
a} :: DataSet)

-- | The row-level security configuration for the dataset.
dataSet_rowLevelPermissionDataSet :: Lens.Lens' DataSet (Prelude.Maybe RowLevelPermissionDataSet)
dataSet_rowLevelPermissionDataSet :: (Maybe RowLevelPermissionDataSet
 -> f (Maybe RowLevelPermissionDataSet))
-> DataSet -> f DataSet
dataSet_rowLevelPermissionDataSet = (DataSet -> Maybe RowLevelPermissionDataSet)
-> (DataSet -> Maybe RowLevelPermissionDataSet -> DataSet)
-> Lens
     DataSet
     DataSet
     (Maybe RowLevelPermissionDataSet)
     (Maybe RowLevelPermissionDataSet)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataSet' {Maybe RowLevelPermissionDataSet
rowLevelPermissionDataSet :: Maybe RowLevelPermissionDataSet
$sel:rowLevelPermissionDataSet:DataSet' :: DataSet -> Maybe RowLevelPermissionDataSet
rowLevelPermissionDataSet} -> Maybe RowLevelPermissionDataSet
rowLevelPermissionDataSet) (\s :: DataSet
s@DataSet' {} Maybe RowLevelPermissionDataSet
a -> DataSet
s {$sel:rowLevelPermissionDataSet:DataSet' :: Maybe RowLevelPermissionDataSet
rowLevelPermissionDataSet = Maybe RowLevelPermissionDataSet
a} :: DataSet)

-- | A set of one or more definitions of a @ ColumnLevelPermissionRule @.
dataSet_columnLevelPermissionRules :: Lens.Lens' DataSet (Prelude.Maybe (Prelude.NonEmpty ColumnLevelPermissionRule))
dataSet_columnLevelPermissionRules :: (Maybe (NonEmpty ColumnLevelPermissionRule)
 -> f (Maybe (NonEmpty ColumnLevelPermissionRule)))
-> DataSet -> f DataSet
dataSet_columnLevelPermissionRules = (DataSet -> Maybe (NonEmpty ColumnLevelPermissionRule))
-> (DataSet
    -> Maybe (NonEmpty ColumnLevelPermissionRule) -> DataSet)
-> Lens
     DataSet
     DataSet
     (Maybe (NonEmpty ColumnLevelPermissionRule))
     (Maybe (NonEmpty ColumnLevelPermissionRule))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataSet' {Maybe (NonEmpty ColumnLevelPermissionRule)
columnLevelPermissionRules :: Maybe (NonEmpty ColumnLevelPermissionRule)
$sel:columnLevelPermissionRules:DataSet' :: DataSet -> Maybe (NonEmpty ColumnLevelPermissionRule)
columnLevelPermissionRules} -> Maybe (NonEmpty ColumnLevelPermissionRule)
columnLevelPermissionRules) (\s :: DataSet
s@DataSet' {} Maybe (NonEmpty ColumnLevelPermissionRule)
a -> DataSet
s {$sel:columnLevelPermissionRules:DataSet' :: Maybe (NonEmpty ColumnLevelPermissionRule)
columnLevelPermissionRules = Maybe (NonEmpty ColumnLevelPermissionRule)
a} :: DataSet) ((Maybe (NonEmpty ColumnLevelPermissionRule)
  -> f (Maybe (NonEmpty ColumnLevelPermissionRule)))
 -> DataSet -> f DataSet)
-> ((Maybe (NonEmpty ColumnLevelPermissionRule)
     -> f (Maybe (NonEmpty ColumnLevelPermissionRule)))
    -> Maybe (NonEmpty ColumnLevelPermissionRule)
    -> f (Maybe (NonEmpty ColumnLevelPermissionRule)))
-> (Maybe (NonEmpty ColumnLevelPermissionRule)
    -> f (Maybe (NonEmpty ColumnLevelPermissionRule)))
-> DataSet
-> f DataSet
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (NonEmpty ColumnLevelPermissionRule)
  (NonEmpty ColumnLevelPermissionRule)
  (NonEmpty ColumnLevelPermissionRule)
  (NonEmpty ColumnLevelPermissionRule)
-> Iso
     (Maybe (NonEmpty ColumnLevelPermissionRule))
     (Maybe (NonEmpty ColumnLevelPermissionRule))
     (Maybe (NonEmpty ColumnLevelPermissionRule))
     (Maybe (NonEmpty ColumnLevelPermissionRule))
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 AnIso
  (NonEmpty ColumnLevelPermissionRule)
  (NonEmpty ColumnLevelPermissionRule)
  (NonEmpty ColumnLevelPermissionRule)
  (NonEmpty ColumnLevelPermissionRule)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Configures the combination and transformation of the data from the
-- physical tables.
dataSet_logicalTableMap :: Lens.Lens' DataSet (Prelude.Maybe (Prelude.HashMap Prelude.Text LogicalTable))
dataSet_logicalTableMap :: (Maybe (HashMap Text LogicalTable)
 -> f (Maybe (HashMap Text LogicalTable)))
-> DataSet -> f DataSet
dataSet_logicalTableMap = (DataSet -> Maybe (HashMap Text LogicalTable))
-> (DataSet -> Maybe (HashMap Text LogicalTable) -> DataSet)
-> Lens
     DataSet
     DataSet
     (Maybe (HashMap Text LogicalTable))
     (Maybe (HashMap Text LogicalTable))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataSet' {Maybe (HashMap Text LogicalTable)
logicalTableMap :: Maybe (HashMap Text LogicalTable)
$sel:logicalTableMap:DataSet' :: DataSet -> Maybe (HashMap Text LogicalTable)
logicalTableMap} -> Maybe (HashMap Text LogicalTable)
logicalTableMap) (\s :: DataSet
s@DataSet' {} Maybe (HashMap Text LogicalTable)
a -> DataSet
s {$sel:logicalTableMap:DataSet' :: Maybe (HashMap Text LogicalTable)
logicalTableMap = Maybe (HashMap Text LogicalTable)
a} :: DataSet) ((Maybe (HashMap Text LogicalTable)
  -> f (Maybe (HashMap Text LogicalTable)))
 -> DataSet -> f DataSet)
-> ((Maybe (HashMap Text LogicalTable)
     -> f (Maybe (HashMap Text LogicalTable)))
    -> Maybe (HashMap Text LogicalTable)
    -> f (Maybe (HashMap Text LogicalTable)))
-> (Maybe (HashMap Text LogicalTable)
    -> f (Maybe (HashMap Text LogicalTable)))
-> DataSet
-> f DataSet
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text LogicalTable)
  (HashMap Text LogicalTable)
  (HashMap Text LogicalTable)
  (HashMap Text LogicalTable)
-> Iso
     (Maybe (HashMap Text LogicalTable))
     (Maybe (HashMap Text LogicalTable))
     (Maybe (HashMap Text LogicalTable))
     (Maybe (HashMap Text LogicalTable))
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 AnIso
  (HashMap Text LogicalTable)
  (HashMap Text LogicalTable)
  (HashMap Text LogicalTable)
  (HashMap Text LogicalTable)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.FromJSON DataSet where
  parseJSON :: Value -> Parser DataSet
parseJSON =
    String -> (Object -> Parser DataSet) -> Value -> Parser DataSet
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"DataSet"
      ( \Object
x ->
          Maybe (HashMap Text FieldFolder)
-> Maybe (NonEmpty ColumnGroup)
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Integer
-> Maybe DataSetImportMode
-> Maybe (HashMap Text PhysicalTable)
-> Maybe Text
-> Maybe Text
-> Maybe DataSetUsageConfiguration
-> Maybe [OutputColumn]
-> Maybe RowLevelPermissionTagConfiguration
-> Maybe RowLevelPermissionDataSet
-> Maybe (NonEmpty ColumnLevelPermissionRule)
-> Maybe (HashMap Text LogicalTable)
-> DataSet
DataSet'
            (Maybe (HashMap Text FieldFolder)
 -> Maybe (NonEmpty ColumnGroup)
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Integer
 -> Maybe DataSetImportMode
 -> Maybe (HashMap Text PhysicalTable)
 -> Maybe Text
 -> Maybe Text
 -> Maybe DataSetUsageConfiguration
 -> Maybe [OutputColumn]
 -> Maybe RowLevelPermissionTagConfiguration
 -> Maybe RowLevelPermissionDataSet
 -> Maybe (NonEmpty ColumnLevelPermissionRule)
 -> Maybe (HashMap Text LogicalTable)
 -> DataSet)
-> Parser (Maybe (HashMap Text FieldFolder))
-> Parser
     (Maybe (NonEmpty ColumnGroup)
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Integer
      -> Maybe DataSetImportMode
      -> Maybe (HashMap Text PhysicalTable)
      -> Maybe Text
      -> Maybe Text
      -> Maybe DataSetUsageConfiguration
      -> Maybe [OutputColumn]
      -> Maybe RowLevelPermissionTagConfiguration
      -> Maybe RowLevelPermissionDataSet
      -> Maybe (NonEmpty ColumnLevelPermissionRule)
      -> Maybe (HashMap Text LogicalTable)
      -> DataSet)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe (Maybe (HashMap Text FieldFolder)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FieldFolders" Parser (Maybe (Maybe (HashMap Text FieldFolder)))
-> Maybe (HashMap Text FieldFolder)
-> Parser (Maybe (HashMap Text FieldFolder))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Text FieldFolder)
forall a. Monoid a => a
Prelude.mempty)
            Parser
  (Maybe (NonEmpty ColumnGroup)
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Integer
   -> Maybe DataSetImportMode
   -> Maybe (HashMap Text PhysicalTable)
   -> Maybe Text
   -> Maybe Text
   -> Maybe DataSetUsageConfiguration
   -> Maybe [OutputColumn]
   -> Maybe RowLevelPermissionTagConfiguration
   -> Maybe RowLevelPermissionDataSet
   -> Maybe (NonEmpty ColumnLevelPermissionRule)
   -> Maybe (HashMap Text LogicalTable)
   -> DataSet)
-> Parser (Maybe (NonEmpty ColumnGroup))
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Integer
      -> Maybe DataSetImportMode
      -> Maybe (HashMap Text PhysicalTable)
      -> Maybe Text
      -> Maybe Text
      -> Maybe DataSetUsageConfiguration
      -> Maybe [OutputColumn]
      -> Maybe RowLevelPermissionTagConfiguration
      -> Maybe RowLevelPermissionDataSet
      -> Maybe (NonEmpty ColumnLevelPermissionRule)
      -> Maybe (HashMap Text LogicalTable)
      -> DataSet)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (NonEmpty ColumnGroup))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ColumnGroups")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Integer
   -> Maybe DataSetImportMode
   -> Maybe (HashMap Text PhysicalTable)
   -> Maybe Text
   -> Maybe Text
   -> Maybe DataSetUsageConfiguration
   -> Maybe [OutputColumn]
   -> Maybe RowLevelPermissionTagConfiguration
   -> Maybe RowLevelPermissionDataSet
   -> Maybe (NonEmpty ColumnLevelPermissionRule)
   -> Maybe (HashMap Text LogicalTable)
   -> DataSet)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Integer
      -> Maybe DataSetImportMode
      -> Maybe (HashMap Text PhysicalTable)
      -> Maybe Text
      -> Maybe Text
      -> Maybe DataSetUsageConfiguration
      -> Maybe [OutputColumn]
      -> Maybe RowLevelPermissionTagConfiguration
      -> Maybe RowLevelPermissionDataSet
      -> Maybe (NonEmpty ColumnLevelPermissionRule)
      -> Maybe (HashMap Text LogicalTable)
      -> DataSet)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LastUpdatedTime")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe Integer
   -> Maybe DataSetImportMode
   -> Maybe (HashMap Text PhysicalTable)
   -> Maybe Text
   -> Maybe Text
   -> Maybe DataSetUsageConfiguration
   -> Maybe [OutputColumn]
   -> Maybe RowLevelPermissionTagConfiguration
   -> Maybe RowLevelPermissionDataSet
   -> Maybe (NonEmpty ColumnLevelPermissionRule)
   -> Maybe (HashMap Text LogicalTable)
   -> DataSet)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe Integer
      -> Maybe DataSetImportMode
      -> Maybe (HashMap Text PhysicalTable)
      -> Maybe Text
      -> Maybe Text
      -> Maybe DataSetUsageConfiguration
      -> Maybe [OutputColumn]
      -> Maybe RowLevelPermissionTagConfiguration
      -> Maybe RowLevelPermissionDataSet
      -> Maybe (NonEmpty ColumnLevelPermissionRule)
      -> Maybe (HashMap Text LogicalTable)
      -> DataSet)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Arn")
            Parser
  (Maybe POSIX
   -> Maybe Integer
   -> Maybe DataSetImportMode
   -> Maybe (HashMap Text PhysicalTable)
   -> Maybe Text
   -> Maybe Text
   -> Maybe DataSetUsageConfiguration
   -> Maybe [OutputColumn]
   -> Maybe RowLevelPermissionTagConfiguration
   -> Maybe RowLevelPermissionDataSet
   -> Maybe (NonEmpty ColumnLevelPermissionRule)
   -> Maybe (HashMap Text LogicalTable)
   -> DataSet)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Integer
      -> Maybe DataSetImportMode
      -> Maybe (HashMap Text PhysicalTable)
      -> Maybe Text
      -> Maybe Text
      -> Maybe DataSetUsageConfiguration
      -> Maybe [OutputColumn]
      -> Maybe RowLevelPermissionTagConfiguration
      -> Maybe RowLevelPermissionDataSet
      -> Maybe (NonEmpty ColumnLevelPermissionRule)
      -> Maybe (HashMap Text LogicalTable)
      -> DataSet)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreatedTime")
            Parser
  (Maybe Integer
   -> Maybe DataSetImportMode
   -> Maybe (HashMap Text PhysicalTable)
   -> Maybe Text
   -> Maybe Text
   -> Maybe DataSetUsageConfiguration
   -> Maybe [OutputColumn]
   -> Maybe RowLevelPermissionTagConfiguration
   -> Maybe RowLevelPermissionDataSet
   -> Maybe (NonEmpty ColumnLevelPermissionRule)
   -> Maybe (HashMap Text LogicalTable)
   -> DataSet)
-> Parser (Maybe Integer)
-> Parser
     (Maybe DataSetImportMode
      -> Maybe (HashMap Text PhysicalTable)
      -> Maybe Text
      -> Maybe Text
      -> Maybe DataSetUsageConfiguration
      -> Maybe [OutputColumn]
      -> Maybe RowLevelPermissionTagConfiguration
      -> Maybe RowLevelPermissionDataSet
      -> Maybe (NonEmpty ColumnLevelPermissionRule)
      -> Maybe (HashMap Text LogicalTable)
      -> DataSet)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ConsumedSpiceCapacityInBytes")
            Parser
  (Maybe DataSetImportMode
   -> Maybe (HashMap Text PhysicalTable)
   -> Maybe Text
   -> Maybe Text
   -> Maybe DataSetUsageConfiguration
   -> Maybe [OutputColumn]
   -> Maybe RowLevelPermissionTagConfiguration
   -> Maybe RowLevelPermissionDataSet
   -> Maybe (NonEmpty ColumnLevelPermissionRule)
   -> Maybe (HashMap Text LogicalTable)
   -> DataSet)
-> Parser (Maybe DataSetImportMode)
-> Parser
     (Maybe (HashMap Text PhysicalTable)
      -> Maybe Text
      -> Maybe Text
      -> Maybe DataSetUsageConfiguration
      -> Maybe [OutputColumn]
      -> Maybe RowLevelPermissionTagConfiguration
      -> Maybe RowLevelPermissionDataSet
      -> Maybe (NonEmpty ColumnLevelPermissionRule)
      -> Maybe (HashMap Text LogicalTable)
      -> DataSet)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DataSetImportMode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ImportMode")
            Parser
  (Maybe (HashMap Text PhysicalTable)
   -> Maybe Text
   -> Maybe Text
   -> Maybe DataSetUsageConfiguration
   -> Maybe [OutputColumn]
   -> Maybe RowLevelPermissionTagConfiguration
   -> Maybe RowLevelPermissionDataSet
   -> Maybe (NonEmpty ColumnLevelPermissionRule)
   -> Maybe (HashMap Text LogicalTable)
   -> DataSet)
-> Parser (Maybe (HashMap Text PhysicalTable))
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe DataSetUsageConfiguration
      -> Maybe [OutputColumn]
      -> Maybe RowLevelPermissionTagConfiguration
      -> Maybe RowLevelPermissionDataSet
      -> Maybe (NonEmpty ColumnLevelPermissionRule)
      -> Maybe (HashMap Text LogicalTable)
      -> DataSet)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Parser (Maybe (Maybe (HashMap Text PhysicalTable)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"PhysicalTableMap"
                            Parser (Maybe (Maybe (HashMap Text PhysicalTable)))
-> Maybe (HashMap Text PhysicalTable)
-> Parser (Maybe (HashMap Text PhysicalTable))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Text PhysicalTable)
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe DataSetUsageConfiguration
   -> Maybe [OutputColumn]
   -> Maybe RowLevelPermissionTagConfiguration
   -> Maybe RowLevelPermissionDataSet
   -> Maybe (NonEmpty ColumnLevelPermissionRule)
   -> Maybe (HashMap Text LogicalTable)
   -> DataSet)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe DataSetUsageConfiguration
      -> Maybe [OutputColumn]
      -> Maybe RowLevelPermissionTagConfiguration
      -> Maybe RowLevelPermissionDataSet
      -> Maybe (NonEmpty ColumnLevelPermissionRule)
      -> Maybe (HashMap Text LogicalTable)
      -> DataSet)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DataSetId")
            Parser
  (Maybe Text
   -> Maybe DataSetUsageConfiguration
   -> Maybe [OutputColumn]
   -> Maybe RowLevelPermissionTagConfiguration
   -> Maybe RowLevelPermissionDataSet
   -> Maybe (NonEmpty ColumnLevelPermissionRule)
   -> Maybe (HashMap Text LogicalTable)
   -> DataSet)
-> Parser (Maybe Text)
-> Parser
     (Maybe DataSetUsageConfiguration
      -> Maybe [OutputColumn]
      -> Maybe RowLevelPermissionTagConfiguration
      -> Maybe RowLevelPermissionDataSet
      -> Maybe (NonEmpty ColumnLevelPermissionRule)
      -> Maybe (HashMap Text LogicalTable)
      -> DataSet)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Name")
            Parser
  (Maybe DataSetUsageConfiguration
   -> Maybe [OutputColumn]
   -> Maybe RowLevelPermissionTagConfiguration
   -> Maybe RowLevelPermissionDataSet
   -> Maybe (NonEmpty ColumnLevelPermissionRule)
   -> Maybe (HashMap Text LogicalTable)
   -> DataSet)
-> Parser (Maybe DataSetUsageConfiguration)
-> Parser
     (Maybe [OutputColumn]
      -> Maybe RowLevelPermissionTagConfiguration
      -> Maybe RowLevelPermissionDataSet
      -> Maybe (NonEmpty ColumnLevelPermissionRule)
      -> Maybe (HashMap Text LogicalTable)
      -> DataSet)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DataSetUsageConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DataSetUsageConfiguration")
            Parser
  (Maybe [OutputColumn]
   -> Maybe RowLevelPermissionTagConfiguration
   -> Maybe RowLevelPermissionDataSet
   -> Maybe (NonEmpty ColumnLevelPermissionRule)
   -> Maybe (HashMap Text LogicalTable)
   -> DataSet)
-> Parser (Maybe [OutputColumn])
-> Parser
     (Maybe RowLevelPermissionTagConfiguration
      -> Maybe RowLevelPermissionDataSet
      -> Maybe (NonEmpty ColumnLevelPermissionRule)
      -> Maybe (HashMap Text LogicalTable)
      -> DataSet)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [OutputColumn]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"OutputColumns" Parser (Maybe (Maybe [OutputColumn]))
-> Maybe [OutputColumn] -> Parser (Maybe [OutputColumn])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [OutputColumn]
forall a. Monoid a => a
Prelude.mempty)
            Parser
  (Maybe RowLevelPermissionTagConfiguration
   -> Maybe RowLevelPermissionDataSet
   -> Maybe (NonEmpty ColumnLevelPermissionRule)
   -> Maybe (HashMap Text LogicalTable)
   -> DataSet)
-> Parser (Maybe RowLevelPermissionTagConfiguration)
-> Parser
     (Maybe RowLevelPermissionDataSet
      -> Maybe (NonEmpty ColumnLevelPermissionRule)
      -> Maybe (HashMap Text LogicalTable)
      -> DataSet)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe RowLevelPermissionTagConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RowLevelPermissionTagConfiguration")
            Parser
  (Maybe RowLevelPermissionDataSet
   -> Maybe (NonEmpty ColumnLevelPermissionRule)
   -> Maybe (HashMap Text LogicalTable)
   -> DataSet)
-> Parser (Maybe RowLevelPermissionDataSet)
-> Parser
     (Maybe (NonEmpty ColumnLevelPermissionRule)
      -> Maybe (HashMap Text LogicalTable) -> DataSet)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe RowLevelPermissionDataSet)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RowLevelPermissionDataSet")
            Parser
  (Maybe (NonEmpty ColumnLevelPermissionRule)
   -> Maybe (HashMap Text LogicalTable) -> DataSet)
-> Parser (Maybe (NonEmpty ColumnLevelPermissionRule))
-> Parser (Maybe (HashMap Text LogicalTable) -> DataSet)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe (NonEmpty ColumnLevelPermissionRule))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ColumnLevelPermissionRules")
            Parser (Maybe (HashMap Text LogicalTable) -> DataSet)
-> Parser (Maybe (HashMap Text LogicalTable)) -> Parser DataSet
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Parser (Maybe (Maybe (HashMap Text LogicalTable)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LogicalTableMap"
                            Parser (Maybe (Maybe (HashMap Text LogicalTable)))
-> Maybe (HashMap Text LogicalTable)
-> Parser (Maybe (HashMap Text LogicalTable))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Text LogicalTable)
forall a. Monoid a => a
Prelude.mempty
                        )
      )

instance Prelude.Hashable DataSet

instance Prelude.NFData DataSet