{-# 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.Forecast.Types.DatasetGroupSummary 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 DatasetGroupSummary = DatasetGroupSummary'
{
DatasetGroupSummary -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
DatasetGroupSummary -> Maybe Text
datasetGroupArn :: Prelude.Maybe Prelude.Text,
DatasetGroupSummary -> Maybe Text
datasetGroupName :: Prelude.Maybe Prelude.Text,
DatasetGroupSummary -> Maybe POSIX
lastModificationTime :: Prelude.Maybe Data.POSIX
}
deriving (DatasetGroupSummary -> DatasetGroupSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DatasetGroupSummary -> DatasetGroupSummary -> Bool
$c/= :: DatasetGroupSummary -> DatasetGroupSummary -> Bool
== :: DatasetGroupSummary -> DatasetGroupSummary -> Bool
$c== :: DatasetGroupSummary -> DatasetGroupSummary -> Bool
Prelude.Eq, ReadPrec [DatasetGroupSummary]
ReadPrec DatasetGroupSummary
Int -> ReadS DatasetGroupSummary
ReadS [DatasetGroupSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DatasetGroupSummary]
$creadListPrec :: ReadPrec [DatasetGroupSummary]
readPrec :: ReadPrec DatasetGroupSummary
$creadPrec :: ReadPrec DatasetGroupSummary
readList :: ReadS [DatasetGroupSummary]
$creadList :: ReadS [DatasetGroupSummary]
readsPrec :: Int -> ReadS DatasetGroupSummary
$creadsPrec :: Int -> ReadS DatasetGroupSummary
Prelude.Read, Int -> DatasetGroupSummary -> ShowS
[DatasetGroupSummary] -> ShowS
DatasetGroupSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DatasetGroupSummary] -> ShowS
$cshowList :: [DatasetGroupSummary] -> ShowS
show :: DatasetGroupSummary -> String
$cshow :: DatasetGroupSummary -> String
showsPrec :: Int -> DatasetGroupSummary -> ShowS
$cshowsPrec :: Int -> DatasetGroupSummary -> ShowS
Prelude.Show, forall x. Rep DatasetGroupSummary x -> DatasetGroupSummary
forall x. DatasetGroupSummary -> Rep DatasetGroupSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DatasetGroupSummary x -> DatasetGroupSummary
$cfrom :: forall x. DatasetGroupSummary -> Rep DatasetGroupSummary x
Prelude.Generic)
newDatasetGroupSummary ::
DatasetGroupSummary
newDatasetGroupSummary :: DatasetGroupSummary
newDatasetGroupSummary =
DatasetGroupSummary'
{ $sel:creationTime:DatasetGroupSummary' :: Maybe POSIX
creationTime =
forall a. Maybe a
Prelude.Nothing,
$sel:datasetGroupArn:DatasetGroupSummary' :: Maybe Text
datasetGroupArn = forall a. Maybe a
Prelude.Nothing,
$sel:datasetGroupName:DatasetGroupSummary' :: Maybe Text
datasetGroupName = forall a. Maybe a
Prelude.Nothing,
$sel:lastModificationTime:DatasetGroupSummary' :: Maybe POSIX
lastModificationTime = forall a. Maybe a
Prelude.Nothing
}
datasetGroupSummary_creationTime :: Lens.Lens' DatasetGroupSummary (Prelude.Maybe Prelude.UTCTime)
datasetGroupSummary_creationTime :: Lens' DatasetGroupSummary (Maybe UTCTime)
datasetGroupSummary_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetGroupSummary' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DatasetGroupSummary' :: DatasetGroupSummary -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DatasetGroupSummary
s@DatasetGroupSummary' {} Maybe POSIX
a -> DatasetGroupSummary
s {$sel:creationTime:DatasetGroupSummary' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DatasetGroupSummary) 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
datasetGroupSummary_datasetGroupArn :: Lens.Lens' DatasetGroupSummary (Prelude.Maybe Prelude.Text)
datasetGroupSummary_datasetGroupArn :: Lens' DatasetGroupSummary (Maybe Text)
datasetGroupSummary_datasetGroupArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetGroupSummary' {Maybe Text
datasetGroupArn :: Maybe Text
$sel:datasetGroupArn:DatasetGroupSummary' :: DatasetGroupSummary -> Maybe Text
datasetGroupArn} -> Maybe Text
datasetGroupArn) (\s :: DatasetGroupSummary
s@DatasetGroupSummary' {} Maybe Text
a -> DatasetGroupSummary
s {$sel:datasetGroupArn:DatasetGroupSummary' :: Maybe Text
datasetGroupArn = Maybe Text
a} :: DatasetGroupSummary)
datasetGroupSummary_datasetGroupName :: Lens.Lens' DatasetGroupSummary (Prelude.Maybe Prelude.Text)
datasetGroupSummary_datasetGroupName :: Lens' DatasetGroupSummary (Maybe Text)
datasetGroupSummary_datasetGroupName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetGroupSummary' {Maybe Text
datasetGroupName :: Maybe Text
$sel:datasetGroupName:DatasetGroupSummary' :: DatasetGroupSummary -> Maybe Text
datasetGroupName} -> Maybe Text
datasetGroupName) (\s :: DatasetGroupSummary
s@DatasetGroupSummary' {} Maybe Text
a -> DatasetGroupSummary
s {$sel:datasetGroupName:DatasetGroupSummary' :: Maybe Text
datasetGroupName = Maybe Text
a} :: DatasetGroupSummary)
datasetGroupSummary_lastModificationTime :: Lens.Lens' DatasetGroupSummary (Prelude.Maybe Prelude.UTCTime)
datasetGroupSummary_lastModificationTime :: Lens' DatasetGroupSummary (Maybe UTCTime)
datasetGroupSummary_lastModificationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetGroupSummary' {Maybe POSIX
lastModificationTime :: Maybe POSIX
$sel:lastModificationTime:DatasetGroupSummary' :: DatasetGroupSummary -> Maybe POSIX
lastModificationTime} -> Maybe POSIX
lastModificationTime) (\s :: DatasetGroupSummary
s@DatasetGroupSummary' {} Maybe POSIX
a -> DatasetGroupSummary
s {$sel:lastModificationTime:DatasetGroupSummary' :: Maybe POSIX
lastModificationTime = Maybe POSIX
a} :: DatasetGroupSummary) 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
instance Data.FromJSON DatasetGroupSummary where
parseJSON :: Value -> Parser DatasetGroupSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"DatasetGroupSummary"
( \Object
x ->
Maybe POSIX
-> Maybe Text -> Maybe Text -> Maybe POSIX -> DatasetGroupSummary
DatasetGroupSummary'
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
"CreationTime")
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
"DatasetGroupArn")
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
"DatasetGroupName")
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
"LastModificationTime")
)
instance Prelude.Hashable DatasetGroupSummary where
hashWithSalt :: Int -> DatasetGroupSummary -> Int
hashWithSalt Int
_salt DatasetGroupSummary' {Maybe Text
Maybe POSIX
lastModificationTime :: Maybe POSIX
datasetGroupName :: Maybe Text
datasetGroupArn :: Maybe Text
creationTime :: Maybe POSIX
$sel:lastModificationTime:DatasetGroupSummary' :: DatasetGroupSummary -> Maybe POSIX
$sel:datasetGroupName:DatasetGroupSummary' :: DatasetGroupSummary -> Maybe Text
$sel:datasetGroupArn:DatasetGroupSummary' :: DatasetGroupSummary -> Maybe Text
$sel:creationTime:DatasetGroupSummary' :: DatasetGroupSummary -> Maybe POSIX
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
datasetGroupArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
datasetGroupName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastModificationTime
instance Prelude.NFData DatasetGroupSummary where
rnf :: DatasetGroupSummary -> ()
rnf DatasetGroupSummary' {Maybe Text
Maybe POSIX
lastModificationTime :: Maybe POSIX
datasetGroupName :: Maybe Text
datasetGroupArn :: Maybe Text
creationTime :: Maybe POSIX
$sel:lastModificationTime:DatasetGroupSummary' :: DatasetGroupSummary -> Maybe POSIX
$sel:datasetGroupName:DatasetGroupSummary' :: DatasetGroupSummary -> Maybe Text
$sel:datasetGroupArn:DatasetGroupSummary' :: DatasetGroupSummary -> Maybe Text
$sel:creationTime:DatasetGroupSummary' :: DatasetGroupSummary -> Maybe POSIX
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
datasetGroupArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
datasetGroupName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModificationTime