{-# 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.IoTEvents.Types.DetectorModelVersionSummary
-- 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.IoTEvents.Types.DetectorModelVersionSummary where

import qualified Amazonka.Core as Core
import Amazonka.IoTEvents.Types.DetectorModelVersionStatus
import Amazonka.IoTEvents.Types.EvaluationMethod
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Information about the detector model version.
--
-- /See:/ 'newDetectorModelVersionSummary' smart constructor.
data DetectorModelVersionSummary = DetectorModelVersionSummary'
  { -- | The time the detector model version was created.
    DetectorModelVersionSummary -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
    -- | The status of the detector model version.
    DetectorModelVersionSummary -> Maybe DetectorModelVersionStatus
status :: Prelude.Maybe DetectorModelVersionStatus,
    -- | The name of the detector model.
    DetectorModelVersionSummary -> Maybe Text
detectorModelName :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the detector model version.
    DetectorModelVersionSummary -> Maybe Text
detectorModelArn :: Prelude.Maybe Prelude.Text,
    -- | The ID of the detector model version.
    DetectorModelVersionSummary -> Maybe Text
detectorModelVersion :: Prelude.Maybe Prelude.Text,
    -- | The last time the detector model version was updated.
    DetectorModelVersionSummary -> Maybe POSIX
lastUpdateTime :: Prelude.Maybe Core.POSIX,
    -- | Information about the order in which events are evaluated and how
    -- actions are executed.
    DetectorModelVersionSummary -> Maybe EvaluationMethod
evaluationMethod :: Prelude.Maybe EvaluationMethod,
    -- | The ARN of the role that grants the detector model permission to perform
    -- its tasks.
    DetectorModelVersionSummary -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text
  }
  deriving (DetectorModelVersionSummary -> DetectorModelVersionSummary -> Bool
(DetectorModelVersionSummary
 -> DetectorModelVersionSummary -> Bool)
-> (DetectorModelVersionSummary
    -> DetectorModelVersionSummary -> Bool)
-> Eq DetectorModelVersionSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DetectorModelVersionSummary -> DetectorModelVersionSummary -> Bool
$c/= :: DetectorModelVersionSummary -> DetectorModelVersionSummary -> Bool
== :: DetectorModelVersionSummary -> DetectorModelVersionSummary -> Bool
$c== :: DetectorModelVersionSummary -> DetectorModelVersionSummary -> Bool
Prelude.Eq, ReadPrec [DetectorModelVersionSummary]
ReadPrec DetectorModelVersionSummary
Int -> ReadS DetectorModelVersionSummary
ReadS [DetectorModelVersionSummary]
(Int -> ReadS DetectorModelVersionSummary)
-> ReadS [DetectorModelVersionSummary]
-> ReadPrec DetectorModelVersionSummary
-> ReadPrec [DetectorModelVersionSummary]
-> Read DetectorModelVersionSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DetectorModelVersionSummary]
$creadListPrec :: ReadPrec [DetectorModelVersionSummary]
readPrec :: ReadPrec DetectorModelVersionSummary
$creadPrec :: ReadPrec DetectorModelVersionSummary
readList :: ReadS [DetectorModelVersionSummary]
$creadList :: ReadS [DetectorModelVersionSummary]
readsPrec :: Int -> ReadS DetectorModelVersionSummary
$creadsPrec :: Int -> ReadS DetectorModelVersionSummary
Prelude.Read, Int -> DetectorModelVersionSummary -> ShowS
[DetectorModelVersionSummary] -> ShowS
DetectorModelVersionSummary -> String
(Int -> DetectorModelVersionSummary -> ShowS)
-> (DetectorModelVersionSummary -> String)
-> ([DetectorModelVersionSummary] -> ShowS)
-> Show DetectorModelVersionSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DetectorModelVersionSummary] -> ShowS
$cshowList :: [DetectorModelVersionSummary] -> ShowS
show :: DetectorModelVersionSummary -> String
$cshow :: DetectorModelVersionSummary -> String
showsPrec :: Int -> DetectorModelVersionSummary -> ShowS
$cshowsPrec :: Int -> DetectorModelVersionSummary -> ShowS
Prelude.Show, (forall x.
 DetectorModelVersionSummary -> Rep DetectorModelVersionSummary x)
