{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.LookoutEquipment.Types.InferenceSchedulerSummary
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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

-- | Contains information about the specific inference scheduler, including
-- data delay offset, model name and ARN, status, and so on.
--
-- /See:/ 'newInferenceSchedulerSummary' smart constructor.
data InferenceSchedulerSummary = InferenceSchedulerSummary'
  { -- | Indicates the status of the inference scheduler.
    InferenceSchedulerSummary -> Maybe InferenceSchedulerStatus
status :: Prelude.Maybe InferenceSchedulerStatus,
    -- | How often data is uploaded to the source S3 bucket for the input data.
    -- This value is the length of time between data uploads. For instance, if
    -- you select 5 minutes, Amazon Lookout for Equipment will upload the
    -- real-time data to the source bucket once every 5 minutes. This frequency
    -- also determines how often Amazon Lookout for Equipment starts a
    -- scheduled inference on your data. In this example, it starts once every
    -- 5 minutes.
    InferenceSchedulerSummary -> Maybe DataUploadFrequency
dataUploadFrequency :: Prelude.Maybe DataUploadFrequency,
    -- | A period of time (in minutes) by which inference on the data is delayed
    -- after the data starts. For instance, if an offset delay time of five
    -- minutes was selected, inference will not begin on the data until the
    -- first data measurement after the five minute mark. For example, if five
    -- minutes is selected, the inference scheduler will wake up at the
    -- configured frequency with the additional five minute delay time to check
    -- the customer S3 bucket. The customer can upload data at the same
    -- frequency and they don\'t need to stop and restart the scheduler when
    -- uploading new data.
    InferenceSchedulerSummary -> Maybe Natural
dataDelayOffsetInMinutes :: Prelude.Maybe Prelude.Natural,
    -- | The Amazon Resource Name (ARN) of the ML model used by the inference
    -- scheduler.
    InferenceSchedulerSummary -> Maybe Text
modelArn :: Prelude.Maybe Prelude.Text,
    -- | The name of the ML model used for the inference scheduler.
    InferenceSchedulerSummary -> Maybe Text
modelName :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the inference scheduler.
    InferenceSchedulerSummary -> Maybe Text
inferenceSchedulerArn :: Prelude.Maybe Prelude.Text,
    -- | The name of the inference scheduler.
    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)

-- |
-- Create a value of 'InferenceSchedulerSummary' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'status', 'inferenceSchedulerSummary_status' - Indicates the status of the inference scheduler.
--
-- 'dataUploadFrequency', 'inferenceSchedulerSummary_dataUploadFrequency' - How often data is uploaded to the source S3 bucket for the input data.
-- This value is the length of time between data uploads. For instance, if
-- you select 5 minutes, Amazon Lookout for Equipment will upload the
-- real-time data to the source bucket once every 5 minutes. This frequency
-- also determines how often Amazon Lookout for Equipment starts a
-- scheduled inference on your data. In this example, it starts once every
-- 5 minutes.
--
-- 'dataDelayOffsetInMinutes', 'inferenceSchedulerSummary_dataDelayOffsetInMinutes' - A period of time (in minutes) by which inference on the data is delayed
-- after the data starts. For instance, if an offset delay time of five
-- minutes was selected, inference will not begin on the data until the
-- first data measurement after the five minute mark. For example, if five
-- minutes is selected, the inference scheduler will wake up at the
-- configured frequency with the additional five minute delay time to check
-- the customer S3 bucket. The customer can upload data at the same
-- frequency and they don\'t need to stop and restart the scheduler when
-- uploading new data.
--
-- 'modelArn', 'inferenceSchedulerSummary_modelArn' - The Amazon Resource Name (ARN) of the ML model used by the inference
-- scheduler.
--
-- 'modelName', 'inferenceSchedulerSummary_modelName' - The name of the ML model used for the inference scheduler.
--
-- 'inferenceSchedulerArn', 'inferenceSchedulerSummary_inferenceSchedulerArn' - The Amazon Resource Name (ARN) of the inference scheduler.
--
-- 'inferenceSchedulerName', 'inferenceSchedulerSummary_inferenceSchedulerName' - The name of the inference scheduler.
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
    }

-- | Indicates the status of the inference scheduler.
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)

-- | How often data is uploaded to the source S3 bucket for the input data.
-- This value is the length of time between data uploads. For instance, if
-- you select 5 minutes, Amazon Lookout for Equipment will upload the
-- real-time data to the source bucket once every 5 minutes. This frequency
-- also determines how often Amazon Lookout for Equipment starts a
-- scheduled inference on your data. In this example, it starts once every
-- 5 minutes.
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)

-- | A period of time (in minutes) by which inference on the data is delayed
-- after the data starts. For instance, if an offset delay time of five
-- minutes was selected, inference will not begin on the data until the
-- first data measurement after the five minute mark. For example, if five
-- minutes is selected, the inference scheduler will wake up at the
-- configured frequency with the additional five minute delay time to check
-- the customer S3 bucket. The customer can upload data at the same
-- frequency and they don\'t need to stop and restart the scheduler when
-- uploading new data.
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)

-- | The Amazon Resource Name (ARN) of the ML model used by the inference
-- scheduler.
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)

-- | The name of the ML model used for the inference scheduler.
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)

-- | The Amazon Resource Name (ARN) of the inference scheduler.
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)

-- | The name of the inference scheduler.
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