{-# 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.WellArchitected.Types.WorkloadSummary
-- 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.WellArchitected.Types.WorkloadSummary where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.WellArchitected.Types.Risk
import Amazonka.WellArchitected.Types.WorkloadImprovementStatus

-- | A workload summary return object.
--
-- /See:/ 'newWorkloadSummary' smart constructor.
data WorkloadSummary = WorkloadSummary'
  { WorkloadSummary -> Maybe [Text]
lenses :: Prelude.Maybe [Prelude.Text],
    WorkloadSummary -> Maybe (HashMap Risk Natural)
riskCounts :: Prelude.Maybe (Prelude.HashMap Risk Prelude.Natural),
    WorkloadSummary -> Maybe Text
owner :: Prelude.Maybe Prelude.Text,
    WorkloadSummary -> Maybe WorkloadImprovementStatus
improvementStatus :: Prelude.Maybe WorkloadImprovementStatus,
    WorkloadSummary -> Maybe Text
workloadArn :: Prelude.Maybe Prelude.Text,
    WorkloadSummary -> Maybe Text
workloadId :: Prelude.Maybe Prelude.Text,
    WorkloadSummary -> Maybe Text
workloadName :: Prelude.Maybe Prelude.Text,
    WorkloadSummary -> Maybe POSIX
updatedAt :: Prelude.Maybe Core.POSIX
  }
  deriving (WorkloadSummary -> WorkloadSummary -> Bool
(WorkloadSummary -> WorkloadSummary -> Bool)
-> (WorkloadSummary -> WorkloadSummary -> Bool)
-> Eq WorkloadSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: WorkloadSummary -> WorkloadSummary -> Bool
$c/= :: WorkloadSummary -> WorkloadSummary -> Bool
== :: WorkloadSummary -> WorkloadSummary -> Bool
$c== :: WorkloadSummary -> WorkloadSummary -> Bool
Prelude.Eq, ReadPrec [WorkloadSummary]
ReadPrec WorkloadSummary
Int -> ReadS WorkloadSummary
ReadS [WorkloadSummary]
(Int -> ReadS WorkloadSummary)
-> ReadS [WorkloadSummary]
-> ReadPrec WorkloadSummary
-> ReadPrec [WorkloadSummary]
-> Read WorkloadSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [WorkloadSummary]
$creadListPrec :: ReadPrec [WorkloadSummary]
readPrec :: ReadPrec WorkloadSummary
$creadPrec :: ReadPrec WorkloadSummary
readList :: ReadS [WorkloadSummary]
$creadList :: ReadS [WorkloadSummary]
readsPrec :: Int -> ReadS WorkloadSummary
$creadsPrec :: Int -> ReadS WorkloadSummary
Prelude.Read, Int -> WorkloadSummary -> ShowS
[WorkloadSummary] -> ShowS
WorkloadSummary -> String
(Int -> WorkloadSummary -> ShowS)
-> (WorkloadSummary -> String)
-> ([WorkloadSummary] -> ShowS)
-> Show WorkloadSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [WorkloadSummary] -> ShowS
$cshowList :: [WorkloadSummary] -> ShowS
show :: WorkloadSummary -> String
$cshow :: WorkloadSummary -> String
showsPrec :: Int -> WorkloadSummary -> ShowS
$cshowsPrec :: Int -> WorkloadSummary -> ShowS
Prelude.Show, (forall x. WorkloadSummary -> Rep WorkloadSummary x)
-> (forall x. Rep WorkloadSummary x -> WorkloadSummary)
-> Generic WorkloadSummary
forall x. Rep WorkloadSummary x -> WorkloadSummary
forall x. WorkloadSummary -> Rep WorkloadSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep WorkloadSummary x -> WorkloadSummary
$cfrom :: forall x. WorkloadSummary -> Rep WorkloadSummary x
Prelude.Generic)

-- |
-- Create a value of 'WorkloadSummary' 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:
--
-- 'lenses', 'workloadSummary_lenses' - Undocumented member.
--
-- 'riskCounts', 'workloadSummary_riskCounts' - Undocumented member.
--
-- 'owner', 'workloadSummary_owner' - Undocumented member.
--
-- 'improvementStatus', 'workloadSummary_improvementStatus' - Undocumented member.
--
-- 'workloadArn', 'workloadSummary_workloadArn' - Undocumented member.
--
-- 'workloadId', 'workloadSummary_workloadId' - Undocumented member.
--
-- 'workloadName', 'workloadSummary_workloadName' - Undocumented member.
--
-- 'updatedAt', 'workloadSummary_updatedAt' - Undocumented member.
newWorkloadSummary ::
  WorkloadSummary
newWorkloadSummary :: WorkloadSummary
newWorkloadSummary =
  WorkloadSummary' :: Maybe [Text]
-> Maybe (HashMap Risk Natural)
-> Maybe Text
-> Maybe WorkloadImprovementStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> WorkloadSummary
WorkloadSummary'
    { $sel:lenses:WorkloadSummary' :: Maybe [Text]
lenses = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:riskCounts:WorkloadSummary' :: Maybe (HashMap Risk Natural)
riskCounts = Maybe (HashMap Risk Natural)
forall a. Maybe a
Prelude.Nothing,
      $sel:owner:WorkloadSummary' :: Maybe Text
owner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:improvementStatus:WorkloadSummary' :: Maybe WorkloadImprovementStatus
improvementStatus = Maybe WorkloadImprovementStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:workloadArn:WorkloadSummary' :: Maybe Text
workloadArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:workloadId:WorkloadSummary' :: Maybe Text
workloadId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:workloadName:WorkloadSummary' :: Maybe Text
workloadName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:updatedAt:WorkloadSummary' :: Maybe POSIX
updatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing
    }

-- | Undocumented member.
workloadSummary_lenses :: Lens.Lens' WorkloadSummary (Prelude.Maybe [Prelude.Text])
workloadSummary_lenses :: (Maybe [Text] -> f (Maybe [Text]))
-> WorkloadSummary -> f WorkloadSummary
workloadSummary_lenses = (WorkloadSummary -> Maybe [Text])
-> (WorkloadSummary -> Maybe [Text] -> WorkloadSummary)
-> Lens
     WorkloadSummary WorkloadSummary (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkloadSummary' {Maybe [Text]
lenses :: Maybe [Text]
$sel:lenses:WorkloadSummary' :: WorkloadSummary -> Maybe [Text]
lenses} -> Maybe [Text]
lenses) (\s :: WorkloadSummary
s@WorkloadSummary' {} Maybe [Text]
a -> WorkloadSummary
s {$sel:lenses:WorkloadSummary' :: Maybe [Text]
lenses = Maybe [Text]
a} :: WorkloadSummary) ((Maybe [Text] -> f (Maybe [Text]))
 -> WorkloadSummary -> f WorkloadSummary)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> WorkloadSummary