-> (forall x.
    Rep DetectorModelVersionSummary x -> DetectorModelVersionSummary)
-> Generic DetectorModelVersionSummary
forall x.
Rep DetectorModelVersionSummary x -> DetectorModelVersionSummary
forall x.
DetectorModelVersionSummary -> Rep DetectorModelVersionSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DetectorModelVersionSummary x -> DetectorModelVersionSummary
$cfrom :: forall x.
DetectorModelVersionSummary -> Rep DetectorModelVersionSummary x
Prelude.Generic)

-- |
-- Create a value of 'DetectorModelVersionSummary' 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:
--
-- 'creationTime', 'detectorModelVersionSummary_creationTime' - The time the detector model version was created.
--
-- 'status', 'detectorModelVersionSummary_status' - The status of the detector model version.
--
-- 'detectorModelName', 'detectorModelVersionSummary_detectorModelName' - The name of the detector model.
--
-- 'detectorModelArn', 'detectorModelVersionSummary_detectorModelArn' - The ARN of the detector model version.
--
-- 'detectorModelVersion', 'detectorModelVersionSummary_detectorModelVersion' - The ID of the detector model version.
--
-- 'lastUpdateTime', 'detectorModelVersionSummary_lastUpdateTime' - The last time the detector model version was updated.
--
-- 'evaluationMethod', 'detectorModelVersionSummary_evaluationMethod' - Information about the order in which events are evaluated and how
-- actions are executed.
--
-- 'roleArn', 'detectorModelVersionSummary_roleArn' - The ARN of the role that grants the detector model permission to perform
-- its tasks.
newDetectorModelVersionSummary ::
  DetectorModelVersionSummary
newDetectorModelVersionSummary :: DetectorModelVersionSummary
newDetectorModelVersionSummary =
  DetectorModelVersionSummary' :: Maybe POSIX
