{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.AuditManager.BatchAssociateAssessmentReportEvidence
(
BatchAssociateAssessmentReportEvidence (..),
newBatchAssociateAssessmentReportEvidence,
batchAssociateAssessmentReportEvidence_assessmentId,
batchAssociateAssessmentReportEvidence_evidenceFolderId,
batchAssociateAssessmentReportEvidence_evidenceIds,
BatchAssociateAssessmentReportEvidenceResponse (..),
newBatchAssociateAssessmentReportEvidenceResponse,
batchAssociateAssessmentReportEvidenceResponse_evidenceIds,
batchAssociateAssessmentReportEvidenceResponse_errors,
batchAssociateAssessmentReportEvidenceResponse_httpStatus,
)
where
import Amazonka.AuditManager.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data BatchAssociateAssessmentReportEvidence = BatchAssociateAssessmentReportEvidence'
{
BatchAssociateAssessmentReportEvidence -> Text
assessmentId :: Prelude.Text,
BatchAssociateAssessmentReportEvidence -> Text
evidenceFolderId :: Prelude.Text,
BatchAssociateAssessmentReportEvidence -> [Text]
evidenceIds :: [Prelude.Text]
}
deriving (BatchAssociateAssessmentReportEvidence
-> BatchAssociateAssessmentReportEvidence -> Bool
(BatchAssociateAssessmentReportEvidence
-> BatchAssociateAssessmentReportEvidence -> Bool)
-> (BatchAssociateAssessmentReportEvidence
-> BatchAssociateAssessmentReportEvidence -> Bool)
-> Eq BatchAssociateAssessmentReportEvidence
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchAssociateAssessmentReportEvidence
-> BatchAssociateAssessmentReportEvidence -> Bool
$c/= :: BatchAssociateAssessmentReportEvidence
-> BatchAssociateAssessmentReportEvidence -> Bool
== :: BatchAssociateAssessmentReportEvidence
-> BatchAssociateAssessmentReportEvidence -> Bool
$c== :: BatchAssociateAssessmentReportEvidence
-> BatchAssociateAssessmentReportEvidence -> Bool
Prelude.Eq, ReadPrec [BatchAssociateAssessmentReportEvidence]
ReadPrec BatchAssociateAssessmentReportEvidence
Int -> ReadS BatchAssociateAssessmentReportEvidence
ReadS [BatchAssociateAssessmentReportEvidence]
(Int -> ReadS BatchAssociateAssessmentReportEvidence)
-> ReadS [BatchAssociateAssessmentReportEvidence]
-> ReadPrec BatchAssociateAssessmentReportEvidence
-> ReadPrec [BatchAssociateAssessmentReportEvidence]
-> Read BatchAssociateAssessmentReportEvidence
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchAssociateAssessmentReportEvidence]
$creadListPrec :: ReadPrec [BatchAssociateAssessmentReportEvidence]
readPrec :: ReadPrec BatchAssociateAssessmentReportEvidence
$creadPrec :: ReadPrec BatchAssociateAssessmentReportEvidence
readList :: ReadS [BatchAssociateAssessmentReportEvidence]
$creadList :: ReadS [BatchAssociateAssessmentReportEvidence]
readsPrec :: Int -> ReadS BatchAssociateAssessmentReportEvidence
$creadsPrec :: Int -> ReadS BatchAssociateAssessmentReportEvidence
Prelude.Read, Int -> BatchAssociateAssessmentReportEvidence -> ShowS
[BatchAssociateAssessmentReportEvidence] -> ShowS
BatchAssociateAssessmentReportEvidence -> String
(Int -> BatchAssociateAssessmentReportEvidence -> ShowS)
-> (BatchAssociateAssessmentReportEvidence -> String)
-> ([BatchAssociateAssessmentReportEvidence] -> ShowS)
-> Show BatchAssociateAssessmentReportEvidence
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchAssociateAssessmentReportEvidence] -> ShowS
$cshowList :: [BatchAssociateAssessmentReportEvidence] -> ShowS
show :: BatchAssociateAssessmentReportEvidence -> String
$cshow :: BatchAssociateAssessmentReportEvidence -> String
showsPrec :: Int -> BatchAssociateAssessmentReportEvidence -> ShowS
$cshowsPrec :: Int -> BatchAssociateAssessmentReportEvidence -> ShowS
Prelude.Show, (forall x.
BatchAssociateAssessmentReportEvidence
-> Rep BatchAssociateAssessmentReportEvidence x)
-> (forall x.
Rep BatchAssociateAssessmentReportEvidence x
-> BatchAssociateAssessmentReportEvidence)
-> Generic BatchAssociateAssessmentReportEvidence
forall x.
Rep BatchAssociateAssessmentReportEvidence x
-> BatchAssociateAssessmentReportEvidence
forall x.
BatchAssociateAssessmentReportEvidence
-> Rep BatchAssociateAssessmentReportEvidence x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchAssociateAssessmentReportEvidence x
-> BatchAssociateAssessmentReportEvidence
$cfrom :: forall x.
BatchAssociateAssessmentReportEvidence
-> Rep BatchAssociateAssessmentReportEvidence x
Prelude.Generic)
newBatchAssociateAssessmentReportEvidence ::
Prelude.Text ->
Prelude.Text ->
BatchAssociateAssessmentReportEvidence
newBatchAssociateAssessmentReportEvidence :: Text -> Text -> BatchAssociateAssessmentReportEvidence
newBatchAssociateAssessmentReportEvidence
Text
pAssessmentId_
Text
pEvidenceFolderId_ =
BatchAssociateAssessmentReportEvidence' :: Text -> Text -> [Text] -> BatchAssociateAssessmentReportEvidence
BatchAssociateAssessmentReportEvidence'
{ $sel:assessmentId:BatchAssociateAssessmentReportEvidence' :: Text
assessmentId =
Text
pAssessmentId_,
$sel:evidenceFolderId:BatchAssociateAssessmentReportEvidence' :: Text
evidenceFolderId =
Text
pEvidenceFolderId_,
$sel:evidenceIds:BatchAssociateAssessmentReportEvidence' :: [Text]
evidenceIds = [Text]
forall a. Monoid a => a
Prelude.mempty
}
batchAssociateAssessmentReportEvidence_assessmentId :: Lens.Lens' BatchAssociateAssessmentReportEvidence Prelude.Text
batchAssociateAssessmentReportEvidence_assessmentId :: (Text -> f Text)
-> BatchAssociateAssessmentReportEvidence
-> f BatchAssociateAssessmentReportEvidence
batchAssociateAssessmentReportEvidence_assessmentId = (BatchAssociateAssessmentReportEvidence -> Text)
-> (BatchAssociateAssessmentReportEvidence
-> Text -> BatchAssociateAssessmentReportEvidence)
-> Lens
BatchAssociateAssessmentReportEvidence
BatchAssociateAssessmentReportEvidence
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAssociateAssessmentReportEvidence' {Text
assessmentId :: Text
$sel:assessmentId:BatchAssociateAssessmentReportEvidence' :: BatchAssociateAssessmentReportEvidence -> Text
assessmentId} -> Text
assessmentId) (\s :: BatchAssociateAssessmentReportEvidence
s@BatchAssociateAssessmentReportEvidence' {} Text
a -> BatchAssociateAssessmentReportEvidence
s {$sel:assessmentId:BatchAssociateAssessmentReportEvidence' :: Text
assessmentId = Text
a} :: BatchAssociateAssessmentReportEvidence)
batchAssociateAssessmentReportEvidence_evidenceFolderId :: Lens.Lens' BatchAssociateAssessmentReportEvidence Prelude.Text
batchAssociateAssessmentReportEvidence_evidenceFolderId :: (Text -> f Text)
-> BatchAssociateAssessmentReportEvidence
-> f BatchAssociateAssessmentReportEvidence
batchAssociateAssessmentReportEvidence_evidenceFolderId = (BatchAssociateAssessmentReportEvidence -> Text)
-> (BatchAssociateAssessmentReportEvidence
-> Text -> BatchAssociateAssessmentReportEvidence)
-> Lens
BatchAssociateAssessmentReportEvidence
BatchAssociateAssessmentReportEvidence
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAssociateAssessmentReportEvidence' {Text
evidenceFolderId :: Text
$sel:evidenceFolderId:BatchAssociateAssessmentReportEvidence' :: BatchAssociateAssessmentReportEvidence -> Text
evidenceFolderId} -> Text
evidenceFolderId) (\s :: BatchAssociateAssessmentReportEvidence
s@BatchAssociateAssessmentReportEvidence' {} Text
a -> BatchAssociateAssessmentReportEvidence
s {$sel:evidenceFolderId:BatchAssociateAssessmentReportEvidence' :: Text
evidenceFolderId = Text
a} :: BatchAssociateAssessmentReportEvidence)
batchAssociateAssessmentReportEvidence_evidenceIds :: Lens.Lens' BatchAssociateAssessmentReportEvidence [Prelude.Text]
batchAssociateAssessmentReportEvidence_evidenceIds :: ([Text] -> f [Text])
-> BatchAssociateAssessmentReportEvidence
-> f BatchAssociateAssessmentReportEvidence
batchAssociateAssessmentReportEvidence_evidenceIds = (BatchAssociateAssessmentReportEvidence -> [Text])
-> (BatchAssociateAssessmentReportEvidence
-> [Text] -> BatchAssociateAssessmentReportEvidence)
-> Lens
BatchAssociateAssessmentReportEvidence
BatchAssociateAssessmentReportEvidence
[Text]
[Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAssociateAssessmentReportEvidence' {[Text]
evidenceIds :: [Text]
$sel:evidenceIds:BatchAssociateAssessmentReportEvidence' :: BatchAssociateAssessmentReportEvidence -> [Text]
evidenceIds} -> [Text]
evidenceIds) (\s :: BatchAssociateAssessmentReportEvidence
s@BatchAssociateAssessmentReportEvidence' {} [Text]
a -> BatchAssociateAssessmentReportEvidence
s {$sel:evidenceIds:BatchAssociateAssessmentReportEvidence' :: [Text]
evidenceIds = [Text]
a} :: BatchAssociateAssessmentReportEvidence) (([Text] -> f [Text])
-> BatchAssociateAssessmentReportEvidence
-> f BatchAssociateAssessmentReportEvidence)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> BatchAssociateAssessmentReportEvidence
-> f BatchAssociateAssessmentReportEvidence
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Core.AWSRequest
BatchAssociateAssessmentReportEvidence
where
type
AWSResponse
BatchAssociateAssessmentReportEvidence =
BatchAssociateAssessmentReportEvidenceResponse
request :: BatchAssociateAssessmentReportEvidence
-> Request BatchAssociateAssessmentReportEvidence
request = Service
-> BatchAssociateAssessmentReportEvidence
-> Request BatchAssociateAssessmentReportEvidence
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
response :: Logger
-> Service
-> Proxy BatchAssociateAssessmentReportEvidence
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse BatchAssociateAssessmentReportEvidence)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either
String (AWSResponse BatchAssociateAssessmentReportEvidence))
-> Logger
-> Service
-> Proxy BatchAssociateAssessmentReportEvidence
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse BatchAssociateAssessmentReportEvidence)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe [Text]
-> Maybe [AssessmentReportEvidenceError]
-> Int
-> BatchAssociateAssessmentReportEvidenceResponse
BatchAssociateAssessmentReportEvidenceResponse'
(Maybe [Text]
-> Maybe [AssessmentReportEvidenceError]
-> Int
-> BatchAssociateAssessmentReportEvidenceResponse)
-> Either String (Maybe [Text])
-> Either
String
(Maybe [AssessmentReportEvidenceError]
-> Int -> BatchAssociateAssessmentReportEvidenceResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"evidenceIds" Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe [AssessmentReportEvidenceError]
-> Int -> BatchAssociateAssessmentReportEvidenceResponse)
-> Either String (Maybe [AssessmentReportEvidenceError])
-> Either
String (Int -> BatchAssociateAssessmentReportEvidenceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Either String (Maybe (Maybe [AssessmentReportEvidenceError]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"errors" Either String (Maybe (Maybe [AssessmentReportEvidenceError]))
-> Maybe [AssessmentReportEvidenceError]
-> Either String (Maybe [AssessmentReportEvidenceError])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [AssessmentReportEvidenceError]
forall a. Monoid a => a
Prelude.mempty)
Either
String (Int -> BatchAssociateAssessmentReportEvidenceResponse)
-> Either String Int
-> Either String BatchAssociateAssessmentReportEvidenceResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
BatchAssociateAssessmentReportEvidence
instance
Prelude.NFData
BatchAssociateAssessmentReportEvidence
instance
Core.ToHeaders
BatchAssociateAssessmentReportEvidence
where
toHeaders :: BatchAssociateAssessmentReportEvidence -> ResponseHeaders
toHeaders =
ResponseHeaders
-> BatchAssociateAssessmentReportEvidence -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance
Core.ToJSON
BatchAssociateAssessmentReportEvidence
where
toJSON :: BatchAssociateAssessmentReportEvidence -> Value
toJSON BatchAssociateAssessmentReportEvidence' {[Text]
Text
evidenceIds :: [Text]
evidenceFolderId :: Text
assessmentId :: Text
$sel:evidenceIds:BatchAssociateAssessmentReportEvidence' :: BatchAssociateAssessmentReportEvidence -> [Text]
$sel:evidenceFolderId:BatchAssociateAssessmentReportEvidence' :: BatchAssociateAssessmentReportEvidence -> Text
$sel:assessmentId:BatchAssociateAssessmentReportEvidence' :: BatchAssociateAssessmentReportEvidence -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"evidenceFolderId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
evidenceFolderId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"evidenceIds" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Text]
evidenceIds)
]
)
instance
Core.ToPath
BatchAssociateAssessmentReportEvidence
where
toPath :: BatchAssociateAssessmentReportEvidence -> ByteString
toPath BatchAssociateAssessmentReportEvidence' {[Text]
Text
evidenceIds :: [Text]
evidenceFolderId :: Text
assessmentId :: Text
$sel:evidenceIds:BatchAssociateAssessmentReportEvidence' :: BatchAssociateAssessmentReportEvidence -> [Text]
$sel:evidenceFolderId:BatchAssociateAssessmentReportEvidence' :: BatchAssociateAssessmentReportEvidence -> Text
$sel:assessmentId:BatchAssociateAssessmentReportEvidence' :: BatchAssociateAssessmentReportEvidence -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/assessments/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
assessmentId,
ByteString
"/batchAssociateToAssessmentReport"
]
instance
Core.ToQuery
BatchAssociateAssessmentReportEvidence
where
toQuery :: BatchAssociateAssessmentReportEvidence -> QueryString
toQuery = QueryString
-> BatchAssociateAssessmentReportEvidence -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data BatchAssociateAssessmentReportEvidenceResponse = BatchAssociateAssessmentReportEvidenceResponse'
{
BatchAssociateAssessmentReportEvidenceResponse -> Maybe [Text]
evidenceIds :: Prelude.Maybe [Prelude.Text],
BatchAssociateAssessmentReportEvidenceResponse
-> Maybe [AssessmentReportEvidenceError]
errors :: Prelude.Maybe [AssessmentReportEvidenceError],
BatchAssociateAssessmentReportEvidenceResponse -> Int
httpStatus :: Prelude.Int
}
deriving (BatchAssociateAssessmentReportEvidenceResponse
-> BatchAssociateAssessmentReportEvidenceResponse -> Bool
(BatchAssociateAssessmentReportEvidenceResponse
-> BatchAssociateAssessmentReportEvidenceResponse -> Bool)
-> (BatchAssociateAssessmentReportEvidenceResponse
-> BatchAssociateAssessmentReportEvidenceResponse -> Bool)
-> Eq BatchAssociateAssessmentReportEvidenceResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchAssociateAssessmentReportEvidenceResponse
-> BatchAssociateAssessmentReportEvidenceResponse -> Bool
$c/= :: BatchAssociateAssessmentReportEvidenceResponse
-> BatchAssociateAssessmentReportEvidenceResponse -> Bool
== :: BatchAssociateAssessmentReportEvidenceResponse
-> BatchAssociateAssessmentReportEvidenceResponse -> Bool
$c== :: BatchAssociateAssessmentReportEvidenceResponse
-> BatchAssociateAssessmentReportEvidenceResponse -> Bool
Prelude.Eq, ReadPrec [BatchAssociateAssessmentReportEvidenceResponse]
ReadPrec BatchAssociateAssessmentReportEvidenceResponse
Int -> ReadS BatchAssociateAssessmentReportEvidenceResponse
ReadS [BatchAssociateAssessmentReportEvidenceResponse]
(Int -> ReadS BatchAssociateAssessmentReportEvidenceResponse)
-> ReadS [BatchAssociateAssessmentReportEvidenceResponse]
-> ReadPrec BatchAssociateAssessmentReportEvidenceResponse
-> ReadPrec [BatchAssociateAssessmentReportEvidenceResponse]
-> Read BatchAssociateAssessmentReportEvidenceResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchAssociateAssessmentReportEvidenceResponse]
$creadListPrec :: ReadPrec [BatchAssociateAssessmentReportEvidenceResponse]
readPrec :: ReadPrec BatchAssociateAssessmentReportEvidenceResponse
$creadPrec :: ReadPrec BatchAssociateAssessmentReportEvidenceResponse
readList :: ReadS [BatchAssociateAssessmentReportEvidenceResponse]
$creadList :: ReadS [BatchAssociateAssessmentReportEvidenceResponse]
readsPrec :: Int -> ReadS BatchAssociateAssessmentReportEvidenceResponse
$creadsPrec :: Int -> ReadS BatchAssociateAssessmentReportEvidenceResponse
Prelude.Read, Int -> BatchAssociateAssessmentReportEvidenceResponse -> ShowS
[BatchAssociateAssessmentReportEvidenceResponse] -> ShowS
BatchAssociateAssessmentReportEvidenceResponse -> String
(Int -> BatchAssociateAssessmentReportEvidenceResponse -> ShowS)
-> (BatchAssociateAssessmentReportEvidenceResponse -> String)
-> ([BatchAssociateAssessmentReportEvidenceResponse] -> ShowS)
-> Show BatchAssociateAssessmentReportEvidenceResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchAssociateAssessmentReportEvidenceResponse] -> ShowS
$cshowList :: [BatchAssociateAssessmentReportEvidenceResponse] -> ShowS
show :: BatchAssociateAssessmentReportEvidenceResponse -> String
$cshow :: BatchAssociateAssessmentReportEvidenceResponse -> String
showsPrec :: Int -> BatchAssociateAssessmentReportEvidenceResponse -> ShowS
$cshowsPrec :: Int -> BatchAssociateAssessmentReportEvidenceResponse -> ShowS
Prelude.Show, (forall x.
BatchAssociateAssessmentReportEvidenceResponse
-> Rep BatchAssociateAssessmentReportEvidenceResponse x)
-> (forall x.
Rep BatchAssociateAssessmentReportEvidenceResponse x
-> BatchAssociateAssessmentReportEvidenceResponse)
-> Generic BatchAssociateAssessmentReportEvidenceResponse
forall x.
Rep BatchAssociateAssessmentReportEvidenceResponse x
-> BatchAssociateAssessmentReportEvidenceResponse
forall x.
BatchAssociateAssessmentReportEvidenceResponse
-> Rep BatchAssociateAssessmentReportEvidenceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchAssociateAssessmentReportEvidenceResponse x
-> BatchAssociateAssessmentReportEvidenceResponse
$cfrom :: forall x.
BatchAssociateAssessmentReportEvidenceResponse
-> Rep BatchAssociateAssessmentReportEvidenceResponse x
Prelude.Generic)
newBatchAssociateAssessmentReportEvidenceResponse ::
Prelude.Int ->
BatchAssociateAssessmentReportEvidenceResponse
newBatchAssociateAssessmentReportEvidenceResponse :: Int -> BatchAssociateAssessmentReportEvidenceResponse
newBatchAssociateAssessmentReportEvidenceResponse
Int
pHttpStatus_ =
BatchAssociateAssessmentReportEvidenceResponse' :: Maybe [Text]
-> Maybe [AssessmentReportEvidenceError]
-> Int
-> BatchAssociateAssessmentReportEvidenceResponse
BatchAssociateAssessmentReportEvidenceResponse'
{ $sel:evidenceIds:BatchAssociateAssessmentReportEvidenceResponse' :: Maybe [Text]
evidenceIds =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:errors:BatchAssociateAssessmentReportEvidenceResponse' :: Maybe [AssessmentReportEvidenceError]
errors = Maybe [AssessmentReportEvidenceError]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:BatchAssociateAssessmentReportEvidenceResponse' :: Int
httpStatus = Int
pHttpStatus_
}
batchAssociateAssessmentReportEvidenceResponse_evidenceIds :: Lens.Lens' BatchAssociateAssessmentReportEvidenceResponse (Prelude.Maybe [Prelude.Text])
batchAssociateAssessmentReportEvidenceResponse_evidenceIds :: (Maybe [Text] -> f (Maybe [Text]))
-> BatchAssociateAssessmentReportEvidenceResponse
-> f BatchAssociateAssessmentReportEvidenceResponse
batchAssociateAssessmentReportEvidenceResponse_evidenceIds = (BatchAssociateAssessmentReportEvidenceResponse -> Maybe [Text])
-> (BatchAssociateAssessmentReportEvidenceResponse
-> Maybe [Text] -> BatchAssociateAssessmentReportEvidenceResponse)
-> Lens
BatchAssociateAssessmentReportEvidenceResponse
BatchAssociateAssessmentReportEvidenceResponse
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAssociateAssessmentReportEvidenceResponse' {Maybe [Text]
evidenceIds :: Maybe [Text]
$sel:evidenceIds:BatchAssociateAssessmentReportEvidenceResponse' :: BatchAssociateAssessmentReportEvidenceResponse -> Maybe [Text]
evidenceIds} -> Maybe [Text]
evidenceIds) (\s :: BatchAssociateAssessmentReportEvidenceResponse
s@BatchAssociateAssessmentReportEvidenceResponse' {} Maybe [Text]
a -> BatchAssociateAssessmentReportEvidenceResponse
s {$sel:evidenceIds:BatchAssociateAssessmentReportEvidenceResponse' :: Maybe [Text]
evidenceIds = Maybe [Text]
a} :: BatchAssociateAssessmentReportEvidenceResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> BatchAssociateAssessmentReportEvidenceResponse
-> f BatchAssociateAssessmentReportEvidenceResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> BatchAssociateAssessmentReportEvidenceResponse
-> f BatchAssociateAssessmentReportEvidenceResponse
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
batchAssociateAssessmentReportEvidenceResponse_errors :: Lens.Lens' BatchAssociateAssessmentReportEvidenceResponse (Prelude.Maybe [AssessmentReportEvidenceError])
batchAssociateAssessmentReportEvidenceResponse_errors :: (Maybe [AssessmentReportEvidenceError]
-> f (Maybe [AssessmentReportEvidenceError]))
-> BatchAssociateAssessmentReportEvidenceResponse
-> f BatchAssociateAssessmentReportEvidenceResponse
batchAssociateAssessmentReportEvidenceResponse_errors = (BatchAssociateAssessmentReportEvidenceResponse
-> Maybe [AssessmentReportEvidenceError])
-> (BatchAssociateAssessmentReportEvidenceResponse
-> Maybe [AssessmentReportEvidenceError]
-> BatchAssociateAssessmentReportEvidenceResponse)
-> Lens
BatchAssociateAssessmentReportEvidenceResponse
BatchAssociateAssessmentReportEvidenceResponse
(Maybe [AssessmentReportEvidenceError])
(Maybe [AssessmentReportEvidenceError])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAssociateAssessmentReportEvidenceResponse' {Maybe [AssessmentReportEvidenceError]
errors :: Maybe [AssessmentReportEvidenceError]
$sel:errors:BatchAssociateAssessmentReportEvidenceResponse' :: BatchAssociateAssessmentReportEvidenceResponse
-> Maybe [AssessmentReportEvidenceError]
errors} -> Maybe [AssessmentReportEvidenceError]
errors) (\s :: BatchAssociateAssessmentReportEvidenceResponse
s@BatchAssociateAssessmentReportEvidenceResponse' {} Maybe [AssessmentReportEvidenceError]
a -> BatchAssociateAssessmentReportEvidenceResponse
s {$sel:errors:BatchAssociateAssessmentReportEvidenceResponse' :: Maybe [AssessmentReportEvidenceError]
errors = Maybe [AssessmentReportEvidenceError]
a} :: BatchAssociateAssessmentReportEvidenceResponse) ((Maybe [AssessmentReportEvidenceError]
-> f (Maybe [AssessmentReportEvidenceError]))
-> BatchAssociateAssessmentReportEvidenceResponse
-> f BatchAssociateAssessmentReportEvidenceResponse)
-> ((Maybe [AssessmentReportEvidenceError]
-> f (Maybe [AssessmentReportEvidenceError]))
-> Maybe [AssessmentReportEvidenceError]
-> f (Maybe [AssessmentReportEvidenceError]))
-> (Maybe [AssessmentReportEvidenceError]
-> f (Maybe [AssessmentReportEvidenceError]))
-> BatchAssociateAssessmentReportEvidenceResponse
-> f BatchAssociateAssessmentReportEvidenceResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[AssessmentReportEvidenceError]
[AssessmentReportEvidenceError]
[AssessmentReportEvidenceError]
[AssessmentReportEvidenceError]
-> Iso
(Maybe [AssessmentReportEvidenceError])
(Maybe [AssessmentReportEvidenceError])
(Maybe [AssessmentReportEvidenceError])
(Maybe [AssessmentReportEvidenceError])
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
[AssessmentReportEvidenceError]
[AssessmentReportEvidenceError]
[AssessmentReportEvidenceError]
[AssessmentReportEvidenceError]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
batchAssociateAssessmentReportEvidenceResponse_httpStatus :: Lens.Lens' BatchAssociateAssessmentReportEvidenceResponse Prelude.Int
batchAssociateAssessmentReportEvidenceResponse_httpStatus :: (Int -> f Int)
-> BatchAssociateAssessmentReportEvidenceResponse
-> f BatchAssociateAssessmentReportEvidenceResponse
batchAssociateAssessmentReportEvidenceResponse_httpStatus = (BatchAssociateAssessmentReportEvidenceResponse -> Int)
-> (BatchAssociateAssessmentReportEvidenceResponse
-> Int -> BatchAssociateAssessmentReportEvidenceResponse)
-> Lens
BatchAssociateAssessmentReportEvidenceResponse
BatchAssociateAssessmentReportEvidenceResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAssociateAssessmentReportEvidenceResponse' {Int
httpStatus :: Int
$sel:httpStatus:BatchAssociateAssessmentReportEvidenceResponse' :: BatchAssociateAssessmentReportEvidenceResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: BatchAssociateAssessmentReportEvidenceResponse
s@BatchAssociateAssessmentReportEvidenceResponse' {} Int
a -> BatchAssociateAssessmentReportEvidenceResponse
s {$sel:httpStatus:BatchAssociateAssessmentReportEvidenceResponse' :: Int
httpStatus = Int
a} :: BatchAssociateAssessmentReportEvidenceResponse)
instance
Prelude.NFData
BatchAssociateAssessmentReportEvidenceResponse