{-# 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.SSM.Types.DocumentMetadataResponseInfo where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.SSM.Types.DocumentReviewerResponseSource
data DocumentMetadataResponseInfo = DocumentMetadataResponseInfo'
{
DocumentMetadataResponseInfo
-> Maybe [DocumentReviewerResponseSource]
reviewerResponse :: Prelude.Maybe [DocumentReviewerResponseSource]
}
deriving (DocumentMetadataResponseInfo
-> DocumentMetadataResponseInfo -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DocumentMetadataResponseInfo
-> DocumentMetadataResponseInfo -> Bool
$c/= :: DocumentMetadataResponseInfo
-> DocumentMetadataResponseInfo -> Bool
== :: DocumentMetadataResponseInfo
-> DocumentMetadataResponseInfo -> Bool
$c== :: DocumentMetadataResponseInfo
-> DocumentMetadataResponseInfo -> Bool
Prelude.Eq, ReadPrec [DocumentMetadataResponseInfo]
ReadPrec DocumentMetadataResponseInfo
Int -> ReadS DocumentMetadataResponseInfo
ReadS [DocumentMetadataResponseInfo]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DocumentMetadataResponseInfo]
$creadListPrec :: ReadPrec [DocumentMetadataResponseInfo]
readPrec :: ReadPrec DocumentMetadataResponseInfo
$creadPrec :: ReadPrec DocumentMetadataResponseInfo
readList :: ReadS [DocumentMetadataResponseInfo]
$creadList :: ReadS [DocumentMetadataResponseInfo]
readsPrec :: Int -> ReadS DocumentMetadataResponseInfo
$creadsPrec :: Int -> ReadS DocumentMetadataResponseInfo
Prelude.Read, Int -> DocumentMetadataResponseInfo -> ShowS
[DocumentMetadataResponseInfo] -> ShowS
DocumentMetadataResponseInfo -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DocumentMetadataResponseInfo] -> ShowS
$cshowList :: [DocumentMetadataResponseInfo] -> ShowS
show :: DocumentMetadataResponseInfo -> String
$cshow :: DocumentMetadataResponseInfo -> String
showsPrec :: Int -> DocumentMetadataResponseInfo -> ShowS
$cshowsPrec :: Int -> DocumentMetadataResponseInfo -> ShowS
Prelude.Show, forall x.
Rep DocumentMetadataResponseInfo x -> DocumentMetadataResponseInfo
forall x.
DocumentMetadataResponseInfo -> Rep DocumentMetadataResponseInfo x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DocumentMetadataResponseInfo x -> DocumentMetadataResponseInfo
$cfrom :: forall x.
DocumentMetadataResponseInfo -> Rep DocumentMetadataResponseInfo x
Prelude.Generic)
newDocumentMetadataResponseInfo ::
DocumentMetadataResponseInfo
newDocumentMetadataResponseInfo :: DocumentMetadataResponseInfo
newDocumentMetadataResponseInfo =
DocumentMetadataResponseInfo'
{ $sel:reviewerResponse:DocumentMetadataResponseInfo' :: Maybe [DocumentReviewerResponseSource]
reviewerResponse =
forall a. Maybe a
Prelude.Nothing
}
documentMetadataResponseInfo_reviewerResponse :: Lens.Lens' DocumentMetadataResponseInfo (Prelude.Maybe [DocumentReviewerResponseSource])
documentMetadataResponseInfo_reviewerResponse :: Lens'
DocumentMetadataResponseInfo
(Maybe [DocumentReviewerResponseSource])
documentMetadataResponseInfo_reviewerResponse = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DocumentMetadataResponseInfo' {Maybe [DocumentReviewerResponseSource]
reviewerResponse :: Maybe [DocumentReviewerResponseSource]
$sel:reviewerResponse:DocumentMetadataResponseInfo' :: DocumentMetadataResponseInfo
-> Maybe [DocumentReviewerResponseSource]
reviewerResponse} -> Maybe [DocumentReviewerResponseSource]
reviewerResponse) (\s :: DocumentMetadataResponseInfo
s@DocumentMetadataResponseInfo' {} Maybe [DocumentReviewerResponseSource]
a -> DocumentMetadataResponseInfo
s {$sel:reviewerResponse:DocumentMetadataResponseInfo' :: Maybe [DocumentReviewerResponseSource]
reviewerResponse = Maybe [DocumentReviewerResponseSource]
a} :: DocumentMetadataResponseInfo) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Data.FromJSON DocumentMetadataResponseInfo where
parseJSON :: Value -> Parser DocumentMetadataResponseInfo
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"DocumentMetadataResponseInfo"
( \Object
x ->
Maybe [DocumentReviewerResponseSource]
-> DocumentMetadataResponseInfo
DocumentMetadataResponseInfo'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ReviewerResponse"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
)
instance
Prelude.Hashable
DocumentMetadataResponseInfo
where
hashWithSalt :: Int -> DocumentMetadataResponseInfo -> Int
hashWithSalt Int
_salt DocumentMetadataResponseInfo' {Maybe [DocumentReviewerResponseSource]
reviewerResponse :: Maybe [DocumentReviewerResponseSource]
$sel:reviewerResponse:DocumentMetadataResponseInfo' :: DocumentMetadataResponseInfo
-> Maybe [DocumentReviewerResponseSource]
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [DocumentReviewerResponseSource]
reviewerResponse
instance Prelude.NFData DocumentMetadataResponseInfo where
rnf :: DocumentMetadataResponseInfo -> ()
rnf DocumentMetadataResponseInfo' {Maybe [DocumentReviewerResponseSource]
reviewerResponse :: Maybe [DocumentReviewerResponseSource]
$sel:reviewerResponse:DocumentMetadataResponseInfo' :: DocumentMetadataResponseInfo
-> Maybe [DocumentReviewerResponseSource]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [DocumentReviewerResponseSource]
reviewerResponse