-> Maybe DetectorModelVersionStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EvaluationMethod
-> Maybe Text
-> DetectorModelVersionSummary
DetectorModelVersionSummary'
    { $sel:creationTime:DetectorModelVersionSummary' :: Maybe POSIX
creationTime =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:status:DetectorModelVersionSummary' :: Maybe DetectorModelVersionStatus
status = Maybe DetectorModelVersionStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:detectorModelName:DetectorModelVersionSummary' :: Maybe Text
detectorModelName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:detectorModelArn:DetectorModelVersionSummary' :: Maybe Text
detectorModelArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:detectorModelVersion:DetectorModelVersionSummary' :: Maybe Text
detectorModelVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdateTime:DetectorModelVersionSummary' :: Maybe POSIX
lastUpdateTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:evaluationMethod:DetectorModelVersionSummary' :: Maybe EvaluationMethod
evaluationMethod = Maybe EvaluationMethod
forall a. Maybe a
Prelude.Nothing,
      $sel:roleArn:DetectorModelVersionSummary' :: Maybe Text
roleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The time the detector model version was created.
detectorModelVersionSummary_creationTime :: Lens.Lens' DetectorModelVersionSummary (Prelude.Maybe Prelude.UTCTime)
detectorModelVersionSummary_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DetectorModelVersionSummary -> f DetectorModelVersionSummary
detectorModelVersionSummary_creationTime = (DetectorModelVersionSummary -> Maybe POSIX)
-> (DetectorModelVersionSummary
    -> Maybe POSIX -> DetectorModelVersionSummary)
-> Lens
     DetectorModelVersionSummary
     DetectorModelVersionSummary
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DetectorModelVersionSummary' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DetectorModelVersionSummary' :: DetectorModelVersionSummary -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DetectorModelVersionSummary
s@DetectorModelVersionSummary' {} Maybe POSIX
a -> DetectorModelVersionSummary
s {$sel:creationTime:DetectorModelVersionSummary' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DetectorModelVersionSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> DetectorModelVersionSummary -> f DetectorModelVersionSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DetectorModelVersionSummary
-> f DetectorModelVersionSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The status of the detector model version.
detectorModelVersionSummary_status :: Lens.Lens' DetectorModelVersionSummary (Prelude.Maybe DetectorModelVersionStatus)
detectorModelVersionSummary_status :: (Maybe DetectorModelVersionStatus
 -> f (Maybe DetectorModelVersionStatus))
-> DetectorModelVersionSummary -> f DetectorModelVersionSummary
detectorModelVersionSummary_status = (DetectorModelVersionSummary -> Maybe DetectorModelVersionStatus)
-> (DetectorModelVersionSummary
    -> Maybe DetectorModelVersionStatus -> DetectorModelVersionSummary)
-> Lens
     DetectorModelVersionSummary
     DetectorModelVersionSummary
     (Maybe DetectorModelVersionStatus)
     (Maybe DetectorModelVersionStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DetectorModelVersionSummary' {Maybe DetectorModelVersionStatus
status :: Maybe DetectorModelVersionStatus
$sel:status:DetectorModelVersionSummary' :: DetectorModelVersionSummary -> Maybe DetectorModelVersionStatus
status} -> Maybe DetectorModelVersionStatus
status) (\s :: DetectorModelVersionSummary
s@DetectorModelVersionSummary' {} Maybe DetectorModelVersionStatus
a -> DetectorModelVersionSummary
s {$sel:status:DetectorModelVersionSummary' :: Maybe DetectorModelVersionStatus
status = Maybe DetectorModelVersionStatus
a} :: DetectorModelVersionSummary)

-- | The name of the detector model.
detectorModelVersionSummary_detectorModelName :: Lens.Lens' DetectorModelVersionSummary (Prelude.Maybe Prelude.Text)
detectorModelVersionSummary_detectorModelName :: (Maybe Text -> f (Maybe Text))
-> DetectorModelVersionSummary -> f DetectorModelVersionSummary
detectorModelVersionSummary_detectorModelName = (DetectorModelVersionSummary -> Maybe Text)
-> (DetectorModelVersionSummary
    -> Maybe Text -> DetectorModelVersionSummary)
-> Lens
     DetectorModelVersionSummary
     DetectorModelVersionSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DetectorModelVersionSummary' {Maybe Text
detectorModelName :: Maybe Text
$sel:detectorModelName:DetectorModelVersionSummary' :: DetectorModelVersionSummary -> Maybe Text
detectorModelName} -> Maybe Text
detectorModelName) (\s :: DetectorModelVersionSummary
s@DetectorModelVersionSummary' {} Maybe Text
a -> DetectorModelVersionSummary
s {$sel:detectorModelName:DetectorModelVersionSummary' :: Maybe Text
detectorModelName = Maybe Text
a} :: DetectorModelVersionSummary)

-- | The ARN of the detector model version.
detectorModelVersionSummary_detectorModelArn :: Lens.Lens' DetectorModelVersionSummary (Prelude.Maybe Prelude.Text)
detectorModelVersionSummary_detectorModelArn :: (Maybe Text -> f (Maybe Text))
-> DetectorModelVersionSummary -> f DetectorModelVersionSummary
detectorModelVersionSummary_detectorModelArn = (DetectorModelVersionSummary -> Maybe Text)
-> (DetectorModelVersionSummary
    -> Maybe Text -> DetectorModelVersionSummary)
-> Lens
     DetectorModelVersionSummary
     DetectorModelVersionSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DetectorModelVersionSummary' {Maybe Text
detectorModelArn :: Maybe Text
$sel:detectorModelArn:DetectorModelVersionSummary' :: DetectorModelVersionSummary -> Maybe Text
detectorModelArn} -> Maybe Text
detectorModelArn) (\s :: DetectorModelVersionSummary
s@DetectorModelVersionSummary' {} Maybe Text
a -> DetectorModelVersionSummary
s {$sel:detectorModelArn:DetectorModelVersionSummary' :: Maybe Text
detectorModelArn = Maybe Text
a} :: DetectorModelVersionSummary)