-> f WorkloadSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Undocumented member.
workloadSummary_riskCounts :: Lens.Lens' WorkloadSummary (Prelude.Maybe (Prelude.HashMap Risk Prelude.Natural))
workloadSummary_riskCounts :: (Maybe (HashMap Risk Natural) -> f (Maybe (HashMap Risk Natural)))
-> WorkloadSummary -> f WorkloadSummary
workloadSummary_riskCounts = (WorkloadSummary -> Maybe (HashMap Risk Natural))
-> (WorkloadSummary
    -> Maybe (HashMap Risk Natural) -> WorkloadSummary)
-> Lens
     WorkloadSummary
     WorkloadSummary
     (Maybe (HashMap Risk Natural))
     (Maybe (HashMap Risk Natural))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkloadSummary' {Maybe (HashMap Risk Natural)
riskCounts :: Maybe (HashMap Risk Natural)
$sel:riskCounts:WorkloadSummary' :: WorkloadSummary -> Maybe (HashMap Risk Natural)
riskCounts} -> Maybe (HashMap Risk Natural)
riskCounts) (\s :: WorkloadSummary
s@WorkloadSummary' {} Maybe (HashMap Risk Natural)
a -> WorkloadSummary
s {$sel:riskCounts:WorkloadSummary' :: Maybe (HashMap Risk Natural)
riskCounts = Maybe (HashMap Risk Natural)
a} :: WorkloadSummary) ((Maybe (HashMap Risk Natural) -> f (Maybe (HashMap Risk Natural)))
 -> WorkloadSummary -> f WorkloadSummary)
-> ((Maybe (HashMap Risk Natural)
     -> f (Maybe (HashMap Risk Natural)))
    -> Maybe (HashMap Risk Natural)
    -> f (Maybe (HashMap Risk Natural)))
-> (Maybe (HashMap Risk Natural)
    -> f (Maybe (HashMap Risk Natural)))
-> WorkloadSummary
-> f WorkloadSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Risk Natural)
  (HashMap Risk Natural)
  (HashMap Risk Natural)
  (HashMap Risk Natural)
-> Iso
     (Maybe (HashMap Risk Natural))
     (Maybe (HashMap Risk Natural))
     (Maybe (HashMap Risk Natural))
     (Maybe (HashMap Risk Natural))
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 Risk Natural)
  (HashMap Risk Natural)
  (HashMap Risk Natural)
  (HashMap Risk Natural)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Undocumented member.
