{-# 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.FinSpaceData.Types.DataViewSummary
-- 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.FinSpaceData.Types.DataViewSummary where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.FinSpaceData.Types.DataViewDestinationTypeParams
import Amazonka.FinSpaceData.Types.DataViewErrorInfo
import Amazonka.FinSpaceData.Types.DataViewStatus
import qualified Amazonka.Prelude as Prelude

-- | Structure for the summary of a Dataview.
--
-- /See:/ 'newDataViewSummary' smart constructor.
data DataViewSummary = DataViewSummary'
  { -- | Time range to use for the Dataview. The value is determined as epoch
    -- time in milliseconds. For example, the value for Monday, November 1,
    -- 2021 12:00:00 PM UTC is specified as 1635768000000.
    DataViewSummary -> Maybe Integer
asOfTimestamp :: Prelude.Maybe Prelude.Integer,
    -- | The flag to indicate Dataview should be updated automatically.
    DataViewSummary -> Maybe Bool
autoUpdate :: Prelude.Maybe Prelude.Bool,
    -- | The timestamp at which the Dataview was created in FinSpace. The value
    -- is determined as epoch time in milliseconds. For example, the value for
    -- Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
    DataViewSummary -> Maybe Integer
createTime :: Prelude.Maybe Prelude.Integer,
    -- | The ARN identifier of the Dataview.
    DataViewSummary -> Maybe Text
dataViewArn :: Prelude.Maybe Prelude.Text,
    -- | The unique identifier for the Dataview.
    DataViewSummary -> Maybe Text
dataViewId :: Prelude.Maybe Prelude.Text,
    -- | Th unique identifier for the Dataview Dataset.
    DataViewSummary -> Maybe Text
datasetId :: Prelude.Maybe Prelude.Text,
    -- | Information about the Dataview destination.
    DataViewSummary -> Maybe DataViewDestinationTypeParams
destinationTypeProperties :: Prelude.Maybe DataViewDestinationTypeParams,
    -- | The structure with error messages.
    DataViewSummary -> Maybe DataViewErrorInfo
errorInfo :: Prelude.Maybe DataViewErrorInfo,
    -- | The last time that a Dataview was modified. The value is determined as
    -- epoch time in milliseconds. For example, the value for Monday, November
    -- 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
    DataViewSummary -> Maybe Integer
lastModifiedTime :: Prelude.Maybe Prelude.Integer,
    -- | Ordered set of column names used to partition data.
    DataViewSummary -> Maybe [Text]
partitionColumns :: Prelude.Maybe [Prelude.Text],
    -- | Columns to be used for sorting the data.
    DataViewSummary -> Maybe [Text]
sortColumns :: Prelude.Maybe [Prelude.Text],
    -- | The status of a Dataview creation.
    --
    -- -   @RUNNING@ – Dataview creation is running.
    --
    -- -   @STARTING@ – Dataview creation is starting.
    --
    -- -   @FAILED@ – Dataview creation has failed.
    --
    -- -   @CANCELLED@ – Dataview creation has been cancelled.
    --
    -- -   @TIMEOUT@ – Dataview creation has timed out.
    --
    -- -   @SUCCESS@ – Dataview creation has succeeded.
    --
    -- -   @PENDING@ – Dataview creation is pending.
    --
    -- -   @FAILED_CLEANUP_FAILED@ – Dataview creation failed and resource
    --     cleanup failed.
    DataViewSummary -> Maybe DataViewStatus
status :: Prelude.Maybe DataViewStatus
  }
  deriving (DataViewSummary -> DataViewSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DataViewSummary -> DataViewSummary -> Bool
$c/= :: DataViewSummary -> DataViewSummary -> Bool
== :: DataViewSummary -> DataViewSummary -> Bool
$c== :: DataViewSummary -> DataViewSummary -> Bool
Prelude.Eq, ReadPrec [DataViewSummary]
ReadPrec DataViewSummary
Int -> ReadS DataViewSummary
ReadS [DataViewSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DataViewSummary]
$creadListPrec :: ReadPrec [DataViewSummary]
readPrec :: ReadPrec DataViewSummary
$creadPrec :: ReadPrec DataViewSummary
readList :: ReadS [DataViewSummary]
$creadList :: ReadS [DataViewSummary]
readsPrec :: Int -> ReadS DataViewSummary
$creadsPrec :: Int -> ReadS DataViewSummary
Prelude.Read, Int -> DataViewSummary -> ShowS
[DataViewSummary] -> ShowS
DataViewSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DataViewSummary] -> ShowS
$cshowList :: [DataViewSummary] -> ShowS
show :: DataViewSummary -> String
$cshow :: DataViewSummary -> String
showsPrec :: Int -> DataViewSummary -> ShowS
$cshowsPrec :: Int -> DataViewSummary -> ShowS
Prelude.Show, forall x. Rep DataViewSummary x -> DataViewSummary
forall x. DataViewSummary -> Rep DataViewSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DataViewSummary x -> DataViewSummary
$cfrom :: forall x. DataViewSummary -> Rep DataViewSummary x
Prelude.Generic)