-- | The ID of the detector model version.
detectorModelVersionSummary_detectorModelVersion :: Lens.Lens' DetectorModelVersionSummary (Prelude.Maybe Prelude.Text)
detectorModelVersionSummary_detectorModelVersion :: (Maybe Text -> f (Maybe Text))
-> DetectorModelVersionSummary -> f DetectorModelVersionSummary
detectorModelVersionSummary_detectorModelVersion = (DetectorModelVersionSummary -> Maybe Text)
-> (DetectorModelVersionSummary
    -> Maybe Text -> DetectorModelVersionSummary)
-> Lens
     DetectorModelVersionSummary
     DetectorModelVersionSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DetectorModelVersionSummary' {Maybe Text
detectorModelVersion :: Maybe Text
$sel:detectorModelVersion:DetectorModelVersionSummary' :: DetectorModelVersionSummary -> Maybe Text
detectorModelVersion} -> Maybe Text
detectorModelVersion) (\s :: DetectorModelVersionSummary
s@DetectorModelVersionSummary' {} Maybe Text
a -> DetectorModelVersionSummary
s {$sel:detectorModelVersion:DetectorModelVersionSummary' :: Maybe Text
detectorModelVersion = Maybe Text
a} :: DetectorModelVersionSummary)

-- | The last time the detector model version was updated.
detectorModelVersionSummary_lastUpdateTime :: Lens.Lens' DetectorModelVersionSummary (Prelude.Maybe Prelude.UTCTime)
detectorModelVersionSummary_lastUpdateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DetectorModelVersionSummary -> f DetectorModelVersionSummary
detectorModelVersionSummary_lastUpdateTime = (DetectorModelVersionSummary -> Maybe POSIX)
-> (DetectorModelVersionSummary
    -> Maybe POSIX -> DetectorModelVersionSummary)
-> Lens
     DetectorModelVersionSummary
     DetectorModelVersionSummary
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DetectorModelVersionSummary' {Maybe POSIX
lastUpdateTime :: Maybe POSIX
$sel:lastUpdateTime:DetectorModelVersionSummary' :: DetectorModelVersionSummary -> Maybe POSIX
lastUpdateTime} -> Maybe POSIX
lastUpdateTime) (\s :: DetectorModelVersionSummary
s@DetectorModelVersionSummary' {} Maybe POSIX
a -> DetectorModelVersionSummary
s {$sel:lastUpdateTime:DetectorModelVersionSummary' :: Maybe POSIX
lastUpdateTime = Maybe POSIX
a} :: DetectorModelVersionSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> DetectorModelVersionSummary -> f DetectorModelVersionSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DetectorModelVersionSummary
-> f DetectorModelVersionSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | Information about the order in which events are evaluated and how
-- actions are executed.
detectorModelVersionSummary_evaluationMethod :: Lens.Lens' DetectorModelVersionSummary (Prelude.Maybe EvaluationMethod)
detectorModelVersionSummary_evaluationMethod :: (Maybe EvaluationMethod -> f (Maybe EvaluationMethod))
-> DetectorModelVersionSummary -> f DetectorModelVersionSummary
detectorModelVersionSummary_evaluationMethod = (DetectorModelVersionSummary -> Maybe EvaluationMethod)
-> (DetectorModelVersionSummary
    -> Maybe EvaluationMethod -> DetectorModelVersionSummary)
-> Lens
     DetectorModelVersionSummary
     DetectorModelVersionSummary
     (Maybe EvaluationMethod)
     (Maybe EvaluationMethod)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DetectorModelVersionSummary' {Maybe EvaluationMethod
evaluationMethod :: Maybe EvaluationMethod
$sel:evaluationMethod:DetectorModelVersionSummary' :: DetectorModelVersionSummary -> Maybe EvaluationMethod
evaluationMethod} -> Maybe EvaluationMethod
evaluationMethod) (\s :: DetectorModelVersionSummary
s@DetectorModelVersionSummary' {} Maybe EvaluationMethod
a -> DetectorModelVersionSummary
s {$sel:evaluationMethod:DetectorModelVersionSummary' :: Maybe EvaluationMethod
evaluationMethod = Maybe EvaluationMethod
a} :: DetectorModelVersionSummary)