workloadSummary_owner :: Lens.Lens' WorkloadSummary (Prelude.Maybe Prelude.Text)
workloadSummary_owner :: (Maybe Text -> f (Maybe Text))
-> WorkloadSummary -> f WorkloadSummary
workloadSummary_owner = (WorkloadSummary -> Maybe Text)
-> (WorkloadSummary -> Maybe Text -> WorkloadSummary)
-> Lens WorkloadSummary WorkloadSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkloadSummary' {Maybe Text
owner :: Maybe Text
$sel:owner:WorkloadSummary' :: WorkloadSummary -> Maybe Text
owner} -> Maybe Text
owner) (\s :: WorkloadSummary
s@WorkloadSummary' {} Maybe Text
a -> WorkloadSummary
s {$sel:owner:WorkloadSummary' :: Maybe Text
owner = Maybe Text
a} :: WorkloadSummary)

-- | Undocumented member.
workloadSummary_improvementStatus :: Lens.Lens' WorkloadSummary (Prelude.Maybe WorkloadImprovementStatus)
workloadSummary_improvementStatus :: (Maybe WorkloadImprovementStatus
 -> f (Maybe WorkloadImprovementStatus))
-> WorkloadSummary -> f WorkloadSummary
workloadSummary_improvementStatus = (WorkloadSummary -> Maybe WorkloadImprovementStatus)
-> (WorkloadSummary
    -> Maybe WorkloadImprovementStatus -> WorkloadSummary)
-> Lens
     WorkloadSummary
     WorkloadSummary
     (Maybe WorkloadImprovementStatus)
     (Maybe WorkloadImprovementStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkloadSummary' {Maybe WorkloadImprovementStatus
improvementStatus :: Maybe WorkloadImprovementStatus
$sel:improvementStatus:WorkloadSummary' :: WorkloadSummary -> Maybe WorkloadImprovementStatus
improvementStatus} -> Maybe WorkloadImprovementStatus
improvementStatus) (\s :: WorkloadSummary
s@WorkloadSummary' {} Maybe WorkloadImprovementStatus
a -> WorkloadSummary
s {$sel:improvementStatus:WorkloadSummary' :: Maybe WorkloadImprovementStatus
improvementStatus = Maybe WorkloadImprovementStatus
a} :: WorkloadSummary)

-- | Undocumented member.
workloadSummary_workloadArn :: Lens.Lens' WorkloadSummary (Prelude.Maybe Prelude.Text)
workloadSummary_workloadArn :: (Maybe Text -> f (Maybe Text))
-> WorkloadSummary -> f WorkloadSummary
workloadSummary_workloadArn = (WorkloadSummary -> Maybe Text)
-> (WorkloadSummary -> Maybe Text -> WorkloadSummary)
-> Lens WorkloadSummary WorkloadSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkloadSummary' {Maybe Text
workloadArn :: Maybe Text
$sel:workloadArn:WorkloadSummary' :: WorkloadSummary -> Maybe Text
workloadArn} -> Maybe Text
workloadArn) (\s :: WorkloadSummary
s@WorkloadSummary' {} Maybe Text
a -> WorkloadSummary
s {$sel:workloadArn:WorkloadSummary' :: Maybe Text
workloadArn = Maybe Text
a} :: WorkloadSummary)

-- | Undocumented member.
workloadSummary_workloadId :: Lens.Lens' WorkloadSummary (Prelude.Maybe Prelude.Text)
workloadSummary_workloadId :: (Maybe Text -> f (Maybe Text))
-> WorkloadSummary -> f WorkloadSummary
workloadSummary_workloadId = (WorkloadSummary -> Maybe Text)
-> (WorkloadSummary -> Maybe Text -> WorkloadSummary)
-> Lens WorkloadSummary WorkloadSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkloadSummary' {Maybe Text
workloadId :: Maybe Text
$sel:workloadId:WorkloadSummary' :: WorkloadSummary -> Maybe Text
workloadId} -> Maybe Text
workloadId) (\s :: WorkloadSummary
s@WorkloadSummary' {} Maybe Text
a -> WorkloadSummary
s {$sel:workloadId:WorkloadSummary' :: Maybe Text
workloadId = Maybe Text
a} :: WorkloadSummary)