-- |
-- Create a value of 'DataViewSummary' 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:
--
-- 'asOfTimestamp', 'dataViewSummary_asOfTimestamp' - Time range to use for the Dataview. The value is determined as epoch
-- time in milliseconds. For example, the value for Monday, November 1,
-- 2021 12:00:00 PM UTC is specified as 1635768000000.
--
-- 'autoUpdate', 'dataViewSummary_autoUpdate' - The flag to indicate Dataview should be updated automatically.
--
-- 'createTime', 'dataViewSummary_createTime' - The timestamp at which the Dataview was created in FinSpace. The value
-- is determined as epoch time in milliseconds. For example, the value for
-- Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
--
-- 'dataViewArn', 'dataViewSummary_dataViewArn' - The ARN identifier of the Dataview.
--
-- 'dataViewId', 'dataViewSummary_dataViewId' - The unique identifier for the Dataview.
--
-- 'datasetId', 'dataViewSummary_datasetId' - Th unique identifier for the Dataview Dataset.
--
-- 'destinationTypeProperties', 'dataViewSummary_destinationTypeProperties' - Information about the Dataview destination.
--
-- 'errorInfo', 'dataViewSummary_errorInfo' - The structure with error messages.
--
-- 'lastModifiedTime', 'dataViewSummary_lastModifiedTime' - The last time that a Dataview was modified. The value is determined as
-- epoch time in milliseconds. For example, the value for Monday, November
-- 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
--
-- 'partitionColumns', 'dataViewSummary_partitionColumns' - Ordered set of column names used to partition data.
--
-- 'sortColumns', 'dataViewSummary_sortColumns' - Columns to be used for sorting the data.
--
-- 'status', 'dataViewSummary_status' - The status of a Dataview creation.
--
-- -   @RUNNING@ – Dataview creation is running.
--
-- -   @STARTING@ – Dataview creation is starting.
--
-- -   @FAILED@ – Dataview creation has failed.
--
-- -   @CANCELLED@ – Dataview creation has been cancelled.
--
-- -   @TIMEOUT@ – Dataview creation has timed out.
--
-- -   @SUCCESS@ – Dataview creation has succeeded.
--
-- -   @PENDING@ – Dataview creation is pending.
--
-- -   @FAILED_CLEANUP_FAILED@ – Dataview creation failed and resource
--     cleanup failed.
newDataViewSummary ::
  DataViewSummary
newDataViewSummary :: DataViewSummary
newDataViewSummary =
  DataViewSummary'
    { $sel:asOfTimestamp:DataViewSummary' :: Maybe Integer
asOfTimestamp = forall a. Maybe a
Prelude.Nothing,
      $sel:autoUpdate:DataViewSummary' :: Maybe Bool
autoUpdate = forall a. Maybe a
Prelude.Nothing,
      $sel:createTime:DataViewSummary' :: Maybe Integer
createTime = forall a. Maybe a
Prelude.Nothing,
      $sel:dataViewArn:DataViewSummary' :: Maybe Text
dataViewArn = forall a. Maybe a
Prelude.Nothing,
      $sel:dataViewId:DataViewSummary' :: Maybe Text
dataViewId = forall a. Maybe a
Prelude.Nothing,
      $sel:datasetId:DataViewSummary' :: Maybe Text
datasetId = forall a. Maybe a
Prelude.Nothing,
      $sel:destinationTypeProperties:DataViewSummary' :: Maybe DataViewDestinationTypeParams
destinationTypeProperties = forall a. Maybe a
Prelude.Nothing,
      $sel:errorInfo:DataViewSummary' :: Maybe DataViewErrorInfo
errorInfo = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTime:DataViewSummary' :: Maybe Integer
lastModifiedTime = forall a. Maybe a
Prelude.Nothing,
      $sel:partitionColumns:DataViewSummary' :: Maybe [Text]
partitionColumns = forall a. Maybe a
Prelude.Nothing,
      $sel:sortColumns:DataViewSummary' :: Maybe [Text]
sortColumns = forall a. Maybe a
Prelude.Nothing,
      $sel:status:DataViewSummary' :: Maybe DataViewStatus
status = forall a. Maybe a
Prelude.Nothing
    }

