{-# 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.SSM.Types.OpsItemSummary
-- 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.SSM.Types.OpsItemSummary where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SSM.Types.OpsItemDataValue
import Amazonka.SSM.Types.OpsItemStatus

-- | A count of OpsItems.
--
-- /See:/ 'newOpsItemSummary' smart constructor.
data OpsItemSummary = OpsItemSummary'
  { -- | The time a runbook workflow ended. Currently reported only for the
    -- OpsItem type @\/aws\/changerequest@.
    OpsItemSummary -> Maybe POSIX
actualEndTime :: Prelude.Maybe Core.POSIX,
    -- | The ID of the OpsItem.
    OpsItemSummary -> Maybe Text
opsItemId :: Prelude.Maybe Prelude.Text,
    -- | The OpsItem status. Status can be @Open@, @In Progress@, or @Resolved@.
    OpsItemSummary -> Maybe OpsItemStatus
status :: Prelude.Maybe OpsItemStatus,
    -- | The importance of this OpsItem in relation to other OpsItems in the
    -- system.
    OpsItemSummary -> Maybe Natural
priority :: Prelude.Maybe Prelude.Natural,
    -- | The date and time the OpsItem was created.
    OpsItemSummary -> Maybe POSIX
createdTime :: Prelude.Maybe Core.POSIX,
    -- | A list of OpsItems by category.
    OpsItemSummary -> Maybe Text
category :: Prelude.Maybe Prelude.Text,
    -- | A list of OpsItems by severity.
    OpsItemSummary -> Maybe Text
severity :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the IAM entity that created the
    -- OpsItem.
    OpsItemSummary -> Maybe Text
createdBy :: Prelude.Maybe Prelude.Text,
    -- | The date and time the OpsItem was last updated.
    OpsItemSummary -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Core.POSIX,
    -- | The type of OpsItem. Currently, the only valid values are
    -- @\/aws\/changerequest@ and @\/aws\/issue@.
    OpsItemSummary -> Maybe Text
opsItemType :: Prelude.Maybe Prelude.Text,
    -- | The impacted Amazon Web Services resource.
    OpsItemSummary -> Maybe Text
source :: Prelude.Maybe Prelude.Text,
    -- | A short heading that describes the nature of the OpsItem and the
    -- impacted resource.
    OpsItemSummary -> Maybe Text
title :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the IAM entity that created the
    -- OpsItem.
    OpsItemSummary -> Maybe Text
lastModifiedBy :: Prelude.Maybe Prelude.Text,
    -- | Operational data is custom data that provides useful reference details
    -- about the OpsItem.
    OpsItemSummary -> Maybe (HashMap Text OpsItemDataValue)
operationalData :: Prelude.Maybe (Prelude.HashMap Prelude.Text OpsItemDataValue),
    -- | The time a runbook workflow started. Currently reported only for the
    -- OpsItem type @\/aws\/changerequest@.
    OpsItemSummary -> Maybe POSIX
actualStartTime :: Prelude.Maybe Core.POSIX,
    -- | The time specified in a change request for a runbook workflow to end.
    -- Currently supported only for the OpsItem type @\/aws\/changerequest@.
    OpsItemSummary -> Maybe POSIX
plannedEndTime :: Prelude.Maybe Core.POSIX,
    -- | The time specified in a change request for a runbook workflow to start.
    -- Currently supported only for the OpsItem type @\/aws\/changerequest@.
    OpsItemSummary -> Maybe POSIX
plannedStartTime :: Prelude.Maybe Core.POSIX
  }
  deriving (OpsItemSummary -> OpsItemSummary -> Bool
(OpsItemSummary -> OpsItemSummary -> Bool)
-> (OpsItemSummary -> OpsItemSummary -> Bool) -> Eq OpsItemSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OpsItemSummary -> OpsItemSummary -> Bool
$c/= :: OpsItemSummary -> OpsItemSummary -> Bool
== :: OpsItemSummary -> OpsItemSummary -> Bool
$c== :: OpsItemSummary -> OpsItemSummary -> Bool
Prelude.Eq, ReadPrec [OpsItemSummary]
ReadPrec OpsItemSummary
Int -> ReadS OpsItemSummary
ReadS [OpsItemSummary]
(Int -> ReadS OpsItemSummary)
-> ReadS [OpsItemSummary]
-> ReadPrec OpsItemSummary
-> ReadPrec [OpsItemSummary]
-> Read OpsItemSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OpsItemSummary]
$creadListPrec :: ReadPrec [OpsItemSummary]
readPrec :: ReadPrec OpsItemSummary
$creadPrec :: ReadPrec OpsItemSummary
readList :: ReadS [OpsItemSummary]
$creadList :: ReadS [OpsItemSummary]
readsPrec :: Int -> ReadS OpsItemSummary
$creadsPrec :: Int -> ReadS OpsItemSummary
Prelude.Read, Int -> OpsItemSummary -> ShowS
[OpsItemSummary] -> ShowS
OpsItemSummary -> String
(Int -> OpsItemSummary -> ShowS)
-> (OpsItemSummary -> String)
-> ([OpsItemSummary] -> ShowS)
-> Show OpsItemSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OpsItemSummary] -> ShowS
$cshowList :: [OpsItemSummary] -> ShowS
show :: OpsItemSummary -> String
$cshow :: OpsItemSummary -> String
showsPrec :: Int -> OpsItemSummary -> ShowS
$cshowsPrec :: Int -> OpsItemSummary -> ShowS
Prelude.Show, (forall x. OpsItemSummary -> Rep OpsItemSummary x)
-> (forall x. Rep OpsItemSummary x -> OpsItemSummary)
-> Generic OpsItemSummary
forall x. Rep OpsItemSummary x -> OpsItemSummary
forall x. OpsItemSummary -> Rep OpsItemSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep OpsItemSummary x -> OpsItemSummary
$cfrom :: forall x. OpsItemSummary -> Rep OpsItemSummary x
Prelude.Generic)

-- |
-- Create a value of 'OpsItemSummary' 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:
--
-- 'actualEndTime', 'opsItemSummary_actualEndTime' - The time a runbook workflow ended. Currently reported only for the
-- OpsItem type @\/aws\/changerequest@.
--
-- 'opsItemId', 'opsItemSummary_opsItemId' - The ID of the OpsItem.
--
-- 'status', 'opsItemSummary_status' - The OpsItem status. Status can be @Open@, @In Progress@, or @Resolved@.
--
-- 'priority', 'opsItemSummary_priority' - The importance of this OpsItem in relation to other OpsItems in the
-- system.
--
-- 'createdTime', 'opsItemSummary_createdTime' - The date and time the OpsItem was created.
--
-- 'category', 'opsItemSummary_category' - A list of OpsItems by category.
--
-- 'severity', 'opsItemSummary_severity' - A list of OpsItems by severity.
--
-- 'createdBy', 'opsItemSummary_createdBy' - The Amazon Resource Name (ARN) of the IAM entity that created the
-- OpsItem.
--
-- 'lastModifiedTime', 'opsItemSummary_lastModifiedTime' - The date and time the OpsItem was last updated.
--
-- 'opsItemType', 'opsItemSummary_opsItemType' - The type of OpsItem. Currently, the only valid values are
-- @\/aws\/changerequest@ and @\/aws\/issue@.
--
-- 'source', 'opsItemSummary_source' - The impacted Amazon Web Services resource.
--
-- 'title', 'opsItemSummary_title' - A short heading that describes the nature of the OpsItem and the
-- impacted resource.
--
-- 'lastModifiedBy', 'opsItemSummary_lastModifiedBy' - The Amazon Resource Name (ARN) of the IAM entity that created the
-- OpsItem.
--
-- 'operationalData', 'opsItemSummary_operationalData' - Operational data is custom data that provides useful reference details
-- about the OpsItem.
--
-- 'actualStartTime', 'opsItemSummary_actualStartTime' - The time a runbook workflow started. Currently reported only for the
-- OpsItem type @\/aws\/changerequest@.
--
-- 'plannedEndTime', 'opsItemSummary_plannedEndTime' - The time specified in a change request for a runbook workflow to end.
-- Currently supported only for the OpsItem type @\/aws\/changerequest@.
--
-- 'plannedStartTime', 'opsItemSummary_plannedStartTime' - The time specified in a change request for a runbook workflow to start.
-- Currently supported only for the OpsItem type @\/aws\/changerequest@.
newOpsItemSummary ::
  OpsItemSummary
newOpsItemSummary :: OpsItemSummary
newOpsItemSummary =
  OpsItemSummary' :: Maybe POSIX
-> Maybe Text
-> Maybe OpsItemStatus
-> Maybe Natural
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text OpsItemDataValue)
-> Maybe POSIX
-> Maybe POSIX
-> Maybe POSIX
-> OpsItemSummary
OpsItemSummary'
    { $sel:actualEndTime:OpsItemSummary' :: Maybe POSIX
actualEndTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:opsItemId:OpsItemSummary' :: Maybe Text
opsItemId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:status:OpsItemSummary' :: Maybe OpsItemStatus
status = Maybe OpsItemStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:priority:OpsItemSummary' :: Maybe Natural
priority = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:createdTime:OpsItemSummary' :: Maybe POSIX
createdTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:category:OpsItemSummary' :: Maybe Text
category = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:severity:OpsItemSummary' :: Maybe Text
severity = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdBy:OpsItemSummary' :: Maybe Text
createdBy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTime:OpsItemSummary' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:opsItemType:OpsItemSummary' :: Maybe Text
opsItemType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:source:OpsItemSummary' :: Maybe Text
source = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:title:OpsItemSummary' :: Maybe Text
title = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedBy:OpsItemSummary' :: Maybe Text
lastModifiedBy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:operationalData:OpsItemSummary' :: Maybe (HashMap Text OpsItemDataValue)
operationalData = Maybe (HashMap Text OpsItemDataValue)
forall a. Maybe a
Prelude.Nothing,
      $sel:actualStartTime:OpsItemSummary' :: Maybe POSIX
actualStartTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:plannedEndTime:OpsItemSummary' :: Maybe POSIX
plannedEndTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:plannedStartTime:OpsItemSummary' :: Maybe POSIX
plannedStartTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing
    }

-- | The time a runbook workflow ended. Currently reported only for the
-- OpsItem type @\/aws\/changerequest@.
opsItemSummary_actualEndTime :: Lens.Lens' OpsItemSummary (Prelude.Maybe Prelude.UTCTime)
opsItemSummary_actualEndTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> OpsItemSummary -> f OpsItemSummary
opsItemSummary_actualEndTime = (OpsItemSummary -> Maybe POSIX)
-> (OpsItemSummary -> Maybe POSIX -> OpsItemSummary)
-> Lens OpsItemSummary OpsItemSummary (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpsItemSummary' {Maybe POSIX
actualEndTime :: Maybe POSIX
$sel:actualEndTime:OpsItemSummary' :: OpsItemSummary -> Maybe POSIX
actualEndTime} -> Maybe POSIX
actualEndTime) (\s :: OpsItemSummary
s@OpsItemSummary' {} Maybe POSIX
a -> OpsItemSummary
s {$sel:actualEndTime:OpsItemSummary' :: Maybe POSIX
actualEndTime = Maybe POSIX
a} :: OpsItemSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> OpsItemSummary -> f OpsItemSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> OpsItemSummary
-> f OpsItemSummary
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 ID of the OpsItem.
opsItemSummary_opsItemId :: Lens.Lens' OpsItemSummary (Prelude.Maybe Prelude.Text)
opsItemSummary_opsItemId :: (Maybe Text -> f (Maybe Text))
-> OpsItemSummary -> f OpsItemSummary
opsItemSummary_opsItemId = (OpsItemSummary -> Maybe Text)
-> (OpsItemSummary -> Maybe Text -> OpsItemSummary)
-> Lens OpsItemSummary OpsItemSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpsItemSummary' {Maybe Text
opsItemId :: Maybe Text
$sel:opsItemId:OpsItemSummary' :: OpsItemSummary -> Maybe Text
opsItemId} -> Maybe Text
opsItemId) (\s :: OpsItemSummary
s@OpsItemSummary' {} Maybe Text
a -> OpsItemSummary
s {$sel:opsItemId:OpsItemSummary' :: Maybe Text
opsItemId = Maybe Text
a} :: OpsItemSummary)

-- | The OpsItem status. Status can be @Open@, @In Progress@, or @Resolved@.
opsItemSummary_status :: Lens.Lens' OpsItemSummary (Prelude.Maybe OpsItemStatus)
opsItemSummary_status :: (Maybe OpsItemStatus -> f (Maybe OpsItemStatus))
-> OpsItemSummary -> f OpsItemSummary
opsItemSummary_status = (OpsItemSummary -> Maybe OpsItemStatus)
-> (OpsItemSummary -> Maybe OpsItemStatus -> OpsItemSummary)
-> Lens
     OpsItemSummary
     OpsItemSummary
     (Maybe OpsItemStatus)
     (Maybe OpsItemStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpsItemSummary' {Maybe OpsItemStatus
status :: Maybe OpsItemStatus
$sel:status:OpsItemSummary' :: OpsItemSummary -> Maybe OpsItemStatus
status} -> Maybe OpsItemStatus
status) (\s :: OpsItemSummary
s@OpsItemSummary' {} Maybe OpsItemStatus
a -> OpsItemSummary
s {$sel:status:OpsItemSummary' :: Maybe OpsItemStatus
status = Maybe OpsItemStatus
a} :: OpsItemSummary)

-- | The importance of this OpsItem in relation to other OpsItems in the
-- system.
opsItemSummary_priority :: Lens.Lens' OpsItemSummary (Prelude.Maybe Prelude.Natural)
opsItemSummary_priority :: (Maybe Natural -> f (Maybe Natural))
-> OpsItemSummary -> f OpsItemSummary
opsItemSummary_priority = (OpsItemSummary -> Maybe Natural)
-> (OpsItemSummary -> Maybe Natural -> OpsItemSummary)
-> Lens
     OpsItemSummary OpsItemSummary (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpsItemSummary' {Maybe Natural
priority :: Maybe Natural
$sel:priority:OpsItemSummary' :: OpsItemSummary -> Maybe Natural
priority} -> Maybe Natural
priority) (\s :: OpsItemSummary
s@OpsItemSummary' {} Maybe Natural
a -> OpsItemSummary
s {$sel:priority:OpsItemSummary' :: Maybe Natural
priority = Maybe Natural
a} :: OpsItemSummary)

-- | The date and time the OpsItem was created.
opsItemSummary_createdTime :: Lens.Lens' OpsItemSummary (Prelude.Maybe Prelude.UTCTime)
opsItemSummary_createdTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> OpsItemSummary -> f OpsItemSummary
opsItemSummary_createdTime = (OpsItemSummary -> Maybe POSIX)
-> (OpsItemSummary -> Maybe POSIX -> OpsItemSummary)
-> Lens OpsItemSummary OpsItemSummary (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpsItemSummary' {Maybe POSIX
createdTime :: Maybe POSIX
$sel:createdTime:OpsItemSummary' :: OpsItemSummary -> Maybe POSIX
createdTime} -> Maybe POSIX
createdTime) (\s :: OpsItemSummary
s@OpsItemSummary' {} Maybe POSIX
a -> OpsItemSummary
s {$sel:createdTime:OpsItemSummary' :: Maybe POSIX
createdTime = Maybe POSIX
a} :: OpsItemSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> OpsItemSummary -> f OpsItemSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> OpsItemSummary
-> f OpsItemSummary
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

-- | A list of OpsItems by category.
opsItemSummary_category :: Lens.Lens' OpsItemSummary (Prelude.Maybe Prelude.Text)
opsItemSummary_category :: (Maybe Text -> f (Maybe Text))
-> OpsItemSummary -> f OpsItemSummary
opsItemSummary_category = (OpsItemSummary -> Maybe Text)
-> (OpsItemSummary -> Maybe Text -> OpsItemSummary)
-> Lens OpsItemSummary OpsItemSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpsItemSummary' {Maybe Text
category :: Maybe Text
$sel:category:OpsItemSummary' :: OpsItemSummary -> Maybe Text
category} -> Maybe Text
category) (\s :: OpsItemSummary
s@OpsItemSummary' {} Maybe Text
a -> OpsItemSummary
s {$sel:category:OpsItemSummary' :: Maybe Text
category = Maybe Text
a} :: OpsItemSummary)

-- | A list of OpsItems by severity.
opsItemSummary_severity :: Lens.Lens' OpsItemSummary (Prelude.Maybe Prelude.Text)
opsItemSummary_severity :: (Maybe Text -> f (Maybe Text))
-> OpsItemSummary -> f OpsItemSummary
opsItemSummary_severity = (OpsItemSummary -> Maybe Text)
-> (OpsItemSummary -> Maybe Text -> OpsItemSummary)
-> Lens OpsItemSummary OpsItemSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpsItemSummary' {Maybe Text
severity :: Maybe Text
$sel:severity:OpsItemSummary' :: OpsItemSummary -> Maybe Text
severity} -> Maybe Text
severity) (\s :: OpsItemSummary
s@OpsItemSummary' {} Maybe Text
a -> OpsItemSummary
s {$sel:severity:OpsItemSummary' :: Maybe Text
severity = Maybe Text
a} :: OpsItemSummary)

