{-# 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.IoTSiteWise.BatchAssociateProjectAssets
(
BatchAssociateProjectAssets (..),
newBatchAssociateProjectAssets,
batchAssociateProjectAssets_clientToken,
batchAssociateProjectAssets_projectId,
batchAssociateProjectAssets_assetIds,
BatchAssociateProjectAssetsResponse (..),
newBatchAssociateProjectAssetsResponse,
batchAssociateProjectAssetsResponse_errors,
batchAssociateProjectAssetsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoTSiteWise.Types
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 BatchAssociateProjectAssets = BatchAssociateProjectAssets'
{
BatchAssociateProjectAssets -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
BatchAssociateProjectAssets -> Text
projectId :: Prelude.Text,
BatchAssociateProjectAssets -> NonEmpty Text
assetIds :: Prelude.NonEmpty Prelude.Text
}
deriving (BatchAssociateProjectAssets -> BatchAssociateProjectAssets -> Bool
(BatchAssociateProjectAssets
-> BatchAssociateProjectAssets -> Bool)
-> (BatchAssociateProjectAssets
-> BatchAssociateProjectAssets -> Bool)
-> Eq BatchAssociateProjectAssets
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchAssociateProjectAssets -> BatchAssociateProjectAssets -> Bool
$c/= :: BatchAssociateProjectAssets -> BatchAssociateProjectAssets -> Bool
== :: BatchAssociateProjectAssets -> BatchAssociateProjectAssets -> Bool
$c== :: BatchAssociateProjectAssets -> BatchAssociateProjectAssets -> Bool
Prelude.Eq, ReadPrec [BatchAssociateProjectAssets]
ReadPrec BatchAssociateProjectAssets
Int -> ReadS BatchAssociateProjectAssets
ReadS [BatchAssociateProjectAssets]
(Int -> ReadS BatchAssociateProjectAssets)
-> ReadS [BatchAssociateProjectAssets]
-> ReadPrec BatchAssociateProjectAssets
-> ReadPrec [BatchAssociateProjectAssets]
-> Read BatchAssociateProjectAssets
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchAssociateProjectAssets]
$creadListPrec :: ReadPrec [BatchAssociateProjectAssets]
readPrec :: ReadPrec BatchAssociateProjectAssets
$creadPrec :: ReadPrec BatchAssociateProjectAssets
readList :: ReadS [BatchAssociateProjectAssets]
$creadList :: ReadS [BatchAssociateProjectAssets]
readsPrec :: Int -> ReadS BatchAssociateProjectAssets
$creadsPrec :: Int -> ReadS BatchAssociateProjectAssets
Prelude.Read, Int -> BatchAssociateProjectAssets -> ShowS
[BatchAssociateProjectAssets] -> ShowS
BatchAssociateProjectAssets -> String
(Int -> BatchAssociateProjectAssets -> ShowS)
-> (BatchAssociateProjectAssets -> String)
-> ([BatchAssociateProjectAssets] -> ShowS)
-> Show BatchAssociateProjectAssets
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchAssociateProjectAssets] -> ShowS
$cshowList :: [BatchAssociateProjectAssets] -> ShowS
show :: BatchAssociateProjectAssets -> String
$cshow :: BatchAssociateProjectAssets -> String
showsPrec :: Int -> BatchAssociateProjectAssets -> ShowS
$cshowsPrec :: Int -> BatchAssociateProjectAssets -> ShowS
Prelude.Show, (forall x.
BatchAssociateProjectAssets -> Rep BatchAssociateProjectAssets x)
-> (forall x.
Rep BatchAssociateProjectAssets x -> BatchAssociateProjectAssets)
-> Generic BatchAssociateProjectAssets
forall x.
Rep BatchAssociateProjectAssets x -> BatchAssociateProjectAssets
forall x.
BatchAssociateProjectAssets -> Rep BatchAssociateProjectAssets x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchAssociateProjectAssets x -> BatchAssociateProjectAssets
$cfrom :: forall x.
BatchAssociateProjectAssets -> Rep BatchAssociateProjectAssets x
Prelude.Generic)
newBatchAssociateProjectAssets ::
Prelude.Text ->
Prelude.NonEmpty Prelude.Text ->
BatchAssociateProjectAssets
newBatchAssociateProjectAssets :: Text -> NonEmpty Text -> BatchAssociateProjectAssets
newBatchAssociateProjectAssets Text
pProjectId_ NonEmpty Text
pAssetIds_ =
BatchAssociateProjectAssets' :: Maybe Text -> Text -> NonEmpty Text -> BatchAssociateProjectAssets
BatchAssociateProjectAssets'
{ $sel:clientToken:BatchAssociateProjectAssets' :: Maybe Text
clientToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:projectId:BatchAssociateProjectAssets' :: Text
projectId = Text
pProjectId_,
$sel:assetIds:BatchAssociateProjectAssets' :: NonEmpty Text
assetIds = Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text)))
-> NonEmpty Text -> NonEmpty Text
forall t b. AReview t b -> b -> t
Lens.# NonEmpty Text
pAssetIds_
}
batchAssociateProjectAssets_clientToken :: Lens.Lens' BatchAssociateProjectAssets (Prelude.Maybe Prelude.Text)
batchAssociateProjectAssets_clientToken :: (Maybe Text -> f (Maybe Text))
-> BatchAssociateProjectAssets -> f BatchAssociateProjectAssets
batchAssociateProjectAssets_clientToken = (BatchAssociateProjectAssets -> Maybe Text)
-> (BatchAssociateProjectAssets
-> Maybe Text -> BatchAssociateProjectAssets)
-> Lens
BatchAssociateProjectAssets
BatchAssociateProjectAssets
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAssociateProjectAssets' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:BatchAssociateProjectAssets' :: BatchAssociateProjectAssets -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: BatchAssociateProjectAssets
s@BatchAssociateProjectAssets' {} Maybe Text
a -> BatchAssociateProjectAssets
s {$sel:clientToken:BatchAssociateProjectAssets' :: Maybe Text
clientToken = Maybe Text
a} :: BatchAssociateProjectAssets)
batchAssociateProjectAssets_projectId :: Lens.Lens' BatchAssociateProjectAssets Prelude.Text
batchAssociateProjectAssets_projectId :: (Text -> f Text)
-> BatchAssociateProjectAssets -> f BatchAssociateProjectAssets
batchAssociateProjectAssets_projectId = (BatchAssociateProjectAssets -> Text)
-> (BatchAssociateProjectAssets
-> Text -> BatchAssociateProjectAssets)
-> Lens
BatchAssociateProjectAssets BatchAssociateProjectAssets Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAssociateProjectAssets' {Text
projectId :: Text
$sel:projectId:BatchAssociateProjectAssets' :: BatchAssociateProjectAssets -> Text
projectId} -> Text
projectId) (\s :: BatchAssociateProjectAssets
s@BatchAssociateProjectAssets' {} Text
a -> BatchAssociateProjectAssets
s {$sel:projectId:BatchAssociateProjectAssets' :: Text
projectId = Text
a} :: BatchAssociateProjectAssets)
batchAssociateProjectAssets_assetIds :: Lens.Lens' BatchAssociateProjectAssets (Prelude.NonEmpty Prelude.Text)
batchAssociateProjectAssets_assetIds :: (NonEmpty Text -> f (NonEmpty Text))
-> BatchAssociateProjectAssets -> f BatchAssociateProjectAssets
batchAssociateProjectAssets_assetIds = (BatchAssociateProjectAssets -> NonEmpty Text)
-> (BatchAssociateProjectAssets
-> NonEmpty Text -> BatchAssociateProjectAssets)
-> Lens
BatchAssociateProjectAssets
BatchAssociateProjectAssets
(NonEmpty Text)
(NonEmpty Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAssociateProjectAssets' {NonEmpty Text
assetIds :: NonEmpty Text
$sel:assetIds:BatchAssociateProjectAssets' :: BatchAssociateProjectAssets -> NonEmpty Text
assetIds} -> NonEmpty Text
assetIds) (\s :: BatchAssociateProjectAssets
s@BatchAssociateProjectAssets' {} NonEmpty Text
a -> BatchAssociateProjectAssets
s {$sel:assetIds:BatchAssociateProjectAssets' :: NonEmpty Text
assetIds = NonEmpty Text
a} :: BatchAssociateProjectAssets) ((NonEmpty Text -> f (NonEmpty Text))
-> BatchAssociateProjectAssets -> f BatchAssociateProjectAssets)
-> ((NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text))
-> (NonEmpty Text -> f (NonEmpty Text))
-> BatchAssociateProjectAssets
-> f BatchAssociateProjectAssets
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest BatchAssociateProjectAssets where
type
AWSResponse BatchAssociateProjectAssets =
BatchAssociateProjectAssetsResponse
request :: BatchAssociateProjectAssets -> Request BatchAssociateProjectAssets
request = Service
-> BatchAssociateProjectAssets
-> Request BatchAssociateProjectAssets
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy BatchAssociateProjectAssets
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse BatchAssociateProjectAssets)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse BatchAssociateProjectAssets))
-> Logger
-> Service
-> Proxy BatchAssociateProjectAssets
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse BatchAssociateProjectAssets)))
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 [AssetErrorDetails]
-> Int -> BatchAssociateProjectAssetsResponse
BatchAssociateProjectAssetsResponse'
(Maybe [AssetErrorDetails]
-> Int -> BatchAssociateProjectAssetsResponse)
-> Either String (Maybe [AssetErrorDetails])
-> Either String (Int -> BatchAssociateProjectAssetsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [AssetErrorDetails]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"errors" Either String (Maybe (Maybe [AssetErrorDetails]))
-> Maybe [AssetErrorDetails]
-> Either String (Maybe [AssetErrorDetails])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [AssetErrorDetails]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> BatchAssociateProjectAssetsResponse)
-> Either String Int
-> Either String BatchAssociateProjectAssetsResponse
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 BatchAssociateProjectAssets
instance Prelude.NFData BatchAssociateProjectAssets
instance Core.ToHeaders BatchAssociateProjectAssets where
toHeaders :: BatchAssociateProjectAssets -> ResponseHeaders
toHeaders =
ResponseHeaders -> BatchAssociateProjectAssets -> 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 BatchAssociateProjectAssets where
toJSON :: BatchAssociateProjectAssets -> Value
toJSON BatchAssociateProjectAssets' {Maybe Text
NonEmpty Text
Text
assetIds :: NonEmpty Text
projectId :: Text
clientToken :: Maybe Text
$sel:assetIds:BatchAssociateProjectAssets' :: BatchAssociateProjectAssets -> NonEmpty Text
$sel:projectId:BatchAssociateProjectAssets' :: BatchAssociateProjectAssets -> Text
$sel:clientToken:BatchAssociateProjectAssets' :: BatchAssociateProjectAssets -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"clientToken" 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
clientToken,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"assetIds" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty Text
assetIds)
]
)
instance Core.ToPath BatchAssociateProjectAssets where
toPath :: BatchAssociateProjectAssets -> ByteString
toPath BatchAssociateProjectAssets' {Maybe Text
NonEmpty Text
Text
assetIds :: NonEmpty Text
projectId :: Text
clientToken :: Maybe Text
$sel:assetIds:BatchAssociateProjectAssets' :: BatchAssociateProjectAssets -> NonEmpty Text
$sel:projectId:BatchAssociateProjectAssets' :: BatchAssociateProjectAssets -> Text
$sel:clientToken:BatchAssociateProjectAssets' :: BatchAssociateProjectAssets -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/projects/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
projectId,
ByteString
"/assets/associate"
]
instance Core.ToQuery BatchAssociateProjectAssets where
toQuery :: BatchAssociateProjectAssets -> QueryString
toQuery = QueryString -> BatchAssociateProjectAssets -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data BatchAssociateProjectAssetsResponse = BatchAssociateProjectAssetsResponse'
{
BatchAssociateProjectAssetsResponse -> Maybe [AssetErrorDetails]
errors :: Prelude.Maybe [AssetErrorDetails],
BatchAssociateProjectAssetsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (BatchAssociateProjectAssetsResponse
-> BatchAssociateProjectAssetsResponse -> Bool
(BatchAssociateProjectAssetsResponse
-> BatchAssociateProjectAssetsResponse -> Bool)
-> (BatchAssociateProjectAssetsResponse
-> BatchAssociateProjectAssetsResponse -> Bool)
-> Eq BatchAssociateProjectAssetsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchAssociateProjectAssetsResponse
-> BatchAssociateProjectAssetsResponse -> Bool
$c/= :: BatchAssociateProjectAssetsResponse
-> BatchAssociateProjectAssetsResponse -> Bool
== :: BatchAssociateProjectAssetsResponse
-> BatchAssociateProjectAssetsResponse -> Bool
$c== :: BatchAssociateProjectAssetsResponse
-> BatchAssociateProjectAssetsResponse -> Bool
Prelude.Eq, ReadPrec [BatchAssociateProjectAssetsResponse]
ReadPrec BatchAssociateProjectAssetsResponse
Int -> ReadS BatchAssociateProjectAssetsResponse
ReadS [BatchAssociateProjectAssetsResponse]
(Int -> ReadS BatchAssociateProjectAssetsResponse)
-> ReadS [BatchAssociateProjectAssetsResponse]
-> ReadPrec BatchAssociateProjectAssetsResponse
-> ReadPrec [BatchAssociateProjectAssetsResponse]
-> Read BatchAssociateProjectAssetsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchAssociateProjectAssetsResponse]
$creadListPrec :: ReadPrec [BatchAssociateProjectAssetsResponse]
readPrec :: ReadPrec BatchAssociateProjectAssetsResponse
$creadPrec :: ReadPrec BatchAssociateProjectAssetsResponse
readList :: ReadS [BatchAssociateProjectAssetsResponse]
$creadList :: ReadS [BatchAssociateProjectAssetsResponse]
readsPrec :: Int -> ReadS BatchAssociateProjectAssetsResponse
$creadsPrec :: Int -> ReadS BatchAssociateProjectAssetsResponse
Prelude.Read, Int -> BatchAssociateProjectAssetsResponse -> ShowS
[BatchAssociateProjectAssetsResponse] -> ShowS
BatchAssociateProjectAssetsResponse -> String
(Int -> BatchAssociateProjectAssetsResponse -> ShowS)
-> (BatchAssociateProjectAssetsResponse -> String)
-> ([BatchAssociateProjectAssetsResponse] -> ShowS)
-> Show BatchAssociateProjectAssetsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchAssociateProjectAssetsResponse] -> ShowS
$cshowList :: [BatchAssociateProjectAssetsResponse] -> ShowS
show :: BatchAssociateProjectAssetsResponse -> String
$cshow :: BatchAssociateProjectAssetsResponse -> String
showsPrec :: Int -> BatchAssociateProjectAssetsResponse -> ShowS
$cshowsPrec :: Int -> BatchAssociateProjectAssetsResponse -> ShowS
Prelude.Show, (forall x.
BatchAssociateProjectAssetsResponse
-> Rep BatchAssociateProjectAssetsResponse x)
-> (forall x.
Rep BatchAssociateProjectAssetsResponse x
-> BatchAssociateProjectAssetsResponse)
-> Generic BatchAssociateProjectAssetsResponse
forall x.
Rep BatchAssociateProjectAssetsResponse x
-> BatchAssociateProjectAssetsResponse
forall x.
BatchAssociateProjectAssetsResponse
-> Rep BatchAssociateProjectAssetsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchAssociateProjectAssetsResponse x
-> BatchAssociateProjectAssetsResponse
$cfrom :: forall x.
BatchAssociateProjectAssetsResponse
-> Rep BatchAssociateProjectAssetsResponse x
Prelude.Generic)
newBatchAssociateProjectAssetsResponse ::
Prelude.Int ->
BatchAssociateProjectAssetsResponse
newBatchAssociateProjectAssetsResponse :: Int -> BatchAssociateProjectAssetsResponse
newBatchAssociateProjectAssetsResponse Int
pHttpStatus_ =
BatchAssociateProjectAssetsResponse' :: Maybe [AssetErrorDetails]
-> Int -> BatchAssociateProjectAssetsResponse
BatchAssociateProjectAssetsResponse'
{ $sel:errors:BatchAssociateProjectAssetsResponse' :: Maybe [AssetErrorDetails]
errors =
Maybe [AssetErrorDetails]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:BatchAssociateProjectAssetsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
batchAssociateProjectAssetsResponse_errors :: Lens.Lens' BatchAssociateProjectAssetsResponse (Prelude.Maybe [AssetErrorDetails])
batchAssociateProjectAssetsResponse_errors :: (Maybe [AssetErrorDetails] -> f (Maybe [AssetErrorDetails]))
-> BatchAssociateProjectAssetsResponse
-> f BatchAssociateProjectAssetsResponse
batchAssociateProjectAssetsResponse_errors = (BatchAssociateProjectAssetsResponse -> Maybe [AssetErrorDetails])
-> (BatchAssociateProjectAssetsResponse
-> Maybe [AssetErrorDetails]
-> BatchAssociateProjectAssetsResponse)
-> Lens
BatchAssociateProjectAssetsResponse
BatchAssociateProjectAssetsResponse
(Maybe [AssetErrorDetails])
(Maybe [AssetErrorDetails])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAssociateProjectAssetsResponse' {Maybe [AssetErrorDetails]
errors :: Maybe [AssetErrorDetails]
$sel:errors:BatchAssociateProjectAssetsResponse' :: BatchAssociateProjectAssetsResponse -> Maybe [AssetErrorDetails]
errors} -> Maybe [AssetErrorDetails]
errors) (\s :: BatchAssociateProjectAssetsResponse
s@BatchAssociateProjectAssetsResponse' {} Maybe [AssetErrorDetails]
a -> BatchAssociateProjectAssetsResponse
s {$sel:errors:BatchAssociateProjectAssetsResponse' :: Maybe [AssetErrorDetails]
errors = Maybe [AssetErrorDetails]
a} :: BatchAssociateProjectAssetsResponse) ((Maybe [AssetErrorDetails] -> f (Maybe [AssetErrorDetails]))
-> BatchAssociateProjectAssetsResponse
-> f BatchAssociateProjectAssetsResponse)
-> ((Maybe [AssetErrorDetails] -> f (Maybe [AssetErrorDetails]))
-> Maybe [AssetErrorDetails] -> f (Maybe [AssetErrorDetails]))
-> (Maybe [AssetErrorDetails] -> f (Maybe [AssetErrorDetails]))
-> BatchAssociateProjectAssetsResponse
-> f BatchAssociateProjectAssetsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[AssetErrorDetails]
[AssetErrorDetails]
[AssetErrorDetails]
[AssetErrorDetails]
-> Iso
(Maybe [AssetErrorDetails])
(Maybe [AssetErrorDetails])
(Maybe [AssetErrorDetails])
(Maybe [AssetErrorDetails])
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
[AssetErrorDetails]
[AssetErrorDetails]
[AssetErrorDetails]
[AssetErrorDetails]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
batchAssociateProjectAssetsResponse_httpStatus :: Lens.Lens' BatchAssociateProjectAssetsResponse Prelude.Int
batchAssociateProjectAssetsResponse_httpStatus :: (Int -> f Int)
-> BatchAssociateProjectAssetsResponse
-> f BatchAssociateProjectAssetsResponse
batchAssociateProjectAssetsResponse_httpStatus = (BatchAssociateProjectAssetsResponse -> Int)
-> (BatchAssociateProjectAssetsResponse
-> Int -> BatchAssociateProjectAssetsResponse)
-> Lens
BatchAssociateProjectAssetsResponse
BatchAssociateProjectAssetsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAssociateProjectAssetsResponse' {Int
httpStatus :: Int
$sel:httpStatus:BatchAssociateProjectAssetsResponse' :: BatchAssociateProjectAssetsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: BatchAssociateProjectAssetsResponse
s@BatchAssociateProjectAssetsResponse' {} Int
a -> BatchAssociateProjectAssetsResponse
s {$sel:httpStatus:BatchAssociateProjectAssetsResponse' :: Int
httpStatus = Int
a} :: BatchAssociateProjectAssetsResponse)
instance
Prelude.NFData
BatchAssociateProjectAssetsResponse