{-# 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.LookoutEquipment.Types.InferenceSchedulerSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.LookoutEquipment.Types.DataUploadFrequency
import Amazonka.LookoutEquipment.Types.InferenceSchedulerStatus
import qualified Amazonka.Prelude as Prelude
data InferenceSchedulerSummary = InferenceSchedulerSummary'
{
InferenceSchedulerSummary -> Maybe InferenceSchedulerStatus
status :: Prelude.Maybe InferenceSchedulerStatus,
InferenceSchedulerSummary -> Maybe DataUploadFrequency
dataUploadFrequency :: Prelude.Maybe DataUploadFrequency,
InferenceSchedulerSummary -> Maybe Natural
dataDelayOffsetInMinutes :: Prelude.Maybe Prelude.Natural,
InferenceSchedulerSummary -> Maybe Text
modelArn :: Prelude.Maybe Prelude.Text,
InferenceSchedulerSummary -> Maybe Text
modelName :: Prelude.Maybe Prelude.Text,
InferenceSchedulerSummary -> Maybe Text
inferenceSchedulerArn :: Prelude.Maybe Prelude.Text,
InferenceSchedulerSummary -> Maybe Text
inferenceSchedulerName :: Prelude.Maybe Prelude.Text
}
deriving (InferenceSchedulerSummary -> InferenceSchedulerSummary -> Bool
(InferenceSchedulerSummary -> InferenceSchedulerSummary -> Bool)
-> (InferenceSchedulerSummary -> InferenceSchedulerSummary -> Bool)
-> Eq InferenceSchedulerSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InferenceSchedulerSummary -> InferenceSchedulerSummary -> Bool
$c/= :: InferenceSchedulerSummary -> InferenceSchedulerSummary -> Bool
== :: InferenceSchedulerSummary -> InferenceSchedulerSummary -> Bool
$c== :: InferenceSchedulerSummary -> InferenceSchedulerSummary -> Bool
Prelude.Eq, ReadPrec [InferenceSchedulerSummary]
ReadPrec InferenceSchedulerSummary
Int -> ReadS InferenceSchedulerSummary
ReadS [InferenceSchedulerSummary]
(Int -> ReadS InferenceSchedulerSummary)
-> ReadS [InferenceSchedulerSummary]
-> ReadPrec InferenceSchedulerSummary
-> ReadPrec [InferenceSchedulerSummary]
-> Read InferenceSchedulerSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InferenceSchedulerSummary]
$creadListPrec :: ReadPrec [InferenceSchedulerSummary]
readPrec :: ReadPrec InferenceSchedulerSummary
$creadPrec :: ReadPrec InferenceSchedulerSummary
readList :: ReadS [InferenceSchedulerSummary]
$creadList :: ReadS [InferenceSchedulerSummary]
readsPrec :: Int -> ReadS InferenceSchedulerSummary
$creadsPrec :: Int -> ReadS InferenceSchedulerSummary
Prelude.Read, Int -> InferenceSchedulerSummary -> ShowS
[InferenceSchedulerSummary] -> ShowS
InferenceSchedulerSummary -> String
(Int -> InferenceSchedulerSummary -> ShowS)
-> (InferenceSchedulerSummary -> String)
-> ([InferenceSchedulerSummary] -> ShowS)
-> Show InferenceSchedulerSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InferenceSchedulerSummary] -> ShowS
$cshowList :: [InferenceSchedulerSummary] -> ShowS
show :: InferenceSchedulerSummary -> String
$cshow :: InferenceSchedulerSummary -> String
showsPrec :: Int -> InferenceSchedulerSummary -> ShowS
$cshowsPrec :: Int -> InferenceSchedulerSummary -> ShowS
Prelude.Show, (forall x.
InferenceSchedulerSummary -> Rep InferenceSchedulerSummary x)
-> (forall x.
Rep InferenceSchedulerSummary x -> InferenceSchedulerSummary)
-> Generic InferenceSchedulerSummary
forall x.
Rep InferenceSchedulerSummary x -> InferenceSchedulerSummary
forall x.
InferenceSchedulerSummary -> Rep InferenceSchedulerSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep InferenceSchedulerSummary x -> InferenceSchedulerSummary
$cfrom :: forall x.
InferenceSchedulerSummary -> Rep InferenceSchedulerSummary x
Prelude.Generic)
newInferenceSchedulerSummary ::
InferenceSchedulerSummary
newInferenceSchedulerSummary :: InferenceSchedulerSummary
newInferenceSchedulerSummary =
InferenceSchedulerSummary' :: Maybe InferenceSchedulerStatus
-> Maybe DataUploadFrequency
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> InferenceSchedulerSummary
InferenceSchedulerSummary'
{ $sel:status:InferenceSchedulerSummary' :: Maybe InferenceSchedulerStatus
status =
Maybe InferenceSchedulerStatus
forall a. Maybe a
Prelude.Nothing,
$sel:dataUploadFrequency:InferenceSchedulerSummary' :: Maybe DataUploadFrequency
dataUploadFrequency = Maybe DataUploadFrequency
forall a. Maybe a
Prelude.Nothing,
$sel:dataDelayOffsetInMinutes:InferenceSchedulerSummary' :: Maybe Natural
dataDelayOffsetInMinutes = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:modelArn:InferenceSchedulerSummary' :: Maybe Text
modelArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:modelName:InferenceSchedulerSummary' :: Maybe Text
modelName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:inferenceSchedulerArn:InferenceSchedulerSummary' :: Maybe Text
inferenceSchedulerArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:inferenceSchedulerName:InferenceSchedulerSummary' :: Maybe Text
inferenceSchedulerName = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
inferenceSchedulerSummary_status :: Lens.Lens' InferenceSchedulerSummary (Prelude.Maybe InferenceSchedulerStatus)
inferenceSchedulerSummary_status :: (Maybe InferenceSchedulerStatus
-> f (Maybe InferenceSchedulerStatus))
-> InferenceSchedulerSummary -> f InferenceSchedulerSummary
inferenceSchedulerSummary_status = (InferenceSchedulerSummary -> Maybe InferenceSchedulerStatus)
-> (InferenceSchedulerSummary
-> Maybe InferenceSchedulerStatus -> InferenceSchedulerSummary)
-> Lens
InferenceSchedulerSummary
InferenceSchedulerSummary
(Maybe InferenceSchedulerStatus)
(Maybe InferenceSchedulerStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InferenceSchedulerSummary' {Maybe InferenceSchedulerStatus
status :: Maybe InferenceSchedulerStatus
$sel:status:InferenceSchedulerSummary' :: InferenceSchedulerSummary -> Maybe InferenceSchedulerStatus
status} -> Maybe InferenceSchedulerStatus
status) (\s :: InferenceSchedulerSummary
s@InferenceSchedulerSummary' {} Maybe InferenceSchedulerStatus
a -> InferenceSchedulerSummary
s {$sel:status:InferenceSchedulerSummary' :: Maybe InferenceSchedulerStatus
status = Maybe InferenceSchedulerStatus
a} :: InferenceSchedulerSummary)
inferenceSchedulerSummary_dataUploadFrequency :: Lens.Lens' InferenceSchedulerSummary (Prelude.Maybe DataUploadFrequency)
inferenceSchedulerSummary_dataUploadFrequency :: (Maybe DataUploadFrequency -> f (Maybe DataUploadFrequency))
-> InferenceSchedulerSummary -> f InferenceSchedulerSummary
inferenceSchedulerSummary_dataUploadFrequency = (InferenceSchedulerSummary -> Maybe DataUploadFrequency)
-> (InferenceSchedulerSummary
-> Maybe DataUploadFrequency -> InferenceSchedulerSummary)
-> Lens
InferenceSchedulerSummary
InferenceSchedulerSummary
(Maybe DataUploadFrequency)
(Maybe DataUploadFrequency)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InferenceSchedulerSummary' {Maybe DataUploadFrequency
dataUploadFrequency :: Maybe DataUploadFrequency
$sel:dataUploadFrequency:InferenceSchedulerSummary' :: InferenceSchedulerSummary -> Maybe DataUploadFrequency
dataUploadFrequency} -> Maybe DataUploadFrequency
dataUploadFrequency) (\s :: InferenceSchedulerSummary
s@InferenceSchedulerSummary' {} Maybe DataUploadFrequency
a -> InferenceSchedulerSummary
s {$sel:dataUploadFrequency:InferenceSchedulerSummary' :: Maybe DataUploadFrequency
dataUploadFrequency = Maybe DataUploadFrequency
a} :: InferenceSchedulerSummary)
inferenceSchedulerSummary_dataDelayOffsetInMinutes :: Lens.Lens' InferenceSchedulerSummary (Prelude.Maybe Prelude.Natural)
inferenceSchedulerSummary_dataDelayOffsetInMinutes :: (Maybe Natural -> f (Maybe Natural))
-> InferenceSchedulerSummary -> f InferenceSchedulerSummary
inferenceSchedulerSummary_dataDelayOffsetInMinutes = (InferenceSchedulerSummary -> Maybe Natural)
-> (InferenceSchedulerSummary
-> Maybe Natural -> InferenceSchedulerSummary)
-> Lens
InferenceSchedulerSummary
InferenceSchedulerSummary
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InferenceSchedulerSummary' {Maybe Natural
dataDelayOffsetInMinutes :: Maybe Natural
$sel:dataDelayOffsetInMinutes:InferenceSchedulerSummary' :: InferenceSchedulerSummary -> Maybe Natural
dataDelayOffsetInMinutes} -> Maybe Natural
dataDelayOffsetInMinutes) (\s :: InferenceSchedulerSummary
s@InferenceSchedulerSummary' {} Maybe Natural
a -> InferenceSchedulerSummary
s {$sel:dataDelayOffsetInMinutes:InferenceSchedulerSummary' :: Maybe Natural
dataDelayOffsetInMinutes = Maybe Natural
a} :: InferenceSchedulerSummary)
inferenceSchedulerSummary_modelArn :: Lens.Lens' InferenceSchedulerSummary (Prelude.Maybe Prelude.Text)
inferenceSchedulerSummary_modelArn :: (Maybe Text -> f (Maybe Text))
-> InferenceSchedulerSummary -> f InferenceSchedulerSummary
inferenceSchedulerSummary_modelArn = (InferenceSchedulerSummary -> Maybe Text)
-> (InferenceSchedulerSummary
-> Maybe Text -> InferenceSchedulerSummary)
-> Lens
InferenceSchedulerSummary
InferenceSchedulerSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InferenceSchedulerSummary' {Maybe Text
modelArn :: Maybe Text
$sel:modelArn:InferenceSchedulerSummary' :: InferenceSchedulerSummary -> Maybe Text
modelArn} -> Maybe Text
modelArn) (\s :: InferenceSchedulerSummary
s@InferenceSchedulerSummary' {} Maybe Text
a -> InferenceSchedulerSummary
s {$sel:modelArn:InferenceSchedulerSummary' :: Maybe Text
modelArn = Maybe Text
a} :: InferenceSchedulerSummary)
inferenceSchedulerSummary_modelName :: Lens.Lens' InferenceSchedulerSummary (Prelude.Maybe Prelude.Text)
inferenceSchedulerSummary_modelName :: (Maybe Text -> f (Maybe Text))
-> InferenceSchedulerSummary -> f InferenceSchedulerSummary
inferenceSchedulerSummary_modelName = (InferenceSchedulerSummary -> Maybe Text)
-> (InferenceSchedulerSummary
-> Maybe Text -> InferenceSchedulerSummary)
-> Lens
InferenceSchedulerSummary
InferenceSchedulerSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InferenceSchedulerSummary' {Maybe Text
modelName :: Maybe Text
$sel:modelName:InferenceSchedulerSummary' :: InferenceSchedulerSummary -> Maybe Text
modelName} -> Maybe Text
modelName) (\s :: InferenceSchedulerSummary
s@InferenceSchedulerSummary' {} Maybe Text
a -> InferenceSchedulerSummary
s {$sel:modelName:InferenceSchedulerSummary' :: Maybe Text
modelName = Maybe Text
a} :: InferenceSchedulerSummary)
inferenceSchedulerSummary_inferenceSchedulerArn :: Lens.Lens' InferenceSchedulerSummary (Prelude.Maybe Prelude.Text)
inferenceSchedulerSummary_inferenceSchedulerArn :: (Maybe Text -> f (Maybe Text))
-> InferenceSchedulerSummary -> f InferenceSchedulerSummary
inferenceSchedulerSummary_inferenceSchedulerArn = (InferenceSchedulerSummary -> Maybe Text)
-> (InferenceSchedulerSummary
-> Maybe Text -> InferenceSchedulerSummary)
-> Lens
InferenceSchedulerSummary
InferenceSchedulerSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InferenceSchedulerSummary' {Maybe Text
inferenceSchedulerArn :: Maybe Text
$sel:inferenceSchedulerArn:InferenceSchedulerSummary' :: InferenceSchedulerSummary -> Maybe Text
inferenceSchedulerArn} -> Maybe Text
inferenceSchedulerArn) (\s :: InferenceSchedulerSummary
s@InferenceSchedulerSummary' {} Maybe Text
a -> InferenceSchedulerSummary
s {$sel:inferenceSchedulerArn:InferenceSchedulerSummary' :: Maybe Text
inferenceSchedulerArn = Maybe Text
a} :: InferenceSchedulerSummary)
inferenceSchedulerSummary_inferenceSchedulerName :: Lens.Lens' InferenceSchedulerSummary (Prelude.Maybe Prelude.Text)
inferenceSchedulerSummary_inferenceSchedulerName :: (Maybe Text -> f (Maybe Text))
-> InferenceSchedulerSummary -> f InferenceSchedulerSummary
inferenceSchedulerSummary_inferenceSchedulerName = (InferenceSchedulerSummary -> Maybe Text)
-> (InferenceSchedulerSummary
-> Maybe Text -> InferenceSchedulerSummary)
-> Lens
InferenceSchedulerSummary
InferenceSchedulerSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InferenceSchedulerSummary' {Maybe Text
inferenceSchedulerName :: Maybe Text
$sel:inferenceSchedulerName:InferenceSchedulerSummary' :: InferenceSchedulerSummary -> Maybe Text
inferenceSchedulerName} -> Maybe Text
inferenceSchedulerName) (\s :: InferenceSchedulerSummary
s@InferenceSchedulerSummary' {} Maybe Text
a -> InferenceSchedulerSummary
s {$sel:inferenceSchedulerName:InferenceSchedulerSummary' :: Maybe Text
inferenceSchedulerName = Maybe Text
a} :: InferenceSchedulerSummary)
instance Core.FromJSON InferenceSchedulerSummary where
parseJSON :: Value -> Parser InferenceSchedulerSummary
parseJSON =
String
-> (Object -> Parser InferenceSchedulerSummary)
-> Value
-> Parser InferenceSchedulerSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"InferenceSchedulerSummary"
( \Object
x ->
Maybe InferenceSchedulerStatus
-> Maybe DataUploadFrequency
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> InferenceSchedulerSummary
InferenceSchedulerSummary'
(Maybe InferenceSchedulerStatus
-> Maybe DataUploadFrequency
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> InferenceSchedulerSummary)
-> Parser (Maybe InferenceSchedulerStatus)
-> Parser
(Maybe DataUploadFrequency
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> InferenceSchedulerSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe InferenceSchedulerStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
Parser
(Maybe DataUploadFrequency
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> InferenceSchedulerSummary)
-> Parser (Maybe DataUploadFrequency)
-> Parser
(Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> InferenceSchedulerSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DataUploadFrequency)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DataUploadFrequency")
Parser
(Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> InferenceSchedulerSummary)
-> Parser (Maybe Natural)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> InferenceSchedulerSummary)
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
"DataDelayOffsetInMinutes")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> InferenceSchedulerSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> InferenceSchedulerSummary)
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
"ModelArn")
Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> InferenceSchedulerSummary)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> InferenceSchedulerSummary)
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
"ModelName")
Parser (Maybe Text -> Maybe Text -> InferenceSchedulerSummary)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> InferenceSchedulerSummary)
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
"InferenceSchedulerArn")
Parser (Maybe Text -> InferenceSchedulerSummary)
-> Parser (Maybe Text) -> Parser InferenceSchedulerSummary
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
"InferenceSchedulerName")
)
instance Prelude.Hashable InferenceSchedulerSummary
instance Prelude.NFData InferenceSchedulerSummary