{-# 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.PredictorSummary 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.ReferencePredictorSummary
import qualified Amazonka.Prelude as Prelude
data PredictorSummary = PredictorSummary'
{
PredictorSummary -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
PredictorSummary -> Maybe Text
datasetGroupArn :: Prelude.Maybe Prelude.Text,
PredictorSummary -> Maybe Bool
isAutoPredictor :: Prelude.Maybe Prelude.Bool,
PredictorSummary -> Maybe POSIX
lastModificationTime :: Prelude.Maybe Data.POSIX,
PredictorSummary -> Maybe Text
message :: Prelude.Maybe Prelude.Text,
PredictorSummary -> Maybe Text
predictorArn :: Prelude.Maybe Prelude.Text,
PredictorSummary -> Maybe Text
predictorName :: Prelude.Maybe Prelude.Text,
PredictorSummary -> Maybe ReferencePredictorSummary
referencePredictorSummary :: Prelude.Maybe ReferencePredictorSummary,
PredictorSummary -> Maybe Text
status :: Prelude.Maybe Prelude.Text
}
deriving (PredictorSummary -> PredictorSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PredictorSummary -> PredictorSummary -> Bool
$c/= :: PredictorSummary -> PredictorSummary -> Bool
== :: PredictorSummary -> PredictorSummary -> Bool
$c== :: PredictorSummary -> PredictorSummary -> Bool
Prelude.Eq, ReadPrec [PredictorSummary]
ReadPrec PredictorSummary
Int -> ReadS PredictorSummary
ReadS [PredictorSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PredictorSummary]
$creadListPrec :: ReadPrec [PredictorSummary]
readPrec :: ReadPrec PredictorSummary
$creadPrec :: ReadPrec PredictorSummary
readList :: ReadS [PredictorSummary]
$creadList :: ReadS [PredictorSummary]
readsPrec :: Int -> ReadS PredictorSummary
$creadsPrec :: Int -> ReadS PredictorSummary
Prelude.Read, Int -> PredictorSummary -> ShowS
[PredictorSummary] -> ShowS
PredictorSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PredictorSummary] -> ShowS
$cshowList :: [PredictorSummary] -> ShowS
show :: PredictorSummary -> String
$cshow :: PredictorSummary -> String
showsPrec :: Int -> PredictorSummary -> ShowS
$cshowsPrec :: Int -> PredictorSummary -> ShowS
Prelude.Show, forall x. Rep PredictorSummary x -> PredictorSummary
forall x. PredictorSummary -> Rep PredictorSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PredictorSummary x -> PredictorSummary
$cfrom :: forall x. PredictorSummary -> Rep PredictorSummary x
Prelude.Generic)
newPredictorSummary ::
PredictorSummary
newPredictorSummary :: PredictorSummary
newPredictorSummary =
PredictorSummary'
{ $sel:creationTime:PredictorSummary' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
$sel:datasetGroupArn:PredictorSummary' :: Maybe Text
datasetGroupArn = forall a. Maybe a
Prelude.Nothing,
$sel:isAutoPredictor:PredictorSummary' :: Maybe Bool
isAutoPredictor = forall a. Maybe a
Prelude.Nothing,
$sel:lastModificationTime:PredictorSummary' :: Maybe POSIX
lastModificationTime = forall a. Maybe a
Prelude.Nothing,
$sel:message:PredictorSummary' :: Maybe Text
message = forall a. Maybe a
Prelude.Nothing,
$sel:predictorArn:PredictorSummary' :: Maybe Text
predictorArn = forall a. Maybe a
Prelude.Nothing,
$sel:predictorName:PredictorSummary' :: Maybe Text
predictorName = forall a. Maybe a
Prelude.Nothing,
$sel:referencePredictorSummary:PredictorSummary' :: Maybe ReferencePredictorSummary
referencePredictorSummary = forall a. Maybe a
Prelude.Nothing,
$sel:status:PredictorSummary' :: Maybe Text
status = forall a. Maybe a
Prelude.Nothing
}
predictorSummary_creationTime :: Lens.Lens' PredictorSummary (Prelude.Maybe Prelude.UTCTime)
predictorSummary_creationTime :: Lens' PredictorSummary (Maybe UTCTime)
predictorSummary_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PredictorSummary' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:PredictorSummary' :: PredictorSummary -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: PredictorSummary
s@PredictorSummary' {} Maybe POSIX
a -> PredictorSummary
s {$sel:creationTime:PredictorSummary' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: PredictorSummary) 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
predictorSummary_datasetGroupArn :: Lens.Lens' PredictorSummary (Prelude.Maybe Prelude.Text)
predictorSummary_datasetGroupArn :: Lens' PredictorSummary (Maybe Text)
predictorSummary_datasetGroupArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PredictorSummary' {Maybe Text
datasetGroupArn :: Maybe Text
$sel:datasetGroupArn:PredictorSummary' :: PredictorSummary -> Maybe Text
datasetGroupArn} -> Maybe Text
datasetGroupArn) (\s :: PredictorSummary
s@PredictorSummary' {} Maybe Text
a -> PredictorSummary
s {$sel:datasetGroupArn:PredictorSummary' :: Maybe Text
datasetGroupArn = Maybe Text
a} :: PredictorSummary)
predictorSummary_isAutoPredictor :: Lens.Lens' PredictorSummary (Prelude.Maybe Prelude.Bool)
predictorSummary_isAutoPredictor :: Lens' PredictorSummary (Maybe Bool)
predictorSummary_isAutoPredictor = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PredictorSummary' {Maybe Bool
isAutoPredictor :: Maybe Bool
$sel:isAutoPredictor:PredictorSummary' :: PredictorSummary -> Maybe Bool
isAutoPredictor} -> Maybe Bool
isAutoPredictor) (\s :: PredictorSummary
s@PredictorSummary' {} Maybe Bool
a -> PredictorSummary
s {$sel:isAutoPredictor:PredictorSummary' :: Maybe Bool
isAutoPredictor = Maybe Bool
a} :: PredictorSummary)
predictorSummary_lastModificationTime :: Lens.Lens' PredictorSummary (Prelude.Maybe Prelude.UTCTime)
predictorSummary_lastModificationTime :: Lens' PredictorSummary (Maybe UTCTime)
predictorSummary_lastModificationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PredictorSummary' {Maybe POSIX
lastModificationTime :: Maybe POSIX
$sel:lastModificationTime:PredictorSummary' :: PredictorSummary -> Maybe POSIX
lastModificationTime} -> Maybe POSIX
lastModificationTime) (\s :: PredictorSummary
s@PredictorSummary' {} Maybe POSIX
a -> PredictorSummary
s {$sel:lastModificationTime:PredictorSummary' :: Maybe POSIX
lastModificationTime = Maybe POSIX
a} :: PredictorSummary) 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
predictorSummary_message :: Lens.Lens' PredictorSummary (Prelude.Maybe Prelude.Text)
predictorSummary_message :: Lens' PredictorSummary (Maybe Text)
predictorSummary_message = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PredictorSummary' {Maybe Text
message :: Maybe Text
$sel:message:PredictorSummary' :: PredictorSummary -> Maybe Text
message} -> Maybe Text
message) (\s :: PredictorSummary
s@PredictorSummary' {} Maybe Text
a -> PredictorSummary
s {$sel:message:PredictorSummary' :: Maybe Text
message = Maybe Text
a} :: PredictorSummary)
predictorSummary_predictorArn :: Lens.Lens' PredictorSummary (Prelude.Maybe Prelude.Text)
predictorSummary_predictorArn :: Lens' PredictorSummary (Maybe Text)
predictorSummary_predictorArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PredictorSummary' {Maybe Text
predictorArn :: Maybe Text
$sel:predictorArn:PredictorSummary' :: PredictorSummary -> Maybe Text
predictorArn} -> Maybe Text
predictorArn) (\s :: PredictorSummary
s@PredictorSummary' {} Maybe Text
a -> PredictorSummary
s {$sel:predictorArn:PredictorSummary' :: Maybe Text
predictorArn = Maybe Text
a} :: PredictorSummary)
predictorSummary_predictorName :: Lens.Lens' PredictorSummary (Prelude.Maybe Prelude.Text)
predictorSummary_predictorName :: Lens' PredictorSummary (Maybe Text)
predictorSummary_predictorName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PredictorSummary' {Maybe Text
predictorName :: Maybe Text
$sel:predictorName:PredictorSummary' :: PredictorSummary -> Maybe Text
predictorName} -> Maybe Text
predictorName) (\s :: PredictorSummary
s@PredictorSummary' {} Maybe Text
a -> PredictorSummary
s {$sel:predictorName:PredictorSummary' :: Maybe Text
predictorName = Maybe Text
a} :: PredictorSummary)
predictorSummary_referencePredictorSummary :: Lens.Lens' PredictorSummary (Prelude.Maybe ReferencePredictorSummary)
predictorSummary_referencePredictorSummary :: Lens' PredictorSummary (Maybe ReferencePredictorSummary)
predictorSummary_referencePredictorSummary = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PredictorSummary' {Maybe ReferencePredictorSummary
referencePredictorSummary :: Maybe ReferencePredictorSummary
$sel:referencePredictorSummary:PredictorSummary' :: PredictorSummary -> Maybe ReferencePredictorSummary
referencePredictorSummary} -> Maybe ReferencePredictorSummary
referencePredictorSummary) (\s :: PredictorSummary
s@PredictorSummary' {} Maybe ReferencePredictorSummary
a -> PredictorSummary
s {$sel:referencePredictorSummary:PredictorSummary' :: Maybe ReferencePredictorSummary
referencePredictorSummary = Maybe ReferencePredictorSummary
a} :: PredictorSummary)
predictorSummary_status :: Lens.Lens' PredictorSummary (Prelude.Maybe Prelude.Text)
predictorSummary_status :: Lens' PredictorSummary (Maybe Text)
predictorSummary_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PredictorSummary' {Maybe Text
status :: Maybe Text
$sel:status:PredictorSummary' :: PredictorSummary -> Maybe Text
status} -> Maybe Text
status) (\s :: PredictorSummary
s@PredictorSummary' {} Maybe Text
a -> PredictorSummary
s {$sel:status:PredictorSummary' :: Maybe Text
status = Maybe Text
a} :: PredictorSummary)
instance Data.FromJSON PredictorSummary where
parseJSON :: Value -> Parser PredictorSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"PredictorSummary"
( \Object
x ->
Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReferencePredictorSummary
-> Maybe Text
-> PredictorSummary
PredictorSummary'
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
"IsAutoPredictor")
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
"PredictorArn")
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
"PredictorName")
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
"ReferencePredictorSummary")
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")
)
instance Prelude.Hashable PredictorSummary where
hashWithSalt :: Int -> PredictorSummary -> Int
hashWithSalt Int
_salt PredictorSummary' {Maybe Bool
Maybe Text
Maybe POSIX
Maybe ReferencePredictorSummary
status :: Maybe Text
referencePredictorSummary :: Maybe ReferencePredictorSummary
predictorName :: Maybe Text
predictorArn :: Maybe Text
message :: Maybe Text
lastModificationTime :: Maybe POSIX
isAutoPredictor :: Maybe Bool
datasetGroupArn :: Maybe Text
creationTime :: Maybe POSIX
$sel:status:PredictorSummary' :: PredictorSummary -> Maybe Text
$sel:referencePredictorSummary:PredictorSummary' :: PredictorSummary -> Maybe ReferencePredictorSummary
$sel:predictorName:PredictorSummary' :: PredictorSummary -> Maybe Text
$sel:predictorArn:PredictorSummary' :: PredictorSummary -> Maybe Text
$sel:message:PredictorSummary' :: PredictorSummary -> Maybe Text
$sel:lastModificationTime:PredictorSummary' :: PredictorSummary -> Maybe POSIX
$sel:isAutoPredictor:PredictorSummary' :: PredictorSummary -> Maybe Bool
$sel:datasetGroupArn:PredictorSummary' :: PredictorSummary -> Maybe Text
$sel:creationTime:PredictorSummary' :: PredictorSummary -> 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 Bool
isAutoPredictor
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
predictorArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
predictorName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ReferencePredictorSummary
referencePredictorSummary
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
status
instance Prelude.NFData PredictorSummary where
rnf :: PredictorSummary -> ()
rnf PredictorSummary' {Maybe Bool
Maybe Text
Maybe POSIX
Maybe ReferencePredictorSummary
status :: Maybe Text
referencePredictorSummary :: Maybe ReferencePredictorSummary
predictorName :: Maybe Text
predictorArn :: Maybe Text
message :: Maybe Text
lastModificationTime :: Maybe POSIX
isAutoPredictor :: Maybe Bool
datasetGroupArn :: Maybe Text
creationTime :: Maybe POSIX
$sel:status:PredictorSummary' :: PredictorSummary -> Maybe Text
$sel:referencePredictorSummary:PredictorSummary' :: PredictorSummary -> Maybe ReferencePredictorSummary
$sel:predictorName:PredictorSummary' :: PredictorSummary -> Maybe Text
$sel:predictorArn:PredictorSummary' :: PredictorSummary -> Maybe Text
$sel:message:PredictorSummary' :: PredictorSummary -> Maybe Text
$sel:lastModificationTime:PredictorSummary' :: PredictorSummary -> Maybe POSIX
$sel:isAutoPredictor:PredictorSummary' :: PredictorSummary -> Maybe Bool
$sel:datasetGroupArn:PredictorSummary' :: PredictorSummary -> Maybe Text
$sel:creationTime:PredictorSummary' :: PredictorSummary -> 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 Bool
isAutoPredictor
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
predictorArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
predictorName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ReferencePredictorSummary
referencePredictorSummary
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
status