-- | The Amazon Resource Name (ARN) of the IAM entity that created the
-- OpsItem.
opsItemSummary_createdBy :: Lens.Lens' OpsItemSummary (Prelude.Maybe Prelude.Text)
opsItemSummary_createdBy :: (Maybe Text -> f (Maybe Text))
-> OpsItemSummary -> f OpsItemSummary
opsItemSummary_createdBy = (OpsItemSummary -> Maybe Text)
-> (OpsItemSummary -> Maybe Text -> OpsItemSummary)
-> Lens OpsItemSummary OpsItemSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpsItemSummary' {Maybe Text
createdBy :: Maybe Text
$sel:createdBy:OpsItemSummary' :: OpsItemSummary -> Maybe Text
createdBy} -> Maybe Text
createdBy) (\s :: OpsItemSummary
s@OpsItemSummary' {} Maybe Text
a -> OpsItemSummary
s {$sel:createdBy:OpsItemSummary' :: Maybe Text
createdBy = Maybe Text
a} :: OpsItemSummary)

-- | The date and time the OpsItem was last updated.
opsItemSummary_lastModifiedTime :: Lens.Lens' OpsItemSummary (Prelude.Maybe Prelude.UTCTime)
opsItemSummary_lastModifiedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> OpsItemSummary -> f OpsItemSummary
opsItemSummary_lastModifiedTime = (OpsItemSummary -> Maybe POSIX)
-> (OpsItemSummary -> Maybe POSIX -> OpsItemSummary)
-> Lens OpsItemSummary OpsItemSummary (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpsItemSummary' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:OpsItemSummary' :: OpsItemSummary -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: OpsItemSummary
s@OpsItemSummary' {} Maybe POSIX
a -> OpsItemSummary
s {$sel:lastModifiedTime:OpsItemSummary' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: OpsItemSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> OpsItemSummary -> f OpsItemSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> OpsItemSummary
-> f OpsItemSummary
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 type of OpsItem. Currently, the only valid values are
-- @\/aws\/changerequest@ and @\/aws\/issue@.
opsItemSummary_opsItemType :: Lens.Lens' OpsItemSummary (Prelude.Maybe Prelude.Text)
opsItemSummary_opsItemType :: (Maybe Text -> f (Maybe Text))
-> OpsItemSummary -> f OpsItemSummary
opsItemSummary_opsItemType = (OpsItemSummary -> Maybe Text)
-> (OpsItemSummary -> Maybe Text -> OpsItemSummary)
-> Lens OpsItemSummary OpsItemSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpsItemSummary' {Maybe Text
opsItemType :: Maybe Text
$sel:opsItemType:OpsItemSummary' :: OpsItemSummary -> Maybe Text
opsItemType} -> Maybe Text
opsItemType) (\s :: OpsItemSummary
s@OpsItemSummary' {} Maybe Text
a -> OpsItemSummary
s {$sel:opsItemType:OpsItemSummary' :: Maybe Text
opsItemType = Maybe Text
a} :: OpsItemSummary)

-- | The impacted Amazon Web Services resource.
opsItemSummary_source :: Lens.Lens' OpsItemSummary (Prelude.Maybe Prelude.Text)
opsItemSummary_source :: (Maybe Text -> f (Maybe Text))
-> OpsItemSummary -> f OpsItemSummary
opsItemSummary_source = (OpsItemSummary -> Maybe Text)
-> (OpsItemSummary -> Maybe Text -> OpsItemSummary)
-> Lens OpsItemSummary OpsItemSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpsItemSummary' {Maybe Text
source :: Maybe Text
$sel:source:OpsItemSummary' :: OpsItemSummary -> Maybe Text
source} -> Maybe Text
source) (\s :: OpsItemSummary
s@OpsItemSummary' {} Maybe Text
a -> OpsItemSummary
s {$sel:source:OpsItemSummary' :: Maybe Text
source = Maybe Text
a} :: OpsItemSummary)

-- | A short heading that describes the nature of the OpsItem and the
-- impacted resource.
opsItemSummary_title :: Lens.Lens' OpsItemSummary (Prelude.Maybe Prelude.Text)
opsItemSummary_title :: (Maybe Text -> f (Maybe Text))
-> OpsItemSummary -> f OpsItemSummary
opsItemSummary_title = (OpsItemSummary -> Maybe Text)
-> (OpsItemSummary -> Maybe Text -> OpsItemSummary)
-> Lens OpsItemSummary OpsItemSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpsItemSummary' {Maybe Text
title :: Maybe Text
$sel:title:OpsItemSummary' :: OpsItemSummary -> Maybe Text
title} -> Maybe Text
title) (\s :: OpsItemSummary
s@OpsItemSummary' {} Maybe Text
a -> OpsItemSummary
s {$sel:title:OpsItemSummary' :: Maybe Text
title = Maybe Text
a} :: OpsItemSummary)

