{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.QuickSight.Types.DashboardSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data DashboardSummary = DashboardSummary'
{
DashboardSummary -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
DashboardSummary -> Maybe POSIX
createdTime :: Prelude.Maybe Data.POSIX,
DashboardSummary -> Maybe Text
dashboardId :: Prelude.Maybe Prelude.Text,
DashboardSummary -> Maybe POSIX
lastPublishedTime :: Prelude.Maybe Data.POSIX,
DashboardSummary -> Maybe POSIX
lastUpdatedTime :: Prelude.Maybe Data.POSIX,
DashboardSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
DashboardSummary -> Maybe Natural
publishedVersionNumber :: Prelude.Maybe Prelude.Natural
}
deriving (DashboardSummary -> DashboardSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DashboardSummary -> DashboardSummary -> Bool
$c/= :: DashboardSummary -> DashboardSummary -> Bool
== :: DashboardSummary -> DashboardSummary -> Bool
$c== :: DashboardSummary -> DashboardSummary -> Bool
Prelude.Eq, ReadPrec [DashboardSummary]
ReadPrec DashboardSummary
Int -> ReadS DashboardSummary
ReadS [DashboardSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DashboardSummary]
$creadListPrec :: ReadPrec [DashboardSummary]
readPrec :: ReadPrec DashboardSummary
$creadPrec :: ReadPrec DashboardSummary
readList :: ReadS [DashboardSummary]
$creadList :: ReadS [DashboardSummary]
readsPrec :: Int -> ReadS DashboardSummary
$creadsPrec :: Int -> ReadS DashboardSummary
Prelude.Read, Int -> DashboardSummary -> ShowS
[DashboardSummary] -> ShowS
DashboardSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DashboardSummary] -> ShowS
$cshowList :: [DashboardSummary] -> ShowS
show :: DashboardSummary -> String
$cshow :: DashboardSummary -> String
showsPrec :: Int -> DashboardSummary -> ShowS
$cshowsPrec :: Int -> DashboardSummary -> ShowS
Prelude.Show, forall x. Rep DashboardSummary x -> DashboardSummary
forall x. DashboardSummary -> Rep DashboardSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DashboardSummary x -> DashboardSummary
$cfrom :: forall x. DashboardSummary -> Rep DashboardSummary x
Prelude.Generic)
newDashboardSummary ::
DashboardSummary
newDashboardSummary :: DashboardSummary
newDashboardSummary =
DashboardSummary'
{ $sel:arn:DashboardSummary' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
$sel:createdTime:DashboardSummary' :: Maybe POSIX
createdTime = forall a. Maybe a
Prelude.Nothing,
$sel:dashboardId:DashboardSummary' :: Maybe Text
dashboardId = forall a. Maybe a
Prelude.Nothing,
$sel:lastPublishedTime:DashboardSummary' :: Maybe POSIX
lastPublishedTime = forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedTime:DashboardSummary' :: Maybe POSIX
lastUpdatedTime = forall a. Maybe a
Prelude.Nothing,
$sel:name:DashboardSummary' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:publishedVersionNumber:DashboardSummary' :: Maybe Natural
publishedVersionNumber = forall a. Maybe a
Prelude.Nothing
}
dashboardSummary_arn :: Lens.Lens' DashboardSummary (Prelude.Maybe Prelude.Text)
dashboardSummary_arn :: Lens' DashboardSummary (Maybe Text)
dashboardSummary_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DashboardSummary' {Maybe Text
arn :: Maybe Text
$sel:arn:DashboardSummary' :: DashboardSummary -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DashboardSummary
s@DashboardSummary' {} Maybe Text
a -> DashboardSummary
s {$sel:arn:DashboardSummary' :: Maybe Text
arn = Maybe Text
a} :: DashboardSummary)
dashboardSummary_createdTime :: Lens.Lens' DashboardSummary (Prelude.Maybe Prelude.UTCTime)
dashboardSummary_createdTime :: Lens' DashboardSummary (Maybe UTCTime)
dashboardSummary_createdTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DashboardSummary' {Maybe POSIX
createdTime :: Maybe POSIX
$sel:createdTime:DashboardSummary' :: DashboardSummary -> Maybe POSIX
createdTime} -> Maybe POSIX
createdTime) (\s :: DashboardSummary
s@DashboardSummary' {} Maybe POSIX
a -> DashboardSummary
s {$sel:createdTime:DashboardSummary' :: Maybe POSIX
createdTime = Maybe POSIX
a} :: DashboardSummary) 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
dashboardSummary_dashboardId :: Lens.Lens' DashboardSummary (Prelude.Maybe Prelude.Text)
dashboardSummary_dashboardId :: Lens' DashboardSummary (Maybe Text)
dashboardSummary_dashboardId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DashboardSummary' {Maybe Text
dashboardId :: Maybe Text
$sel:dashboardId:DashboardSummary' :: DashboardSummary -> Maybe Text
dashboardId} -> Maybe Text
dashboardId) (\s :: DashboardSummary
s@DashboardSummary' {} Maybe Text
a -> DashboardSummary
s {$sel:dashboardId:DashboardSummary' :: Maybe Text
dashboardId = Maybe Text
a} :: DashboardSummary)
dashboardSummary_lastPublishedTime :: Lens.Lens' DashboardSummary (Prelude.Maybe Prelude.UTCTime)
dashboardSummary_lastPublishedTime :: Lens' DashboardSummary (Maybe UTCTime)
dashboardSummary_lastPublishedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DashboardSummary' {Maybe POSIX
lastPublishedTime :: Maybe POSIX
$sel:lastPublishedTime:DashboardSummary' :: DashboardSummary -> Maybe POSIX
lastPublishedTime} -> Maybe POSIX
lastPublishedTime) (\s :: DashboardSummary
s@DashboardSummary' {} Maybe POSIX
a -> DashboardSummary
s {$sel:lastPublishedTime:DashboardSummary' :: Maybe POSIX
lastPublishedTime = Maybe POSIX
a} :: DashboardSummary) 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
dashboardSummary_lastUpdatedTime :: Lens.Lens' DashboardSummary (Prelude.Maybe Prelude.UTCTime)
dashboardSummary_lastUpdatedTime :: Lens' DashboardSummary (Maybe UTCTime)
dashboardSummary_lastUpdatedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DashboardSummary' {Maybe POSIX
lastUpdatedTime :: Maybe POSIX
$sel:lastUpdatedTime:DashboardSummary' :: DashboardSummary -> Maybe POSIX
lastUpdatedTime} -> Maybe POSIX
lastUpdatedTime) (\s :: DashboardSummary
s@DashboardSummary' {} Maybe POSIX
a -> DashboardSummary
s {$sel:lastUpdatedTime:DashboardSummary' :: Maybe POSIX
lastUpdatedTime = Maybe POSIX
a} :: DashboardSummary) 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
dashboardSummary_name :: Lens.Lens' DashboardSummary (Prelude.Maybe Prelude.Text)
dashboardSummary_name :: Lens' DashboardSummary (Maybe Text)
dashboardSummary_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DashboardSummary' {Maybe Text
name :: Maybe Text
$sel:name:DashboardSummary' :: DashboardSummary -> Maybe Text
name} -> Maybe Text
name) (\s :: DashboardSummary
s@DashboardSummary' {} Maybe Text
a -> DashboardSummary
s {$sel:name:DashboardSummary' :: Maybe Text
name = Maybe Text
a} :: DashboardSummary)
dashboardSummary_publishedVersionNumber :: Lens.Lens' DashboardSummary (Prelude.Maybe Prelude.Natural)
dashboardSummary_publishedVersionNumber :: Lens' DashboardSummary (Maybe Natural)
dashboardSummary_publishedVersionNumber = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DashboardSummary' {Maybe Natural
publishedVersionNumber :: Maybe Natural
$sel:publishedVersionNumber:DashboardSummary' :: DashboardSummary -> Maybe Natural
publishedVersionNumber} -> Maybe Natural
publishedVersionNumber) (\s :: DashboardSummary
s@DashboardSummary' {} Maybe Natural
a -> DashboardSummary
s {$sel:publishedVersionNumber:DashboardSummary' :: Maybe Natural
publishedVersionNumber = Maybe Natural
a} :: DashboardSummary)
instance Data.FromJSON DashboardSummary where
parseJSON :: Value -> Parser DashboardSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"DashboardSummary"
( \Object
x ->
Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> DashboardSummary
DashboardSummary'
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
"Arn")
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
"CreatedTime")
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
"DashboardId")
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
"LastPublishedTime")
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
"LastUpdatedTime")
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
"Name")
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
"PublishedVersionNumber")
)
instance Prelude.Hashable DashboardSummary where
hashWithSalt :: Int -> DashboardSummary -> Int
hashWithSalt Int
_salt DashboardSummary' {Maybe Natural
Maybe Text
Maybe POSIX
publishedVersionNumber :: Maybe Natural
name :: Maybe Text
lastUpdatedTime :: Maybe POSIX
lastPublishedTime :: Maybe POSIX
dashboardId :: Maybe Text
createdTime :: Maybe POSIX
arn :: Maybe Text
$sel:publishedVersionNumber:DashboardSummary' :: DashboardSummary -> Maybe Natural
$sel:name:DashboardSummary' :: DashboardSummary -> Maybe Text
$sel:lastUpdatedTime:DashboardSummary' :: DashboardSummary -> Maybe POSIX
$sel:lastPublishedTime:DashboardSummary' :: DashboardSummary -> Maybe POSIX
$sel:dashboardId:DashboardSummary' :: DashboardSummary -> Maybe Text
$sel:createdTime:DashboardSummary' :: DashboardSummary -> Maybe POSIX
$sel:arn:DashboardSummary' :: DashboardSummary -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
createdTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dashboardId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastPublishedTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastUpdatedTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
publishedVersionNumber
instance Prelude.NFData DashboardSummary where
rnf :: DashboardSummary -> ()
rnf DashboardSummary' {Maybe Natural
Maybe Text
Maybe POSIX
publishedVersionNumber :: Maybe Natural
name :: Maybe Text
lastUpdatedTime :: Maybe POSIX
lastPublishedTime :: Maybe POSIX
dashboardId :: Maybe Text
createdTime :: Maybe POSIX
arn :: Maybe Text
$sel:publishedVersionNumber:DashboardSummary' :: DashboardSummary -> Maybe Natural
$sel:name:DashboardSummary' :: DashboardSummary -> Maybe Text
$sel:lastUpdatedTime:DashboardSummary' :: DashboardSummary -> Maybe POSIX
$sel:lastPublishedTime:DashboardSummary' :: DashboardSummary -> Maybe POSIX
$sel:dashboardId:DashboardSummary' :: DashboardSummary -> Maybe Text
$sel:createdTime:DashboardSummary' :: DashboardSummary -> Maybe POSIX
$sel:arn:DashboardSummary' :: DashboardSummary -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
createdTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dashboardId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastPublishedTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastUpdatedTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
publishedVersionNumber