-- | Time range to use for the Dataview. The value is determined as epoch
-- time in milliseconds. For example, the value for Monday, November 1,
-- 2021 12:00:00 PM UTC is specified as 1635768000000.
dataViewSummary_asOfTimestamp :: Lens.Lens' DataViewSummary (Prelude.Maybe Prelude.Integer)
dataViewSummary_asOfTimestamp :: Lens' DataViewSummary (Maybe Integer)
dataViewSummary_asOfTimestamp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataViewSummary' {Maybe Integer
asOfTimestamp :: Maybe Integer
$sel:asOfTimestamp:DataViewSummary' :: DataViewSummary -> Maybe Integer
asOfTimestamp} -> Maybe Integer
asOfTimestamp) (\s :: DataViewSummary
s@DataViewSummary' {} Maybe Integer
a -> DataViewSummary
s {$sel:asOfTimestamp:DataViewSummary' :: Maybe Integer
asOfTimestamp = Maybe Integer
a} :: DataViewSummary)

-- | The flag to indicate Dataview should be updated automatically.
dataViewSummary_autoUpdate :: Lens.Lens' DataViewSummary (Prelude.Maybe Prelude.Bool)
dataViewSummary_autoUpdate :: Lens' DataViewSummary (Maybe Bool)
dataViewSummary_autoUpdate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataViewSummary' {Maybe Bool
autoUpdate :: Maybe Bool
$sel:autoUpdate:DataViewSummary' :: DataViewSummary -> Maybe Bool
autoUpdate} -> Maybe Bool
autoUpdate) (\s :: DataViewSummary
s@DataViewSummary' {} Maybe Bool
a -> DataViewSummary
s {$sel:autoUpdate:DataViewSummary' :: Maybe Bool
autoUpdate = Maybe Bool
a} :: DataViewSummary)

-- | The timestamp at which the Dataview was created in FinSpace. The value
-- is determined as epoch time in milliseconds. For example, the value for
-- Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
dataViewSummary_createTime :: Lens.Lens' DataViewSummary (Prelude.Maybe Prelude.Integer)
dataViewSummary_createTime :: Lens' DataViewSummary (Maybe Integer)
dataViewSummary_createTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataViewSummary' {Maybe Integer
createTime :: Maybe Integer
$sel:createTime:DataViewSummary' :: DataViewSummary -> Maybe Integer
createTime} -> Maybe Integer
createTime) (\s :: DataViewSummary
s@DataViewSummary' {} Maybe Integer
a -> DataViewSummary
s {$sel:createTime:DataViewSummary' :: Maybe Integer
createTime = Maybe Integer
a} :: DataViewSummary)

-- | The ARN identifier of the Dataview.
dataViewSummary_dataViewArn :: Lens.Lens' DataViewSummary (Prelude.Maybe Prelude.Text)
dataViewSummary_dataViewArn :: Lens' DataViewSummary (Maybe Text)
dataViewSummary_dataViewArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataViewSummary' {Maybe Text
dataViewArn :: Maybe Text
$sel:dataViewArn:DataViewSummary' :: DataViewSummary -> Maybe Text
dataViewArn} -> Maybe Text
dataViewArn) (\s :: DataViewSummary
s@DataViewSummary' {} Maybe Text
a -> DataViewSummary
s {$sel:dataViewArn:DataViewSummary' :: Maybe Text
dataViewArn = Maybe Text
a} :: DataViewSummary)