-- | The Amazon Resource Name (ARN) of the IAM entity that created the
-- OpsItem.
opsItemSummary_lastModifiedBy :: Lens.Lens' OpsItemSummary (Prelude.Maybe Prelude.Text)
opsItemSummary_lastModifiedBy :: (Maybe Text -> f (Maybe Text))
-> OpsItemSummary -> f OpsItemSummary
opsItemSummary_lastModifiedBy = (OpsItemSummary -> Maybe Text)
-> (OpsItemSummary -> Maybe Text -> OpsItemSummary)
-> Lens OpsItemSummary OpsItemSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpsItemSummary' {Maybe Text
lastModifiedBy :: Maybe Text
$sel:lastModifiedBy:OpsItemSummary' :: OpsItemSummary -> Maybe Text
lastModifiedBy} -> Maybe Text
lastModifiedBy) (\s :: OpsItemSummary
s@OpsItemSummary' {} Maybe Text
a -> OpsItemSummary
s {$sel:lastModifiedBy:OpsItemSummary' :: Maybe Text
lastModifiedBy = Maybe Text
a} :: OpsItemSummary)

-- | Operational data is custom data that provides useful reference details
-- about the OpsItem.
opsItemSummary_operationalData :: Lens.Lens' OpsItemSummary (Prelude.Maybe (Prelude.HashMap Prelude.Text OpsItemDataValue))
opsItemSummary_operationalData :: (Maybe (HashMap Text OpsItemDataValue)
 -> f (Maybe (HashMap Text OpsItemDataValue)))
-> OpsItemSummary -> f OpsItemSummary
opsItemSummary_operationalData = (OpsItemSummary -> Maybe (HashMap Text OpsItemDataValue))
-> (OpsItemSummary
    -> Maybe (HashMap Text OpsItemDataValue) -> OpsItemSummary)
-> Lens
     OpsItemSummary
     OpsItemSummary
     (Maybe (HashMap Text OpsItemDataValue))
     (Maybe (HashMap Text OpsItemDataValue))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpsItemSummary' {Maybe (HashMap Text OpsItemDataValue)
operationalData :: Maybe (HashMap Text OpsItemDataValue)
$sel:operationalData:OpsItemSummary' :: OpsItemSummary -> Maybe (HashMap Text OpsItemDataValue)
operationalData} -> Maybe (HashMap Text OpsItemDataValue)
operationalData) (\s :: OpsItemSummary
s@OpsItemSummary' {} Maybe (HashMap Text OpsItemDataValue)
a -> OpsItemSummary
s {$sel:operationalData:OpsItemSummary' :: Maybe (HashMap Text OpsItemDataValue)
operationalData = Maybe (HashMap Text OpsItemDataValue)
a} :: OpsItemSummary) ((Maybe (HashMap Text OpsItemDataValue)
  -> f (Maybe (HashMap Text OpsItemDataValue)))
 -> OpsItemSummary -> f OpsItemSummary)
-> ((Maybe (HashMap Text OpsItemDataValue)
     -> f (Maybe (HashMap Text OpsItemDataValue)))
    -> Maybe (HashMap Text OpsItemDataValue)
    -> f (Maybe (HashMap Text OpsItemDataValue)))
-> (Maybe (HashMap Text OpsItemDataValue)
    -> f (Maybe (HashMap Text OpsItemDataValue)))
-> OpsItemSummary
-> f OpsItemSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text OpsItemDataValue)
  (HashMap Text OpsItemDataValue)
  (HashMap Text OpsItemDataValue)
  (HashMap Text OpsItemDataValue)
-> Iso
     (Maybe (HashMap Text OpsItemDataValue))
     (Maybe (HashMap Text OpsItemDataValue))
     (Maybe (HashMap Text OpsItemDataValue))
     (Maybe (HashMap Text OpsItemDataValue))
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
  (HashMap Text OpsItemDataValue)
  (HashMap Text OpsItemDataValue)
  (HashMap Text OpsItemDataValue)
  (HashMap Text OpsItemDataValue)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The time a runbook workflow started. Currently reported only for the