-- | Undocumented member.
workloadSummary_workloadName :: Lens.Lens' WorkloadSummary (Prelude.Maybe Prelude.Text)
workloadSummary_workloadName :: (Maybe Text -> f (Maybe Text))
-> WorkloadSummary -> f WorkloadSummary
workloadSummary_workloadName = (WorkloadSummary -> Maybe Text)
-> (WorkloadSummary -> Maybe Text -> WorkloadSummary)
-> Lens WorkloadSummary WorkloadSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkloadSummary' {Maybe Text
workloadName :: Maybe Text
$sel:workloadName:WorkloadSummary' :: WorkloadSummary -> Maybe Text
workloadName} -> Maybe Text
workloadName) (\s :: WorkloadSummary
s@WorkloadSummary' {} Maybe Text
a -> WorkloadSummary
s {$sel:workloadName:WorkloadSummary' :: Maybe Text
workloadName = Maybe Text
a} :: WorkloadSummary)

-- | Undocumented member.
workloadSummary_updatedAt :: Lens.Lens' WorkloadSummary (Prelude.Maybe Prelude.UTCTime)
workloadSummary_updatedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> WorkloadSummary -> f WorkloadSummary
workloadSummary_updatedAt = (WorkloadSummary -> Maybe POSIX)
-> (WorkloadSummary -> Maybe POSIX -> WorkloadSummary)
-> Lens WorkloadSummary WorkloadSummary (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkloadSummary' {Maybe POSIX
updatedAt :: Maybe POSIX
$sel:updatedAt:WorkloadSummary' :: WorkloadSummary -> Maybe POSIX
updatedAt} -> Maybe POSIX
updatedAt) (\s :: WorkloadSummary
s@WorkloadSummary' {} Maybe POSIX
a -> WorkloadSummary
s {$sel:updatedAt:WorkloadSummary' :: Maybe POSIX
updatedAt = Maybe POSIX
a} :: WorkloadSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> WorkloadSummary -> f WorkloadSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> WorkloadSummary
-> f WorkloadSummary
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 WorkloadSummary where
  parseJSON :: Value -> Parser WorkloadSummary
parseJSON =
    String
-> (Object -> Parser WorkloadSummary)
-> Value
-> Parser WorkloadSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"WorkloadSummary"
      ( \Object
x ->
          Maybe [Text]
-> Maybe (HashMap Risk Natural)
-> Maybe Text
-> Maybe WorkloadImprovementStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> WorkloadSummary
WorkloadSummary'
            (Maybe [Text]
 -> Maybe (HashMap Risk Natural)
 -> Maybe Text
 -> Maybe WorkloadImprovementStatus
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> WorkloadSummary)
-> Parser (Maybe [Text])
-> Parser
     (Maybe (HashMap Risk Natural)
      -> Maybe Text
      -> Maybe WorkloadImprovementStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> WorkloadSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Lenses" Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
            Parser
  (Maybe (HashMap Risk Natural)
   -> Maybe Text
   -> Maybe WorkloadImprovementStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> WorkloadSummary)
-> Parser (Maybe (HashMap Risk Natural))
-> Parser
     (Maybe Text
      -> Maybe WorkloadImprovementStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> WorkloadSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe (HashMap Risk Natural)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RiskCounts" Parser (Maybe (Maybe (HashMap Risk Natural)))
-> Maybe (HashMap Risk Natural)
-> Parser (Maybe (HashMap Risk Natural))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Risk Natural)
forall a. Monoid a => a
Prelude.mempty)
            Parser
  (Maybe Text
   -> Maybe WorkloadImprovementStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> WorkloadSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe WorkloadImprovementStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> WorkloadSummary)
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
"Owner")
            Parser
  (Maybe WorkloadImprovementStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> WorkloadSummary)
-> Parser (Maybe WorkloadImprovementStatus)
-> Parser
     (Maybe Text
      -> Maybe Text -> Maybe Text -> Maybe POSIX -> WorkloadSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe WorkloadImprovementStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ImprovementStatus")
            Parser
  (Maybe Text
   -> Maybe Text -> Maybe Text -> Maybe POSIX -> WorkloadSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text -> Maybe Text -> Maybe POSIX -> WorkloadSummary)
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
"WorkloadArn")
            Parser (Maybe Text -> Maybe Text -> Maybe POSIX -> WorkloadSummary)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe POSIX -> WorkloadSummary)
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
"WorkloadId")
            Parser (Maybe Text -> Maybe POSIX -> WorkloadSummary)
-> Parser (Maybe Text) -> Parser (Maybe POSIX -> WorkloadSummary)
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
"WorkloadName")
            Parser (Maybe POSIX -> WorkloadSummary)
-> Parser (Maybe POSIX) -> Parser WorkloadSummary
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
"UpdatedAt")
      )

instance Prelude.Hashable WorkloadSummary

instance Prelude.NFData WorkloadSummary