-- | The ARN of the role that grants the detector model permission to perform
-- its tasks.
detectorModelVersionSummary_roleArn :: Lens.Lens' DetectorModelVersionSummary (Prelude.Maybe Prelude.Text)
detectorModelVersionSummary_roleArn :: (Maybe Text -> f (Maybe Text))
-> DetectorModelVersionSummary -> f DetectorModelVersionSummary
detectorModelVersionSummary_roleArn = (DetectorModelVersionSummary -> Maybe Text)
-> (DetectorModelVersionSummary
    -> Maybe Text -> DetectorModelVersionSummary)
-> Lens
     DetectorModelVersionSummary
     DetectorModelVersionSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DetectorModelVersionSummary' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:DetectorModelVersionSummary' :: DetectorModelVersionSummary -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: DetectorModelVersionSummary
s@DetectorModelVersionSummary' {} Maybe Text
a -> DetectorModelVersionSummary
s {$sel:roleArn:DetectorModelVersionSummary' :: Maybe Text
roleArn = Maybe Text
a} :: DetectorModelVersionSummary)

instance Core.FromJSON DetectorModelVersionSummary where
  parseJSON :: Value -> Parser DetectorModelVersionSummary
parseJSON =
    String
-> (Object -> Parser DetectorModelVersionSummary)
-> Value
-> Parser DetectorModelVersionSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"DetectorModelVersionSummary"
      ( \Object
x ->
          Maybe POSIX
-> Maybe DetectorModelVersionStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EvaluationMethod
-> Maybe Text
-> DetectorModelVersionSummary
DetectorModelVersionSummary'
            (Maybe POSIX
 -> Maybe DetectorModelVersionStatus
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe EvaluationMethod
 -> Maybe Text
 -> DetectorModelVersionSummary)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe DetectorModelVersionStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe EvaluationMethod
      -> Maybe Text
      -> DetectorModelVersionSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"creationTime")
            Parser
  (Maybe DetectorModelVersionStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe EvaluationMethod
   -> Maybe Text
   -> DetectorModelVersionSummary)
-> Parser (Maybe DetectorModelVersionStatus)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe EvaluationMethod
      -> Maybe Text
      -> DetectorModelVersionSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DetectorModelVersionStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"status")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe EvaluationMethod
   -> Maybe Text
   -> DetectorModelVersionSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe EvaluationMethod
      -> Maybe Text
      -> DetectorModelVersionSummary)
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
"detectorModelName")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe EvaluationMethod
   -> Maybe Text
   -> DetectorModelVersionSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe EvaluationMethod
      -> Maybe Text
      -> DetectorModelVersionSummary)
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
"detectorModelArn")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe EvaluationMethod
   -> Maybe Text
   -> DetectorModelVersionSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe EvaluationMethod
      -> Maybe Text
      -> DetectorModelVersionSummary)
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
"detectorModelVersion")
            Parser
  (Maybe POSIX
   -> Maybe EvaluationMethod
   -> Maybe Text
   -> DetectorModelVersionSummary)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe EvaluationMethod
      -> Maybe Text -> DetectorModelVersionSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"lastUpdateTime")
            Parser
  (Maybe EvaluationMethod
   -> Maybe Text -> DetectorModelVersionSummary)
-> Parser (Maybe EvaluationMethod)
-> Parser (Maybe Text -> DetectorModelVersionSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe EvaluationMethod)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"evaluationMethod")
            Parser (Maybe Text -> DetectorModelVersionSummary)
-> Parser (Maybe Text) -> Parser DetectorModelVersionSummary
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
"roleArn")
      )

instance Prelude.Hashable DetectorModelVersionSummary

instance Prelude.NFData DetectorModelVersionSummary