-- OpsItem type @\/aws\/changerequest@.
opsItemSummary_actualStartTime :: Lens.Lens' OpsItemSummary (Prelude.Maybe Prelude.UTCTime)
opsItemSummary_actualStartTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> OpsItemSummary -> f OpsItemSummary
opsItemSummary_actualStartTime = (OpsItemSummary -> Maybe POSIX)
-> (OpsItemSummary -> Maybe POSIX -> OpsItemSummary)
-> Lens OpsItemSummary OpsItemSummary (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpsItemSummary' {Maybe POSIX
actualStartTime :: Maybe POSIX
$sel:actualStartTime:OpsItemSummary' :: OpsItemSummary -> Maybe POSIX
actualStartTime} -> Maybe POSIX
actualStartTime) (\s :: OpsItemSummary
s@OpsItemSummary' {} Maybe POSIX
a -> OpsItemSummary
s {$sel:actualStartTime:OpsItemSummary' :: Maybe POSIX
actualStartTime = Maybe POSIX
a} :: OpsItemSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> OpsItemSummary -> f OpsItemSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> OpsItemSummary
-> f OpsItemSummary
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 time specified in a change request for a runbook workflow to end.
-- Currently supported only for the OpsItem type @\/aws\/changerequest@.
opsItemSummary_plannedEndTime :: Lens.Lens' OpsItemSummary (Prelude.Maybe Prelude.UTCTime)
opsItemSummary_plannedEndTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> OpsItemSummary -> f OpsItemSummary
opsItemSummary_plannedEndTime = (OpsItemSummary -> Maybe POSIX)
-> (OpsItemSummary -> Maybe POSIX -> OpsItemSummary)
-> Lens OpsItemSummary OpsItemSummary (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpsItemSummary' {Maybe POSIX
plannedEndTime :: Maybe POSIX
$sel:plannedEndTime:OpsItemSummary' :: OpsItemSummary -> Maybe POSIX
plannedEndTime} -> Maybe POSIX
plannedEndTime) (\s :: OpsItemSummary
s@OpsItemSummary' {} Maybe POSIX
a -> OpsItemSummary
s {$sel:plannedEndTime:OpsItemSummary' :: Maybe POSIX
plannedEndTime = Maybe POSIX
a} :: OpsItemSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> OpsItemSummary -> f OpsItemSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> OpsItemSummary
-> f OpsItemSummary
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 time specified in a change request for a runbook workflow to start.
-- Currently supported only for the OpsItem type @\/aws\/changerequest@.
opsItemSummary_plannedStartTime :: Lens.Lens' OpsItemSummary (Prelude.Maybe Prelude.UTCTime)
opsItemSummary_plannedStartTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> OpsItemSummary -> f OpsItemSummary
opsItemSummary_plannedStartTime = (OpsItemSummary -> Maybe POSIX)
-> (OpsItemSummary -> Maybe POSIX -> OpsItemSummary)
-> Lens OpsItemSummary OpsItemSummary (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpsItemSummary' {Maybe POSIX
plannedStartTime :: Maybe POSIX
$sel:plannedStartTime:OpsItemSummary' :: OpsItemSummary -> Maybe POSIX
plannedStartTime} -> Maybe POSIX
plannedStartTime) (\s :: OpsItemSummary
s@OpsItemSummary' {} Maybe POSIX
a -> OpsItemSummary
s {$sel:plannedStartTime:OpsItemSummary' :: Maybe POSIX
plannedStartTime = Maybe POSIX
a} :: OpsItemSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> OpsItemSummary -> f OpsItemSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> OpsItemSummary
-> f OpsItemSummary
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

instance Core.FromJSON OpsItemSummary where
  parseJSON :: Value -> Parser OpsItemSummary
parseJSON =
    String
-> (Object -> Parser OpsItemSummary)
-> Value
-> Parser OpsItemSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"OpsItemSummary"
      ( \Object
x ->
          Maybe POSIX
-> Maybe Text
-> Maybe OpsItemStatus
-> Maybe Natural
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text OpsItemDataValue)
-> Maybe POSIX
-> Maybe POSIX
-> Maybe POSIX
-> OpsItemSummary
OpsItemSummary'
            (Maybe POSIX
 -> Maybe Text
 -> Maybe OpsItemStatus
 -> Maybe Natural
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe (HashMap Text OpsItemDataValue)
 -> Maybe POSIX
 -> Maybe POSIX
 -> Maybe POSIX
 -> OpsItemSummary)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe OpsItemStatus
      -> Maybe Natural
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text OpsItemDataValue)
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe POSIX
      -> OpsItemSummary)
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
"ActualEndTime")
            Parser
  (Maybe Text
   -> Maybe OpsItemStatus
   -> Maybe Natural
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text OpsItemDataValue)
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe POSIX
   -> OpsItemSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe OpsItemStatus
      -> Maybe Natural
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text OpsItemDataValue)
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe POSIX
      -> OpsItemSummary)
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
"OpsItemId")
            Parser
  (Maybe OpsItemStatus
   -> Maybe Natural
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text OpsItemDataValue)
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe POSIX
   -> OpsItemSummary)