-- | The unique identifier for the Dataview.
dataViewSummary_dataViewId :: Lens.Lens' DataViewSummary (Prelude.Maybe Prelude.Text)
dataViewSummary_dataViewId :: Lens' DataViewSummary (Maybe Text)
dataViewSummary_dataViewId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataViewSummary' {Maybe Text
dataViewId :: Maybe Text
$sel:dataViewId:DataViewSummary' :: DataViewSummary -> Maybe Text
dataViewId} -> Maybe Text
dataViewId) (\s :: DataViewSummary
s@DataViewSummary' {} Maybe Text
a -> DataViewSummary
s {$sel:dataViewId:DataViewSummary' :: Maybe Text
dataViewId = Maybe Text
a} :: DataViewSummary)

-- | Th unique identifier for the Dataview Dataset.
dataViewSummary_datasetId :: Lens.Lens' DataViewSummary (Prelude.Maybe Prelude.Text)
dataViewSummary_datasetId :: Lens' DataViewSummary (Maybe Text)
dataViewSummary_datasetId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataViewSummary' {Maybe Text
datasetId :: Maybe Text
$sel:datasetId:DataViewSummary' :: DataViewSummary -> Maybe Text
datasetId} -> Maybe Text
datasetId) (\s :: DataViewSummary
s@DataViewSummary' {} Maybe Text
a -> DataViewSummary
s {$sel:datasetId:DataViewSummary' :: Maybe Text
datasetId = Maybe Text
a} :: DataViewSummary)

-- | Information about the Dataview destination.
dataViewSummary_destinationTypeProperties :: Lens.Lens' DataViewSummary (Prelude.Maybe DataViewDestinationTypeParams)
dataViewSummary_destinationTypeProperties :: Lens' DataViewSummary (Maybe DataViewDestinationTypeParams)
dataViewSummary_destinationTypeProperties = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataViewSummary' {Maybe DataViewDestinationTypeParams
destinationTypeProperties :: Maybe DataViewDestinationTypeParams
$sel:destinationTypeProperties:DataViewSummary' :: DataViewSummary -> Maybe DataViewDestinationTypeParams
destinationTypeProperties} -> Maybe DataViewDestinationTypeParams
destinationTypeProperties) (\s :: DataViewSummary
s@DataViewSummary' {} Maybe DataViewDestinationTypeParams
a -> DataViewSummary
s {$sel:destinationTypeProperties:DataViewSummary' :: Maybe DataViewDestinationTypeParams
destinationTypeProperties = Maybe DataViewDestinationTypeParams
a} :: DataViewSummary)

-- | The structure with error messages.
dataViewSummary_errorInfo :: Lens.Lens' DataViewSummary (Prelude.Maybe DataViewErrorInfo)
dataViewSummary_errorInfo :: Lens' DataViewSummary (Maybe DataViewErrorInfo)
dataViewSummary_errorInfo = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataViewSummary' {Maybe DataViewErrorInfo
errorInfo :: Maybe DataViewErrorInfo
$sel:errorInfo:DataViewSummary' :: DataViewSummary -> Maybe DataViewErrorInfo
errorInfo} -> Maybe DataViewErrorInfo
errorInfo) (\s :: DataViewSummary
s@DataViewSummary' {} Maybe DataViewErrorInfo
a -> DataViewSummary
s {$sel:errorInfo:DataViewSummary' :: Maybe DataViewErrorInfo
errorInfo = Maybe DataViewErrorInfo
a} :: DataViewSummary)

-- | The last time that a Dataview was modified. The value is determined as
-- epoch time in milliseconds. For example, the value for Monday, November
-- 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
dataViewSummary_lastModifiedTime :: Lens.Lens' DataViewSummary (Prelude.Maybe Prelude.Integer)
dataViewSummary_lastModifiedTime :: Lens' DataViewSummary (Maybe Integer)
dataViewSummary_lastModifiedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataViewSummary' {Maybe Integer
lastModifiedTime :: Maybe Integer
$sel:lastModifiedTime:DataViewSummary' :: DataViewSummary -> Maybe Integer
lastModifiedTime} -> Maybe Integer
lastModifiedTime) (\s :: DataViewSummary
s@DataViewSummary' {} Maybe Integer
a -> DataViewSummary
s {$sel:lastModifiedTime:DataViewSummary' :: Maybe Integer
lastModifiedTime = Maybe Integer
a} :: DataViewSummary)

