{-# 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.Lens as Lens
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
(DocumentMetadataResponseInfo
-> DocumentMetadataResponseInfo -> Bool)
-> (DocumentMetadataResponseInfo
-> DocumentMetadataResponseInfo -> Bool)
-> Eq DocumentMetadataResponseInfo
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]
(Int -> ReadS DocumentMetadataResponseInfo)
-> ReadS [DocumentMetadataResponseInfo]
-> ReadPrec DocumentMetadataResponseInfo
-> ReadPrec [DocumentMetadataResponseInfo]
-> Read 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
(Int -> DocumentMetadataResponseInfo -> ShowS)
-> (DocumentMetadataResponseInfo -> String)
-> ([DocumentMetadataResponseInfo] -> ShowS)
-> Show DocumentMetadataResponseInfo
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.
DocumentMetadataResponseInfo -> Rep DocumentMetadataResponseInfo x)
-> (forall x.
Rep DocumentMetadataResponseInfo x -> DocumentMetadataResponseInfo)
-> Generic DocumentMetadataResponseInfo
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' :: Maybe [DocumentReviewerResponseSource]
-> DocumentMetadataResponseInfo
DocumentMetadataResponseInfo'
{ $sel:reviewerResponse:DocumentMetadataResponseInfo' :: Maybe [DocumentReviewerResponseSource]
reviewerResponse =
Maybe [DocumentReviewerResponseSource]
forall a. Maybe a
Prelude.Nothing
}
documentMetadataResponseInfo_reviewerResponse :: Lens.Lens' DocumentMetadataResponseInfo (Prelude.Maybe [DocumentReviewerResponseSource])
documentMetadataResponseInfo_reviewerResponse :: (Maybe [DocumentReviewerResponseSource]
-> f (Maybe [DocumentReviewerResponseSource]))
-> DocumentMetadataResponseInfo -> f DocumentMetadataResponseInfo
documentMetadataResponseInfo_reviewerResponse = (DocumentMetadataResponseInfo
-> Maybe [DocumentReviewerResponseSource])
-> (DocumentMetadataResponseInfo
-> Maybe [DocumentReviewerResponseSource]
-> DocumentMetadataResponseInfo)
-> Lens
DocumentMetadataResponseInfo
DocumentMetadataResponseInfo
(Maybe [DocumentReviewerResponseSource])
(Maybe [DocumentReviewerResponseSource])
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) ((Maybe [DocumentReviewerResponseSource]
-> f (Maybe [DocumentReviewerResponseSource]))
-> DocumentMetadataResponseInfo -> f DocumentMetadataResponseInfo)
-> ((Maybe [DocumentReviewerResponseSource]
-> f (Maybe [DocumentReviewerResponseSource]))
-> Maybe [DocumentReviewerResponseSource]
-> f (Maybe [DocumentReviewerResponseSource]))
-> (Maybe [DocumentReviewerResponseSource]
-> f (Maybe [DocumentReviewerResponseSource]))
-> DocumentMetadataResponseInfo
-> f DocumentMetadataResponseInfo
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[DocumentReviewerResponseSource]
[DocumentReviewerResponseSource]
[DocumentReviewerResponseSource]
[DocumentReviewerResponseSource]
-> Iso
(Maybe [DocumentReviewerResponseSource])
(Maybe [DocumentReviewerResponseSource])
(Maybe [DocumentReviewerResponseSource])
(Maybe [DocumentReviewerResponseSource])
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
[DocumentReviewerResponseSource]
[DocumentReviewerResponseSource]
[DocumentReviewerResponseSource]
[DocumentReviewerResponseSource]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.FromJSON DocumentMetadataResponseInfo where
parseJSON :: Value -> Parser DocumentMetadataResponseInfo
parseJSON =
String
-> (Object -> Parser DocumentMetadataResponseInfo)
-> Value
-> Parser DocumentMetadataResponseInfo
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"DocumentMetadataResponseInfo"
( \Object
x ->
Maybe [DocumentReviewerResponseSource]
-> DocumentMetadataResponseInfo
DocumentMetadataResponseInfo'
(Maybe [DocumentReviewerResponseSource]
-> DocumentMetadataResponseInfo)
-> Parser (Maybe [DocumentReviewerResponseSource])
-> Parser DocumentMetadataResponseInfo
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Parser (Maybe (Maybe [DocumentReviewerResponseSource]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ReviewerResponse"
Parser (Maybe (Maybe [DocumentReviewerResponseSource]))
-> Maybe [DocumentReviewerResponseSource]
-> Parser (Maybe [DocumentReviewerResponseSource])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [DocumentReviewerResponseSource]
forall a. Monoid a => a
Prelude.mempty
)
)
instance
Prelude.Hashable
DocumentMetadataResponseInfo
instance Prelude.NFData DocumentMetadataResponseInfo