{-# 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.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data DashboardSummary = DashboardSummary'
{
DashboardSummary -> Maybe POSIX
lastUpdatedTime :: Prelude.Maybe Core.POSIX,
DashboardSummary -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
DashboardSummary -> Maybe POSIX
createdTime :: Prelude.Maybe Core.POSIX,
DashboardSummary -> Maybe Text
dashboardId :: Prelude.Maybe Prelude.Text,
DashboardSummary -> Maybe Natural
publishedVersionNumber :: Prelude.Maybe Prelude.Natural,
DashboardSummary -> Maybe POSIX
lastPublishedTime :: Prelude.Maybe Core.POSIX,
DashboardSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text
}
deriving (DashboardSummary -> DashboardSummary -> Bool
(DashboardSummary -> DashboardSummary -> Bool)
-> (DashboardSummary -> DashboardSummary -> Bool)
-> Eq DashboardSummary
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]
(Int -> ReadS DashboardSummary)
-> ReadS [DashboardSummary]
-> ReadPrec DashboardSummary
-> ReadPrec [DashboardSummary]
-> Read 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
(Int -> DashboardSummary -> ShowS)
-> (DashboardSummary -> String)
-> ([DashboardSummary] -> ShowS)
-> Show DashboardSummary
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. DashboardSummary -> Rep DashboardSummary x)
-> (forall x. Rep DashboardSummary x -> DashboardSummary)
-> Generic DashboardSummary
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' :: Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe POSIX
-> Maybe Text
-> DashboardSummary
DashboardSummary'
{ $sel:lastUpdatedTime:DashboardSummary' :: Maybe POSIX
lastUpdatedTime =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:arn:DashboardSummary' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdTime:DashboardSummary' :: Maybe POSIX
createdTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:dashboardId:DashboardSummary' :: Maybe Text
dashboardId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:publishedVersionNumber:DashboardSummary' :: Maybe Natural
publishedVersionNumber = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:lastPublishedTime:DashboardSummary' :: Maybe POSIX
lastPublishedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:name:DashboardSummary' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
dashboardSummary_lastUpdatedTime :: Lens.Lens' DashboardSummary (Prelude.Maybe Prelude.UTCTime)
dashboardSummary_lastUpdatedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DashboardSummary -> f DashboardSummary
dashboardSummary_lastUpdatedTime = (DashboardSummary -> Maybe POSIX)
-> (DashboardSummary -> Maybe POSIX -> DashboardSummary)
-> Lens
DashboardSummary DashboardSummary (Maybe POSIX) (Maybe POSIX)
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) ((Maybe POSIX -> f (Maybe POSIX))
-> DashboardSummary -> f DashboardSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DashboardSummary
-> f DashboardSummary
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
dashboardSummary_arn :: Lens.Lens' DashboardSummary (Prelude.Maybe Prelude.Text)
dashboardSummary_arn :: (Maybe Text -> f (Maybe Text))
-> DashboardSummary -> f DashboardSummary
dashboardSummary_arn = (DashboardSummary -> Maybe Text)
-> (DashboardSummary -> Maybe Text -> DashboardSummary)
-> Lens DashboardSummary DashboardSummary (Maybe Text) (Maybe Text)
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 :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DashboardSummary -> f DashboardSummary
dashboardSummary_createdTime = (DashboardSummary -> Maybe POSIX)
-> (DashboardSummary -> Maybe POSIX -> DashboardSummary)
-> Lens
DashboardSummary DashboardSummary (Maybe POSIX) (Maybe POSIX)
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) ((Maybe POSIX -> f (Maybe POSIX))
-> DashboardSummary -> f DashboardSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DashboardSummary
-> f DashboardSummary
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
dashboardSummary_dashboardId :: Lens.Lens' DashboardSummary (Prelude.Maybe Prelude.Text)
dashboardSummary_dashboardId :: (Maybe Text -> f (Maybe Text))
-> DashboardSummary -> f DashboardSummary
dashboardSummary_dashboardId = (DashboardSummary -> Maybe Text)
-> (DashboardSummary -> Maybe Text -> DashboardSummary)
-> Lens DashboardSummary DashboardSummary (Maybe Text) (Maybe Text)
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_publishedVersionNumber :: Lens.Lens' DashboardSummary (Prelude.Maybe Prelude.Natural)
dashboardSummary_publishedVersionNumber :: (Maybe Natural -> f (Maybe Natural))
-> DashboardSummary -> f DashboardSummary
dashboardSummary_publishedVersionNumber = (DashboardSummary -> Maybe Natural)
-> (DashboardSummary -> Maybe Natural -> DashboardSummary)
-> Lens
DashboardSummary DashboardSummary (Maybe Natural) (Maybe Natural)
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)
dashboardSummary_lastPublishedTime :: Lens.Lens' DashboardSummary (Prelude.Maybe Prelude.UTCTime)
dashboardSummary_lastPublishedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DashboardSummary -> f DashboardSummary
dashboardSummary_lastPublishedTime = (DashboardSummary -> Maybe POSIX)
-> (DashboardSummary -> Maybe POSIX -> DashboardSummary)
-> Lens
DashboardSummary DashboardSummary (Maybe POSIX) (Maybe POSIX)
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) ((Maybe POSIX -> f (Maybe POSIX))
-> DashboardSummary -> f DashboardSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DashboardSummary
-> f DashboardSummary
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
dashboardSummary_name :: Lens.Lens' DashboardSummary (Prelude.Maybe Prelude.Text)
dashboardSummary_name :: (Maybe Text -> f (Maybe Text))
-> DashboardSummary -> f DashboardSummary
dashboardSummary_name = (DashboardSummary -> Maybe Text)
-> (DashboardSummary -> Maybe Text -> DashboardSummary)
-> Lens DashboardSummary DashboardSummary (Maybe Text) (Maybe Text)
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)
instance Core.FromJSON DashboardSummary where
parseJSON :: Value -> Parser DashboardSummary
parseJSON =
String
-> (Object -> Parser DashboardSummary)
-> Value
-> Parser DashboardSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"DashboardSummary"
( \Object
x ->
Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe POSIX
-> Maybe Text
-> DashboardSummary
DashboardSummary'
(Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe POSIX
-> Maybe Text
-> DashboardSummary)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe POSIX
-> Maybe Text
-> DashboardSummary)
forall (f :: * -> *) a b. Functor 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 Text
-> Maybe Natural
-> Maybe POSIX
-> Maybe Text
-> DashboardSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe POSIX
-> Maybe Text
-> DashboardSummary)
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 Text
-> Maybe Natural
-> Maybe POSIX
-> Maybe Text
-> DashboardSummary)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe Natural -> Maybe POSIX -> Maybe Text -> DashboardSummary)
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 Text
-> Maybe Natural -> Maybe POSIX -> Maybe Text -> DashboardSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Natural -> Maybe POSIX -> Maybe Text -> DashboardSummary)
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
"DashboardId")
Parser
(Maybe Natural -> Maybe POSIX -> Maybe Text -> DashboardSummary)
-> Parser (Maybe Natural)
-> Parser (Maybe POSIX -> Maybe Text -> DashboardSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"PublishedVersionNumber")
Parser (Maybe POSIX -> Maybe Text -> DashboardSummary)
-> Parser (Maybe POSIX) -> Parser (Maybe Text -> DashboardSummary)
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
"LastPublishedTime")
Parser (Maybe Text -> DashboardSummary)
-> Parser (Maybe Text) -> Parser DashboardSummary
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")
)
instance Prelude.Hashable DashboardSummary
instance Prelude.NFData DashboardSummary