-- | Ordered set of column names used to partition data.
dataViewSummary_partitionColumns :: Lens.Lens' DataViewSummary (Prelude.Maybe [Prelude.Text])
dataViewSummary_partitionColumns :: Lens' DataViewSummary (Maybe [Text])
dataViewSummary_partitionColumns = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataViewSummary' {Maybe [Text]
partitionColumns :: Maybe [Text]
$sel:partitionColumns:DataViewSummary' :: DataViewSummary -> Maybe [Text]
partitionColumns} -> Maybe [Text]
partitionColumns) (\s :: DataViewSummary
s@DataViewSummary' {} Maybe [Text]
a -> DataViewSummary
s {$sel:partitionColumns:DataViewSummary' :: Maybe [Text]
partitionColumns = Maybe [Text]
a} :: DataViewSummary) 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 s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Columns to be used for sorting the data.
dataViewSummary_sortColumns :: Lens.Lens' DataViewSummary (Prelude.Maybe [Prelude.Text])
dataViewSummary_sortColumns :: Lens' DataViewSummary (Maybe [Text])
dataViewSummary_sortColumns = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataViewSummary' {Maybe [Text]
sortColumns :: Maybe [Text]
$sel:sortColumns:DataViewSummary' :: DataViewSummary -> Maybe [Text]
sortColumns} -> Maybe [Text]
sortColumns) (\s :: DataViewSummary
s@DataViewSummary' {} Maybe [Text]
a -> DataViewSummary
s {$sel:sortColumns:DataViewSummary' :: Maybe [Text]
sortColumns = Maybe [Text]
a} :: DataViewSummary) 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 s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The status of a Dataview creation.
--
-- -   @RUNNING@ – Dataview creation is running.
--
-- -   @STARTING@ – Dataview creation is starting.
--
-- -   @FAILED@ – Dataview creation has failed.
--
-- -   @CANCELLED@ – Dataview creation has been cancelled.
--
-- -   @TIMEOUT@ – Dataview creation has timed out.
--
-- -   @SUCCESS@ – Dataview creation has succeeded.
--
-- -   @PENDING@ – Dataview creation is pending.
--
-- -   @FAILED_CLEANUP_FAILED@ – Dataview creation failed and resource
--     cleanup failed.
dataViewSummary_status :: Lens.Lens' DataViewSummary (Prelude.Maybe DataViewStatus)
dataViewSummary_status :: Lens' DataViewSummary (Maybe DataViewStatus)
dataViewSummary_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataViewSummary' {Maybe DataViewStatus
status :: Maybe DataViewStatus
$sel:status:DataViewSummary' :: DataViewSummary -> Maybe DataViewStatus
status} -> Maybe DataViewStatus
status) (\s :: DataViewSummary
s@DataViewSummary' {} Maybe DataViewStatus
a -> DataViewSummary
s {$sel:status:DataViewSummary' :: Maybe DataViewStatus
status = Maybe DataViewStatus
a} :: DataViewSummary)

instance Data.FromJSON DataViewSummary where
  parseJSON :: Value -> Parser DataViewSummary
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"DataViewSummary"
      ( \Object
x ->
          Maybe Integer
-> Maybe Bool
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe DataViewDestinationTypeParams
-> Maybe DataViewErrorInfo
-> Maybe Integer
-> Maybe [Text]
-> Maybe [Text]
-> Maybe DataViewStatus
-> DataViewSummary
DataViewSummary'
            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
"asOfTimestamp")
            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
"autoUpdate")
            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
"createTime")
            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
"dataViewArn")
            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
"dataViewId")
            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
"datasetId")
            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
"destinationTypeProperties")
            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
"errorInfo")
            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
"lastModifiedTime")
            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
"partitionColumns"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
            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
"sortColumns" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            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 DataViewSummary where
  hashWithSalt :: Int -> DataViewSummary -> Int
hashWithSalt Int
_salt DataViewSummary' {Maybe Bool
Maybe Integer
Maybe [Text]
Maybe Text
Maybe DataViewStatus
Maybe DataViewErrorInfo
Maybe DataViewDestinationTypeParams
status :: Maybe DataViewStatus
sortColumns :: Maybe [Text]
partitionColumns :: Maybe [Text]
lastModifiedTime :: Maybe Integer
errorInfo :: Maybe DataViewErrorInfo
destinationTypeProperties :: Maybe DataViewDestinationTypeParams
datasetId :: Maybe Text
dataViewId :: Maybe Text
dataViewArn :: Maybe Text
createTime :: Maybe Integer
autoUpdate :: Maybe Bool
asOfTimestamp :: Maybe Integer
$sel:status:DataViewSummary' :: DataViewSummary -> Maybe DataViewStatus
$sel:sortColumns:DataViewSummary' :: DataViewSummary -> Maybe [Text]
$sel:partitionColumns:DataViewSummary' :: DataViewSummary -> Maybe [Text]
$sel:lastModifiedTime:DataViewSummary' :: DataViewSummary -> Maybe Integer
$sel:errorInfo:DataViewSummary' :: DataViewSummary -> Maybe DataViewErrorInfo
$sel:destinationTypeProperties:DataViewSummary' :: DataViewSummary -> Maybe DataViewDestinationTypeParams
$sel:datasetId:DataViewSummary' :: DataViewSummary -> Maybe Text
$sel:dataViewId:DataViewSummary' :: DataViewSummary -> Maybe Text
$sel:dataViewArn:DataViewSummary' :: DataViewSummary -> Maybe Text
$sel:createTime:DataViewSummary' :: DataViewSummary -> Maybe Integer
$sel:autoUpdate:DataViewSummary' :: DataViewSummary -> Maybe Bool
$sel:asOfTimestamp:DataViewSummary' :: DataViewSummary -> Maybe Integer
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Integer
asOfTimestamp
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
autoUpdate
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Integer
createTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dataViewArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dataViewId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
datasetId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DataViewDestinationTypeParams
destinationTypeProperties
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DataViewErrorInfo
errorInfo
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Integer
lastModifiedTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
partitionColumns
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
sortColumns
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DataViewStatus
status

instance Prelude.NFData DataViewSummary where
  rnf :: DataViewSummary -> ()
rnf DataViewSummary' {Maybe Bool
Maybe Integer
Maybe [Text]
Maybe Text
Maybe DataViewStatus
Maybe DataViewErrorInfo
Maybe DataViewDestinationTypeParams
status :: Maybe DataViewStatus
sortColumns :: Maybe [Text]
partitionColumns :: Maybe [Text]
lastModifiedTime :: Maybe Integer
errorInfo :: Maybe DataViewErrorInfo
destinationTypeProperties :: Maybe DataViewDestinationTypeParams
datasetId :: Maybe Text
dataViewId :: Maybe Text
dataViewArn :: Maybe Text
createTime :: Maybe Integer
autoUpdate :: Maybe Bool
asOfTimestamp :: Maybe Integer
$sel:status:DataViewSummary' :: DataViewSummary -> Maybe DataViewStatus
$sel:sortColumns:DataViewSummary' :: DataViewSummary -> Maybe [Text]
$sel:partitionColumns:DataViewSummary' :: DataViewSummary -> Maybe [Text]
$sel:lastModifiedTime:DataViewSummary' :: DataViewSummary -> Maybe Integer
$sel:errorInfo:DataViewSummary' :: DataViewSummary -> Maybe DataViewErrorInfo
$sel:destinationTypeProperties:DataViewSummary' :: DataViewSummary -> Maybe DataViewDestinationTypeParams
$sel:datasetId:DataViewSummary' :: DataViewSummary -> Maybe Text
$sel:dataViewId:DataViewSummary' :: DataViewSummary -> Maybe Text
$sel:dataViewArn:DataViewSummary' :: DataViewSummary -> Maybe Text
$sel:createTime:DataViewSummary' :: DataViewSummary -> Maybe Integer
$sel:autoUpdate:DataViewSummary' :: DataViewSummary -> Maybe Bool
$sel:asOfTimestamp:DataViewSummary' :: DataViewSummary -> Maybe Integer
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
asOfTimestamp
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
autoUpdate
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
createTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dataViewArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dataViewId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
datasetId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DataViewDestinationTypeParams
destinationTypeProperties
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DataViewErrorInfo
errorInfo
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
lastModifiedTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
partitionColumns
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
sortColumns
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DataViewStatus
status