{-# 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.WhatIfForecastExportSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Forecast.Types.DataDestination
import qualified Amazonka.Prelude as Prelude
data WhatIfForecastExportSummary = WhatIfForecastExportSummary'
{
WhatIfForecastExportSummary -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
WhatIfForecastExportSummary -> Maybe DataDestination
destination :: Prelude.Maybe DataDestination,
WhatIfForecastExportSummary -> Maybe POSIX
lastModificationTime :: Prelude.Maybe Data.POSIX,
WhatIfForecastExportSummary -> Maybe Text
message :: Prelude.Maybe Prelude.Text,
WhatIfForecastExportSummary -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
WhatIfForecastExportSummary -> Maybe (NonEmpty Text)
whatIfForecastArns :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
WhatIfForecastExportSummary -> Maybe Text
whatIfForecastExportArn :: Prelude.Maybe Prelude.Text,
WhatIfForecastExportSummary -> Maybe Text
whatIfForecastExportName :: Prelude.Maybe Prelude.Text
}
deriving (WhatIfForecastExportSummary -> WhatIfForecastExportSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: WhatIfForecastExportSummary -> WhatIfForecastExportSummary -> Bool
$c/= :: WhatIfForecastExportSummary -> WhatIfForecastExportSummary -> Bool
== :: WhatIfForecastExportSummary -> WhatIfForecastExportSummary -> Bool
$c== :: WhatIfForecastExportSummary -> WhatIfForecastExportSummary -> Bool
Prelude.Eq, ReadPrec [WhatIfForecastExportSummary]
ReadPrec WhatIfForecastExportSummary
Int -> ReadS WhatIfForecastExportSummary
ReadS [WhatIfForecastExportSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [WhatIfForecastExportSummary]
$creadListPrec :: ReadPrec [WhatIfForecastExportSummary]
readPrec :: ReadPrec WhatIfForecastExportSummary
$creadPrec :: ReadPrec WhatIfForecastExportSummary
readList :: ReadS [WhatIfForecastExportSummary]
$creadList :: ReadS [WhatIfForecastExportSummary]
readsPrec :: Int -> ReadS WhatIfForecastExportSummary
$creadsPrec :: Int -> ReadS WhatIfForecastExportSummary
Prelude.Read, Int -> WhatIfForecastExportSummary -> ShowS
[WhatIfForecastExportSummary] -> ShowS
WhatIfForecastExportSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [WhatIfForecastExportSummary] -> ShowS
$cshowList :: [WhatIfForecastExportSummary] -> ShowS
show :: WhatIfForecastExportSummary -> String
$cshow :: WhatIfForecastExportSummary -> String
showsPrec :: Int -> WhatIfForecastExportSummary -> ShowS
$cshowsPrec :: Int -> WhatIfForecastExportSummary -> ShowS
Prelude.Show, forall x.
Rep WhatIfForecastExportSummary x -> WhatIfForecastExportSummary
forall x.
WhatIfForecastExportSummary -> Rep WhatIfForecastExportSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep WhatIfForecastExportSummary x -> WhatIfForecastExportSummary
$cfrom :: forall x.
WhatIfForecastExportSummary -> Rep WhatIfForecastExportSummary x
Prelude.Generic)
newWhatIfForecastExportSummary ::
WhatIfForecastExportSummary
newWhatIfForecastExportSummary :: WhatIfForecastExportSummary
newWhatIfForecastExportSummary =
WhatIfForecastExportSummary'
{ $sel:creationTime:WhatIfForecastExportSummary' :: Maybe POSIX
creationTime =
forall a. Maybe a
Prelude.Nothing,
$sel:destination:WhatIfForecastExportSummary' :: Maybe DataDestination
destination = forall a. Maybe a
Prelude.Nothing,
$sel:lastModificationTime:WhatIfForecastExportSummary' :: Maybe POSIX
lastModificationTime = forall a. Maybe a
Prelude.Nothing,
$sel:message:WhatIfForecastExportSummary' :: Maybe Text
message = forall a. Maybe a
Prelude.Nothing,
$sel:status:WhatIfForecastExportSummary' :: Maybe Text
status = forall a. Maybe a
Prelude.Nothing,
$sel:whatIfForecastArns:WhatIfForecastExportSummary' :: Maybe (NonEmpty Text)
whatIfForecastArns = forall a. Maybe a
Prelude.Nothing,
$sel:whatIfForecastExportArn:WhatIfForecastExportSummary' :: Maybe Text
whatIfForecastExportArn = forall a. Maybe a
Prelude.Nothing,
$sel:whatIfForecastExportName:WhatIfForecastExportSummary' :: Maybe Text
whatIfForecastExportName = forall a. Maybe a
Prelude.Nothing
}
whatIfForecastExportSummary_creationTime :: Lens.Lens' WhatIfForecastExportSummary (Prelude.Maybe Prelude.UTCTime)
whatIfForecastExportSummary_creationTime :: Lens' WhatIfForecastExportSummary (Maybe UTCTime)
whatIfForecastExportSummary_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WhatIfForecastExportSummary' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: WhatIfForecastExportSummary
s@WhatIfForecastExportSummary' {} Maybe POSIX
a -> WhatIfForecastExportSummary
s {$sel:creationTime:WhatIfForecastExportSummary' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: WhatIfForecastExportSummary) 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
whatIfForecastExportSummary_destination :: Lens.Lens' WhatIfForecastExportSummary (Prelude.Maybe DataDestination)
whatIfForecastExportSummary_destination :: Lens' WhatIfForecastExportSummary (Maybe DataDestination)
whatIfForecastExportSummary_destination = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WhatIfForecastExportSummary' {Maybe DataDestination
destination :: Maybe DataDestination
$sel:destination:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> Maybe DataDestination
destination} -> Maybe DataDestination
destination) (\s :: WhatIfForecastExportSummary
s@WhatIfForecastExportSummary' {} Maybe DataDestination
a -> WhatIfForecastExportSummary
s {$sel:destination:WhatIfForecastExportSummary' :: Maybe DataDestination
destination = Maybe DataDestination
a} :: WhatIfForecastExportSummary)
whatIfForecastExportSummary_lastModificationTime :: Lens.Lens' WhatIfForecastExportSummary (Prelude.Maybe Prelude.UTCTime)
whatIfForecastExportSummary_lastModificationTime :: Lens' WhatIfForecastExportSummary (Maybe UTCTime)
whatIfForecastExportSummary_lastModificationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WhatIfForecastExportSummary' {Maybe POSIX
lastModificationTime :: Maybe POSIX
$sel:lastModificationTime:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> Maybe POSIX
lastModificationTime} -> Maybe POSIX
lastModificationTime) (\s :: WhatIfForecastExportSummary
s@WhatIfForecastExportSummary' {} Maybe POSIX
a -> WhatIfForecastExportSummary
s {$sel:lastModificationTime:WhatIfForecastExportSummary' :: Maybe POSIX
lastModificationTime = Maybe POSIX
a} :: WhatIfForecastExportSummary) 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
whatIfForecastExportSummary_message :: Lens.Lens' WhatIfForecastExportSummary (Prelude.Maybe Prelude.Text)
whatIfForecastExportSummary_message :: Lens' WhatIfForecastExportSummary (Maybe Text)
whatIfForecastExportSummary_message = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WhatIfForecastExportSummary' {Maybe Text
message :: Maybe Text
$sel:message:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> Maybe Text
message} -> Maybe Text
message) (\s :: WhatIfForecastExportSummary
s@WhatIfForecastExportSummary' {} Maybe Text
a -> WhatIfForecastExportSummary
s {$sel:message:WhatIfForecastExportSummary' :: Maybe Text
message = Maybe Text
a} :: WhatIfForecastExportSummary)
whatIfForecastExportSummary_status :: Lens.Lens' WhatIfForecastExportSummary (Prelude.Maybe Prelude.Text)
whatIfForecastExportSummary_status :: Lens' WhatIfForecastExportSummary (Maybe Text)
whatIfForecastExportSummary_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WhatIfForecastExportSummary' {Maybe Text
status :: Maybe Text
$sel:status:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> Maybe Text
status} -> Maybe Text
status) (\s :: WhatIfForecastExportSummary
s@WhatIfForecastExportSummary' {} Maybe Text
a -> WhatIfForecastExportSummary
s {$sel:status:WhatIfForecastExportSummary' :: Maybe Text
status = Maybe Text
a} :: WhatIfForecastExportSummary)
whatIfForecastExportSummary_whatIfForecastArns :: Lens.Lens' WhatIfForecastExportSummary (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
whatIfForecastExportSummary_whatIfForecastArns :: Lens' WhatIfForecastExportSummary (Maybe (NonEmpty Text))
whatIfForecastExportSummary_whatIfForecastArns = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WhatIfForecastExportSummary' {Maybe (NonEmpty Text)
whatIfForecastArns :: Maybe (NonEmpty Text)
$sel:whatIfForecastArns:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> Maybe (NonEmpty Text)
whatIfForecastArns} -> Maybe (NonEmpty Text)
whatIfForecastArns) (\s :: WhatIfForecastExportSummary
s@WhatIfForecastExportSummary' {} Maybe (NonEmpty Text)
a -> WhatIfForecastExportSummary
s {$sel:whatIfForecastArns:WhatIfForecastExportSummary' :: Maybe (NonEmpty Text)
whatIfForecastArns = Maybe (NonEmpty Text)
a} :: WhatIfForecastExportSummary) 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
whatIfForecastExportSummary_whatIfForecastExportArn :: Lens.Lens' WhatIfForecastExportSummary (Prelude.Maybe Prelude.Text)
whatIfForecastExportSummary_whatIfForecastExportArn :: Lens' WhatIfForecastExportSummary (Maybe Text)
whatIfForecastExportSummary_whatIfForecastExportArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WhatIfForecastExportSummary' {Maybe Text
whatIfForecastExportArn :: Maybe Text
$sel:whatIfForecastExportArn:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> Maybe Text
whatIfForecastExportArn} -> Maybe Text
whatIfForecastExportArn) (\s :: WhatIfForecastExportSummary
s@WhatIfForecastExportSummary' {} Maybe Text
a -> WhatIfForecastExportSummary
s {$sel:whatIfForecastExportArn:WhatIfForecastExportSummary' :: Maybe Text
whatIfForecastExportArn = Maybe Text
a} :: WhatIfForecastExportSummary)
whatIfForecastExportSummary_whatIfForecastExportName :: Lens.Lens' WhatIfForecastExportSummary (Prelude.Maybe Prelude.Text)
whatIfForecastExportSummary_whatIfForecastExportName :: Lens' WhatIfForecastExportSummary (Maybe Text)
whatIfForecastExportSummary_whatIfForecastExportName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WhatIfForecastExportSummary' {Maybe Text
whatIfForecastExportName :: Maybe Text
$sel:whatIfForecastExportName:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> Maybe Text
whatIfForecastExportName} -> Maybe Text
whatIfForecastExportName) (\s :: WhatIfForecastExportSummary
s@WhatIfForecastExportSummary' {} Maybe Text
a -> WhatIfForecastExportSummary
s {$sel:whatIfForecastExportName:WhatIfForecastExportSummary' :: Maybe Text
whatIfForecastExportName = Maybe Text
a} :: WhatIfForecastExportSummary)
instance Data.FromJSON WhatIfForecastExportSummary where
parseJSON :: Value -> Parser WhatIfForecastExportSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"WhatIfForecastExportSummary"
( \Object
x ->
Maybe POSIX
-> Maybe DataDestination
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe Text
-> Maybe Text
-> WhatIfForecastExportSummary
WhatIfForecastExportSummary'
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
"Destination")
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")
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
"Message")
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")
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
"WhatIfForecastArns")
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
"WhatIfForecastExportArn")
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
"WhatIfForecastExportName")
)
instance Prelude.Hashable WhatIfForecastExportSummary where
hashWithSalt :: Int -> WhatIfForecastExportSummary -> Int
hashWithSalt Int
_salt WhatIfForecastExportSummary' {Maybe (NonEmpty Text)
Maybe Text
Maybe POSIX
Maybe DataDestination
whatIfForecastExportName :: Maybe Text
whatIfForecastExportArn :: Maybe Text
whatIfForecastArns :: Maybe (NonEmpty Text)
status :: Maybe Text
message :: Maybe Text
lastModificationTime :: Maybe POSIX
destination :: Maybe DataDestination
creationTime :: Maybe POSIX
$sel:whatIfForecastExportName:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> Maybe Text
$sel:whatIfForecastExportArn:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> Maybe Text
$sel:whatIfForecastArns:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> Maybe (NonEmpty Text)
$sel:status:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> Maybe Text
$sel:message:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> Maybe Text
$sel:lastModificationTime:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> Maybe POSIX
$sel:destination:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> Maybe DataDestination
$sel:creationTime:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> 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 DataDestination
destination
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastModificationTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
message
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
status
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty Text)
whatIfForecastArns
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
whatIfForecastExportArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
whatIfForecastExportName
instance Prelude.NFData WhatIfForecastExportSummary where
rnf :: WhatIfForecastExportSummary -> ()
rnf WhatIfForecastExportSummary' {Maybe (NonEmpty Text)
Maybe Text
Maybe POSIX
Maybe DataDestination
whatIfForecastExportName :: Maybe Text
whatIfForecastExportArn :: Maybe Text
whatIfForecastArns :: Maybe (NonEmpty Text)
status :: Maybe Text
message :: Maybe Text
lastModificationTime :: Maybe POSIX
destination :: Maybe DataDestination
creationTime :: Maybe POSIX
$sel:whatIfForecastExportName:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> Maybe Text
$sel:whatIfForecastExportArn:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> Maybe Text
$sel:whatIfForecastArns:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> Maybe (NonEmpty Text)
$sel:status:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> Maybe Text
$sel:message:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> Maybe Text
$sel:lastModificationTime:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> Maybe POSIX
$sel:destination:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> Maybe DataDestination
$sel:creationTime:WhatIfForecastExportSummary' :: WhatIfForecastExportSummary -> 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 DataDestination
destination
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModificationTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
message
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
status
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Text)
whatIfForecastArns
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
whatIfForecastExportArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
whatIfForecastExportName