{-# 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.ThemeSummary 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 ThemeSummary = ThemeSummary'
{
ThemeSummary -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
ThemeSummary -> Maybe POSIX
createdTime :: Prelude.Maybe Data.POSIX,
ThemeSummary -> Maybe POSIX
lastUpdatedTime :: Prelude.Maybe Data.POSIX,
ThemeSummary -> Maybe Natural
latestVersionNumber :: Prelude.Maybe Prelude.Natural,
ThemeSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
ThemeSummary -> Maybe Text
themeId :: Prelude.Maybe Prelude.Text
}
deriving (ThemeSummary -> ThemeSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ThemeSummary -> ThemeSummary -> Bool
$c/= :: ThemeSummary -> ThemeSummary -> Bool
== :: ThemeSummary -> ThemeSummary -> Bool
$c== :: ThemeSummary -> ThemeSummary -> Bool
Prelude.Eq, ReadPrec [ThemeSummary]
ReadPrec ThemeSummary
Int -> ReadS ThemeSummary
ReadS [ThemeSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ThemeSummary]
$creadListPrec :: ReadPrec [ThemeSummary]
readPrec :: ReadPrec ThemeSummary
$creadPrec :: ReadPrec ThemeSummary
readList :: ReadS [ThemeSummary]
$creadList :: ReadS [ThemeSummary]
readsPrec :: Int -> ReadS ThemeSummary
$creadsPrec :: Int -> ReadS ThemeSummary
Prelude.Read, Int -> ThemeSummary -> ShowS
[ThemeSummary] -> ShowS
ThemeSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ThemeSummary] -> ShowS
$cshowList :: [ThemeSummary] -> ShowS
show :: ThemeSummary -> String
$cshow :: ThemeSummary -> String
showsPrec :: Int -> ThemeSummary -> ShowS
$cshowsPrec :: Int -> ThemeSummary -> ShowS
Prelude.Show, forall x. Rep ThemeSummary x -> ThemeSummary
forall x. ThemeSummary -> Rep ThemeSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ThemeSummary x -> ThemeSummary
$cfrom :: forall x. ThemeSummary -> Rep ThemeSummary x
Prelude.Generic)
newThemeSummary ::
ThemeSummary
newThemeSummary :: ThemeSummary
newThemeSummary =
ThemeSummary'
{ $sel:arn:ThemeSummary' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
$sel:createdTime:ThemeSummary' :: Maybe POSIX
createdTime = forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedTime:ThemeSummary' :: Maybe POSIX
lastUpdatedTime = forall a. Maybe a
Prelude.Nothing,
$sel:latestVersionNumber:ThemeSummary' :: Maybe Natural
latestVersionNumber = forall a. Maybe a
Prelude.Nothing,
$sel:name:ThemeSummary' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:themeId:ThemeSummary' :: Maybe Text
themeId = forall a. Maybe a
Prelude.Nothing
}
themeSummary_arn :: Lens.Lens' ThemeSummary (Prelude.Maybe Prelude.Text)
themeSummary_arn :: Lens' ThemeSummary (Maybe Text)
themeSummary_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ThemeSummary' {Maybe Text
arn :: Maybe Text
$sel:arn:ThemeSummary' :: ThemeSummary -> Maybe Text
arn} -> Maybe Text
arn) (\s :: ThemeSummary
s@ThemeSummary' {} Maybe Text
a -> ThemeSummary
s {$sel:arn:ThemeSummary' :: Maybe Text
arn = Maybe Text
a} :: ThemeSummary)
themeSummary_createdTime :: Lens.Lens' ThemeSummary (Prelude.Maybe Prelude.UTCTime)
themeSummary_createdTime :: Lens' ThemeSummary (Maybe UTCTime)
themeSummary_createdTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ThemeSummary' {Maybe POSIX
createdTime :: Maybe POSIX
$sel:createdTime:ThemeSummary' :: ThemeSummary -> Maybe POSIX
createdTime} -> Maybe POSIX
createdTime) (\s :: ThemeSummary
s@ThemeSummary' {} Maybe POSIX
a -> ThemeSummary
s {$sel:createdTime:ThemeSummary' :: Maybe POSIX
createdTime = Maybe POSIX
a} :: ThemeSummary) 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
themeSummary_lastUpdatedTime :: Lens.Lens' ThemeSummary (Prelude.Maybe Prelude.UTCTime)
themeSummary_lastUpdatedTime :: Lens' ThemeSummary (Maybe UTCTime)
themeSummary_lastUpdatedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ThemeSummary' {Maybe POSIX
lastUpdatedTime :: Maybe POSIX
$sel:lastUpdatedTime:ThemeSummary' :: ThemeSummary -> Maybe POSIX
lastUpdatedTime} -> Maybe POSIX
lastUpdatedTime) (\s :: ThemeSummary
s@ThemeSummary' {} Maybe POSIX
a -> ThemeSummary
s {$sel:lastUpdatedTime:ThemeSummary' :: Maybe POSIX
lastUpdatedTime = Maybe POSIX
a} :: ThemeSummary) 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
themeSummary_latestVersionNumber :: Lens.Lens' ThemeSummary (Prelude.Maybe Prelude.Natural)
themeSummary_latestVersionNumber :: Lens' ThemeSummary (Maybe Natural)
themeSummary_latestVersionNumber = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ThemeSummary' {Maybe Natural
latestVersionNumber :: Maybe Natural
$sel:latestVersionNumber:ThemeSummary' :: ThemeSummary -> Maybe Natural
latestVersionNumber} -> Maybe Natural
latestVersionNumber) (\s :: ThemeSummary
s@ThemeSummary' {} Maybe Natural
a -> ThemeSummary
s {$sel:latestVersionNumber:ThemeSummary' :: Maybe Natural
latestVersionNumber = Maybe Natural
a} :: ThemeSummary)
themeSummary_name :: Lens.Lens' ThemeSummary (Prelude.Maybe Prelude.Text)
themeSummary_name :: Lens' ThemeSummary (Maybe Text)
themeSummary_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ThemeSummary' {Maybe Text
name :: Maybe Text
$sel:name:ThemeSummary' :: ThemeSummary -> Maybe Text
name} -> Maybe Text
name) (\s :: ThemeSummary
s@ThemeSummary' {} Maybe Text
a -> ThemeSummary
s {$sel:name:ThemeSummary' :: Maybe Text
name = Maybe Text
a} :: ThemeSummary)
themeSummary_themeId :: Lens.Lens' ThemeSummary (Prelude.Maybe Prelude.Text)
themeSummary_themeId :: Lens' ThemeSummary (Maybe Text)
themeSummary_themeId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ThemeSummary' {Maybe Text
themeId :: Maybe Text
$sel:themeId:ThemeSummary' :: ThemeSummary -> Maybe Text
themeId} -> Maybe Text
themeId) (\s :: ThemeSummary
s@ThemeSummary' {} Maybe Text
a -> ThemeSummary
s {$sel:themeId:ThemeSummary' :: Maybe Text
themeId = Maybe Text
a} :: ThemeSummary)
instance Data.FromJSON ThemeSummary where
parseJSON :: Value -> Parser ThemeSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"ThemeSummary"
( \Object
x ->
Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> ThemeSummary
ThemeSummary'
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
"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
"LatestVersionNumber")
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
"ThemeId")
)
instance Prelude.Hashable ThemeSummary where
hashWithSalt :: Int -> ThemeSummary -> Int
hashWithSalt Int
_salt ThemeSummary' {Maybe Natural
Maybe Text
Maybe POSIX
themeId :: Maybe Text
name :: Maybe Text
latestVersionNumber :: Maybe Natural
lastUpdatedTime :: Maybe POSIX
createdTime :: Maybe POSIX
arn :: Maybe Text
$sel:themeId:ThemeSummary' :: ThemeSummary -> Maybe Text
$sel:name:ThemeSummary' :: ThemeSummary -> Maybe Text
$sel:latestVersionNumber:ThemeSummary' :: ThemeSummary -> Maybe Natural
$sel:lastUpdatedTime:ThemeSummary' :: ThemeSummary -> Maybe POSIX
$sel:createdTime:ThemeSummary' :: ThemeSummary -> Maybe POSIX
$sel:arn:ThemeSummary' :: ThemeSummary -> 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 POSIX
lastUpdatedTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
latestVersionNumber
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
themeId
instance Prelude.NFData ThemeSummary where
rnf :: ThemeSummary -> ()
rnf ThemeSummary' {Maybe Natural
Maybe Text
Maybe POSIX
themeId :: Maybe Text
name :: Maybe Text
latestVersionNumber :: Maybe Natural
lastUpdatedTime :: Maybe POSIX
createdTime :: Maybe POSIX
arn :: Maybe Text
$sel:themeId:ThemeSummary' :: ThemeSummary -> Maybe Text
$sel:name:ThemeSummary' :: ThemeSummary -> Maybe Text
$sel:latestVersionNumber:ThemeSummary' :: ThemeSummary -> Maybe Natural
$sel:lastUpdatedTime:ThemeSummary' :: ThemeSummary -> Maybe POSIX
$sel:createdTime:ThemeSummary' :: ThemeSummary -> Maybe POSIX
$sel:arn:ThemeSummary' :: ThemeSummary -> 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 POSIX
lastUpdatedTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
latestVersionNumber
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 Text
themeId