{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.SecurityHub.Types.PatchSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data PatchSummary = PatchSummary'
{
PatchSummary -> Maybe Text
operationEndTime :: Prelude.Maybe Prelude.Text,
PatchSummary -> Maybe Text
rebootOption :: Prelude.Maybe Prelude.Text,
PatchSummary -> Maybe Text
operation :: Prelude.Maybe Prelude.Text,
PatchSummary -> Maybe Int
installedRejectedCount :: Prelude.Maybe Prelude.Int,
PatchSummary -> Maybe Int
failedCount :: Prelude.Maybe Prelude.Int,
PatchSummary -> Maybe Int
installedOtherCount :: Prelude.Maybe Prelude.Int,
PatchSummary -> Maybe Int
missingCount :: Prelude.Maybe Prelude.Int,
PatchSummary -> Maybe Text
operationStartTime :: Prelude.Maybe Prelude.Text,
PatchSummary -> Maybe Int
installedCount :: Prelude.Maybe Prelude.Int,
PatchSummary -> Maybe Int
installedPendingReboot :: Prelude.Maybe Prelude.Int,
PatchSummary -> Text
id :: Prelude.Text
}
deriving (PatchSummary -> PatchSummary -> Bool
(PatchSummary -> PatchSummary -> Bool)
-> (PatchSummary -> PatchSummary -> Bool) -> Eq PatchSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PatchSummary -> PatchSummary -> Bool
$c/= :: PatchSummary -> PatchSummary -> Bool
== :: PatchSummary -> PatchSummary -> Bool
$c== :: PatchSummary -> PatchSummary -> Bool
Prelude.Eq, ReadPrec [PatchSummary]
ReadPrec PatchSummary
Int -> ReadS PatchSummary
ReadS [PatchSummary]
(Int -> ReadS PatchSummary)
-> ReadS [PatchSummary]
-> ReadPrec PatchSummary
-> ReadPrec [PatchSummary]
-> Read PatchSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PatchSummary]
$creadListPrec :: ReadPrec [PatchSummary]
readPrec :: ReadPrec PatchSummary
$creadPrec :: ReadPrec PatchSummary
readList :: ReadS [PatchSummary]
$creadList :: ReadS [PatchSummary]
readsPrec :: Int -> ReadS PatchSummary
$creadsPrec :: Int -> ReadS PatchSummary
Prelude.Read, Int -> PatchSummary -> ShowS
[PatchSummary] -> ShowS
PatchSummary -> String
(Int -> PatchSummary -> ShowS)
-> (PatchSummary -> String)
-> ([PatchSummary] -> ShowS)
-> Show PatchSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PatchSummary] -> ShowS
$cshowList :: [PatchSummary] -> ShowS
show :: PatchSummary -> String
$cshow :: PatchSummary -> String
showsPrec :: Int -> PatchSummary -> ShowS
$cshowsPrec :: Int -> PatchSummary -> ShowS
Prelude.Show, (forall x. PatchSummary -> Rep PatchSummary x)
-> (forall x. Rep PatchSummary x -> PatchSummary)
-> Generic PatchSummary
forall x. Rep PatchSummary x -> PatchSummary
forall x. PatchSummary -> Rep PatchSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PatchSummary x -> PatchSummary
$cfrom :: forall x. PatchSummary -> Rep PatchSummary x
Prelude.Generic)
newPatchSummary ::
Prelude.Text ->
PatchSummary
newPatchSummary :: Text -> PatchSummary
newPatchSummary Text
pId_ =
PatchSummary' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Text
-> PatchSummary
PatchSummary'
{ $sel:operationEndTime:PatchSummary' :: Maybe Text
operationEndTime = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:rebootOption:PatchSummary' :: Maybe Text
rebootOption = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:operation:PatchSummary' :: Maybe Text
operation = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:installedRejectedCount:PatchSummary' :: Maybe Int
installedRejectedCount = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:failedCount:PatchSummary' :: Maybe Int
failedCount = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:installedOtherCount:PatchSummary' :: Maybe Int
installedOtherCount = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:missingCount:PatchSummary' :: Maybe Int
missingCount = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:operationStartTime:PatchSummary' :: Maybe Text
operationStartTime = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:installedCount:PatchSummary' :: Maybe Int
installedCount = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:installedPendingReboot:PatchSummary' :: Maybe Int
installedPendingReboot = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:id:PatchSummary' :: Text
id = Text
pId_
}
patchSummary_operationEndTime :: Lens.Lens' PatchSummary (Prelude.Maybe Prelude.Text)
patchSummary_operationEndTime :: (Maybe Text -> f (Maybe Text)) -> PatchSummary -> f PatchSummary
patchSummary_operationEndTime = (PatchSummary -> Maybe Text)
-> (PatchSummary -> Maybe Text -> PatchSummary)
-> Lens PatchSummary PatchSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PatchSummary' {Maybe Text
operationEndTime :: Maybe Text
$sel:operationEndTime:PatchSummary' :: PatchSummary -> Maybe Text
operationEndTime} -> Maybe Text
operationEndTime) (\s :: PatchSummary
s@PatchSummary' {} Maybe Text
a -> PatchSummary
s {$sel:operationEndTime:PatchSummary' :: Maybe Text
operationEndTime = Maybe Text
a} :: PatchSummary)
patchSummary_rebootOption :: Lens.Lens' PatchSummary (Prelude.Maybe Prelude.Text)
patchSummary_rebootOption :: (Maybe Text -> f (Maybe Text)) -> PatchSummary -> f PatchSummary
patchSummary_rebootOption = (PatchSummary -> Maybe Text)
-> (PatchSummary -> Maybe Text -> PatchSummary)
-> Lens PatchSummary PatchSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PatchSummary' {Maybe Text
rebootOption :: Maybe Text
$sel:rebootOption:PatchSummary' :: PatchSummary -> Maybe Text
rebootOption} -> Maybe Text
rebootOption) (\s :: PatchSummary
s@PatchSummary' {} Maybe Text
a -> PatchSummary
s {$sel:rebootOption:PatchSummary' :: Maybe Text
rebootOption = Maybe Text
a} :: PatchSummary)
patchSummary_operation :: Lens.Lens' PatchSummary (Prelude.Maybe Prelude.Text)
patchSummary_operation :: (Maybe Text -> f (Maybe Text)) -> PatchSummary -> f PatchSummary
patchSummary_operation = (PatchSummary -> Maybe Text)
-> (PatchSummary -> Maybe Text -> PatchSummary)
-> Lens PatchSummary PatchSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PatchSummary' {Maybe Text
operation :: Maybe Text
$sel:operation:PatchSummary' :: PatchSummary -> Maybe Text
operation} -> Maybe Text
operation) (\s :: PatchSummary
s@PatchSummary' {} Maybe Text
a -> PatchSummary
s {$sel:operation:PatchSummary' :: Maybe Text
operation = Maybe Text
a} :: PatchSummary)
patchSummary_installedRejectedCount :: Lens.Lens' PatchSummary (Prelude.Maybe Prelude.Int)
patchSummary_installedRejectedCount :: (Maybe Int -> f (Maybe Int)) -> PatchSummary -> f PatchSummary
patchSummary_installedRejectedCount = (PatchSummary -> Maybe Int)
-> (PatchSummary -> Maybe Int -> PatchSummary)
-> Lens PatchSummary PatchSummary (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PatchSummary' {Maybe Int
installedRejectedCount :: Maybe Int
$sel:installedRejectedCount:PatchSummary' :: PatchSummary -> Maybe Int
installedRejectedCount} -> Maybe Int
installedRejectedCount) (\s :: PatchSummary
s@PatchSummary' {} Maybe Int
a -> PatchSummary
s {$sel:installedRejectedCount:PatchSummary' :: Maybe Int
installedRejectedCount = Maybe Int
a} :: PatchSummary)
patchSummary_failedCount :: Lens.Lens' PatchSummary (Prelude.Maybe Prelude.Int)
patchSummary_failedCount :: (Maybe Int -> f (Maybe Int)) -> PatchSummary -> f PatchSummary
patchSummary_failedCount = (PatchSummary -> Maybe Int)
-> (PatchSummary -> Maybe Int -> PatchSummary)
-> Lens PatchSummary PatchSummary (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PatchSummary' {Maybe Int
failedCount :: Maybe Int
$sel:failedCount:PatchSummary' :: PatchSummary -> Maybe Int
failedCount} -> Maybe Int
failedCount) (\s :: PatchSummary
s@PatchSummary' {} Maybe Int
a -> PatchSummary
s {$sel:failedCount:PatchSummary' :: Maybe Int
failedCount = Maybe Int
a} :: PatchSummary)
patchSummary_installedOtherCount :: Lens.Lens' PatchSummary (Prelude.Maybe Prelude.Int)
patchSummary_installedOtherCount :: (Maybe Int -> f (Maybe Int)) -> PatchSummary -> f PatchSummary
patchSummary_installedOtherCount = (PatchSummary -> Maybe Int)
-> (PatchSummary -> Maybe Int -> PatchSummary)
-> Lens PatchSummary PatchSummary (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PatchSummary' {Maybe Int
installedOtherCount :: Maybe Int
$sel:installedOtherCount:PatchSummary' :: PatchSummary -> Maybe Int
installedOtherCount} -> Maybe Int
installedOtherCount) (\s :: PatchSummary
s@PatchSummary' {} Maybe Int
a -> PatchSummary
s {$sel:installedOtherCount:PatchSummary' :: Maybe Int
installedOtherCount = Maybe Int
a} :: PatchSummary)
patchSummary_missingCount :: Lens.Lens' PatchSummary (Prelude.Maybe Prelude.Int)
patchSummary_missingCount :: (Maybe Int -> f (Maybe Int)) -> PatchSummary -> f PatchSummary
patchSummary_missingCount = (PatchSummary -> Maybe Int)
-> (PatchSummary -> Maybe Int -> PatchSummary)
-> Lens PatchSummary PatchSummary (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PatchSummary' {Maybe Int
missingCount :: Maybe Int
$sel:missingCount:PatchSummary' :: PatchSummary -> Maybe Int
missingCount} -> Maybe Int
missingCount) (\s :: PatchSummary
s@PatchSummary' {} Maybe Int
a -> PatchSummary
s {$sel:missingCount:PatchSummary' :: Maybe Int
missingCount = Maybe Int
a} :: PatchSummary)
patchSummary_operationStartTime :: Lens.Lens' PatchSummary (Prelude.Maybe Prelude.Text)
patchSummary_operationStartTime :: (Maybe Text -> f (Maybe Text)) -> PatchSummary -> f PatchSummary
patchSummary_operationStartTime = (PatchSummary -> Maybe Text)
-> (PatchSummary -> Maybe Text -> PatchSummary)
-> Lens PatchSummary PatchSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PatchSummary' {Maybe Text
operationStartTime :: Maybe Text
$sel:operationStartTime:PatchSummary' :: PatchSummary -> Maybe Text
operationStartTime} -> Maybe Text
operationStartTime) (\s :: PatchSummary
s@PatchSummary' {} Maybe Text
a -> PatchSummary
s {$sel:operationStartTime:PatchSummary' :: Maybe Text
operationStartTime = Maybe Text
a} :: PatchSummary)
patchSummary_installedCount :: Lens.Lens' PatchSummary (Prelude.Maybe Prelude.Int)
patchSummary_installedCount :: (Maybe Int -> f (Maybe Int)) -> PatchSummary -> f PatchSummary
patchSummary_installedCount = (PatchSummary -> Maybe Int)
-> (PatchSummary -> Maybe Int -> PatchSummary)
-> Lens PatchSummary PatchSummary (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PatchSummary' {Maybe Int
installedCount :: Maybe Int
$sel:installedCount:PatchSummary' :: PatchSummary -> Maybe Int
installedCount} -> Maybe Int
installedCount) (\s :: PatchSummary
s@PatchSummary' {} Maybe Int
a -> PatchSummary
s {$sel:installedCount:PatchSummary' :: Maybe Int
installedCount = Maybe Int
a} :: PatchSummary)
patchSummary_installedPendingReboot :: Lens.Lens' PatchSummary (Prelude.Maybe Prelude.Int)
patchSummary_installedPendingReboot :: (Maybe Int -> f (Maybe Int)) -> PatchSummary -> f PatchSummary
patchSummary_installedPendingReboot = (PatchSummary -> Maybe Int)
-> (PatchSummary -> Maybe Int -> PatchSummary)
-> Lens PatchSummary PatchSummary (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PatchSummary' {Maybe Int
installedPendingReboot :: Maybe Int
$sel:installedPendingReboot:PatchSummary' :: PatchSummary -> Maybe Int
installedPendingReboot} -> Maybe Int
installedPendingReboot) (\s :: PatchSummary
s@PatchSummary' {} Maybe Int
a -> PatchSummary
s {$sel:installedPendingReboot:PatchSummary' :: Maybe Int
installedPendingReboot = Maybe Int
a} :: PatchSummary)
patchSummary_id :: Lens.Lens' PatchSummary Prelude.Text
patchSummary_id :: (Text -> f Text) -> PatchSummary -> f PatchSummary
patchSummary_id = (PatchSummary -> Text)
-> (PatchSummary -> Text -> PatchSummary)
-> Lens PatchSummary PatchSummary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PatchSummary' {Text
id :: Text
$sel:id:PatchSummary' :: PatchSummary -> Text
id} -> Text
id) (\s :: PatchSummary
s@PatchSummary' {} Text
a -> PatchSummary
s {$sel:id:PatchSummary' :: Text
id = Text
a} :: PatchSummary)
instance Core.FromJSON PatchSummary where
parseJSON :: Value -> Parser PatchSummary
parseJSON =
String
-> (Object -> Parser PatchSummary) -> Value -> Parser PatchSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"PatchSummary"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Text
-> PatchSummary
PatchSummary'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Text
-> PatchSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Text
-> PatchSummary)
forall (f :: * -> *) a b. Functor 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
"OperationEndTime")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Text
-> PatchSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Text
-> PatchSummary)
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
"RebootOption")
Parser
(Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Text
-> PatchSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Text
-> PatchSummary)
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
"Operation")
Parser
(Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Text
-> PatchSummary)
-> Parser (Maybe Int)
-> Parser
(Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Text
-> PatchSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"InstalledRejectedCount")
Parser
(Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Text
-> PatchSummary)
-> Parser (Maybe Int)
-> Parser
(Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Text
-> PatchSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FailedCount")
Parser
(Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Text
-> PatchSummary)
-> Parser (Maybe Int)
-> Parser
(Maybe Int
-> Maybe Text -> Maybe Int -> Maybe Int -> Text -> PatchSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"InstalledOtherCount")
Parser
(Maybe Int
-> Maybe Text -> Maybe Int -> Maybe Int -> Text -> PatchSummary)
-> Parser (Maybe Int)
-> Parser
(Maybe Text -> Maybe Int -> Maybe Int -> Text -> PatchSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"MissingCount")
Parser
(Maybe Text -> Maybe Int -> Maybe Int -> Text -> PatchSummary)
-> Parser (Maybe Text)
-> Parser (Maybe Int -> Maybe Int -> Text -> PatchSummary)
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
"OperationStartTime")
Parser (Maybe Int -> Maybe Int -> Text -> PatchSummary)
-> Parser (Maybe Int) -> Parser (Maybe Int -> Text -> PatchSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"InstalledCount")
Parser (Maybe Int -> Text -> PatchSummary)
-> Parser (Maybe Int) -> Parser (Text -> PatchSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"InstalledPendingReboot")
Parser (Text -> PatchSummary) -> Parser Text -> Parser PatchSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"Id")
)
instance Prelude.Hashable PatchSummary
instance Prelude.NFData PatchSummary
instance Core.ToJSON PatchSummary where
toJSON :: PatchSummary -> Value
toJSON PatchSummary' {Maybe Int
Maybe Text
Text
id :: Text
installedPendingReboot :: Maybe Int
installedCount :: Maybe Int
operationStartTime :: Maybe Text
missingCount :: Maybe Int
installedOtherCount :: Maybe Int
failedCount :: Maybe Int
installedRejectedCount :: Maybe Int
operation :: Maybe Text
rebootOption :: Maybe Text
operationEndTime :: Maybe Text
$sel:id:PatchSummary' :: PatchSummary -> Text
$sel:installedPendingReboot:PatchSummary' :: PatchSummary -> Maybe Int
$sel:installedCount:PatchSummary' :: PatchSummary -> Maybe Int
$sel:operationStartTime:PatchSummary' :: PatchSummary -> Maybe Text
$sel:missingCount:PatchSummary' :: PatchSummary -> Maybe Int
$sel:installedOtherCount:PatchSummary' :: PatchSummary -> Maybe Int
$sel:failedCount:PatchSummary' :: PatchSummary -> Maybe Int
$sel:installedRejectedCount:PatchSummary' :: PatchSummary -> Maybe Int
$sel:operation:PatchSummary' :: PatchSummary -> Maybe Text
$sel:rebootOption:PatchSummary' :: PatchSummary -> Maybe Text
$sel:operationEndTime:PatchSummary' :: PatchSummary -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"OperationEndTime" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
operationEndTime,
(Text
"RebootOption" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
rebootOption,
(Text
"Operation" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
operation,
(Text
"InstalledRejectedCount" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
installedRejectedCount,
(Text
"FailedCount" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
failedCount,
(Text
"InstalledOtherCount" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
installedOtherCount,
(Text
"MissingCount" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
missingCount,
(Text
"OperationStartTime" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
operationStartTime,
(Text
"InstalledCount" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
installedCount,
(Text
"InstalledPendingReboot" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
installedPendingReboot,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Id" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
id)
]
)