-> Parser (Maybe OpsItemStatus)
-> Parser
     (Maybe Natural
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text OpsItemDataValue)
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe POSIX
      -> OpsItemSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe OpsItemStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
            Parser
  (Maybe Natural
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text OpsItemDataValue)
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe POSIX
   -> OpsItemSummary)
-> Parser (Maybe Natural)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text OpsItemDataValue)
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe POSIX
      -> OpsItemSummary)
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
"Priority")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text OpsItemDataValue)
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe POSIX
   -> OpsItemSummary)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text OpsItemDataValue)
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe POSIX
      -> OpsItemSummary)
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
"CreatedTime")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text OpsItemDataValue)
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe POSIX
   -> OpsItemSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text OpsItemDataValue)
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe POSIX
      -> OpsItemSummary)
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
"Category")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text OpsItemDataValue)
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe POSIX
   -> OpsItemSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text OpsItemDataValue)
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe POSIX
      -> OpsItemSummary)
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
"Severity")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text OpsItemDataValue)
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe POSIX
   -> OpsItemSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text OpsItemDataValue)
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe POSIX
      -> OpsItemSummary)
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
"CreatedBy")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text OpsItemDataValue)
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe POSIX
   -> OpsItemSummary)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text OpsItemDataValue)
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe POSIX
      -> OpsItemSummary)
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
"LastModifiedTime")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text OpsItemDataValue)
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe POSIX
   -> OpsItemSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text OpsItemDataValue)
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe POSIX
      -> OpsItemSummary)
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
"OpsItemType")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text OpsItemDataValue)
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe POSIX
   -> OpsItemSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text OpsItemDataValue)
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe POSIX
      -> OpsItemSummary)
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
"Source")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text OpsItemDataValue)
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe POSIX
   -> OpsItemSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe (HashMap Text OpsItemDataValue)
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe POSIX
      -> OpsItemSummary)
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
"Title")
            Parser
  (Maybe Text
   -> Maybe (HashMap Text OpsItemDataValue)
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe POSIX
   -> OpsItemSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe (HashMap Text OpsItemDataValue)
      -> Maybe POSIX -> Maybe POSIX -> Maybe POSIX -> OpsItemSummary)
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
"LastModifiedBy")
            Parser
  (Maybe (HashMap Text OpsItemDataValue)
   -> Maybe POSIX -> Maybe POSIX -> Maybe POSIX -> OpsItemSummary)
-> Parser (Maybe (HashMap Text OpsItemDataValue))
-> Parser
     (Maybe POSIX -> Maybe POSIX -> Maybe POSIX -> OpsItemSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Parser (Maybe (Maybe (HashMap Text OpsItemDataValue)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"OperationalData"
                            Parser (Maybe (Maybe (HashMap Text OpsItemDataValue)))
-> Maybe (HashMap Text OpsItemDataValue)
-> Parser (Maybe (HashMap Text OpsItemDataValue))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Text OpsItemDataValue)
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser
  (Maybe POSIX -> Maybe POSIX -> Maybe POSIX -> OpsItemSummary)
-> Parser (Maybe POSIX)
-> Parser (Maybe POSIX -> Maybe POSIX -> OpsItemSummary)
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
"ActualStartTime")
            Parser (Maybe POSIX -> Maybe POSIX -> OpsItemSummary)
-> Parser (Maybe POSIX) -> Parser (Maybe POSIX -> OpsItemSummary)
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
"PlannedEndTime")
            Parser (Maybe POSIX -> OpsItemSummary)
-> Parser (Maybe POSIX) -> Parser OpsItemSummary
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
"PlannedStartTime")
      )

instance Prelude.Hashable OpsItemSummary

instance Prelude.NFData OpsItemSummary