{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MacieV2.BatchGetCustomDataIdentifiers
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Retrieves information about one or more custom data identifiers.
module Amazonka.MacieV2.BatchGetCustomDataIdentifiers
  ( -- * Creating a Request
    BatchGetCustomDataIdentifiers (..),
    newBatchGetCustomDataIdentifiers,

    -- * Request Lenses
    batchGetCustomDataIdentifiers_ids,

    -- * Destructuring the Response
    BatchGetCustomDataIdentifiersResponse (..),
    newBatchGetCustomDataIdentifiersResponse,

    -- * Response Lenses
    batchGetCustomDataIdentifiersResponse_notFoundIdentifierIds,
    batchGetCustomDataIdentifiersResponse_customDataIdentifiers,
    batchGetCustomDataIdentifiersResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MacieV2.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newBatchGetCustomDataIdentifiers' smart constructor.
data BatchGetCustomDataIdentifiers = BatchGetCustomDataIdentifiers'
  { -- | An array of custom data identifier IDs, one for each custom data
    -- identifier to retrieve information about.
    BatchGetCustomDataIdentifiers -> Maybe [Text]
ids :: Prelude.Maybe [Prelude.Text]
  }
  deriving (BatchGetCustomDataIdentifiers
-> BatchGetCustomDataIdentifiers -> Bool
(BatchGetCustomDataIdentifiers
 -> BatchGetCustomDataIdentifiers -> Bool)
-> (BatchGetCustomDataIdentifiers
    -> BatchGetCustomDataIdentifiers -> Bool)
-> Eq BatchGetCustomDataIdentifiers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchGetCustomDataIdentifiers
-> BatchGetCustomDataIdentifiers -> Bool
$c/= :: BatchGetCustomDataIdentifiers
-> BatchGetCustomDataIdentifiers -> Bool
== :: BatchGetCustomDataIdentifiers
-> BatchGetCustomDataIdentifiers -> Bool
$c== :: BatchGetCustomDataIdentifiers
-> BatchGetCustomDataIdentifiers -> Bool
Prelude.Eq, ReadPrec [BatchGetCustomDataIdentifiers]
ReadPrec BatchGetCustomDataIdentifiers
Int -> ReadS BatchGetCustomDataIdentifiers
ReadS [BatchGetCustomDataIdentifiers]
(Int -> ReadS BatchGetCustomDataIdentifiers)
-> ReadS [BatchGetCustomDataIdentifiers]
-> ReadPrec BatchGetCustomDataIdentifiers
-> ReadPrec [BatchGetCustomDataIdentifiers]
-> Read BatchGetCustomDataIdentifiers
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchGetCustomDataIdentifiers]
$creadListPrec :: ReadPrec [BatchGetCustomDataIdentifiers]
readPrec :: ReadPrec BatchGetCustomDataIdentifiers
$creadPrec :: ReadPrec BatchGetCustomDataIdentifiers
readList :: ReadS [BatchGetCustomDataIdentifiers]
$creadList :: ReadS [BatchGetCustomDataIdentifiers]
readsPrec :: Int -> ReadS BatchGetCustomDataIdentifiers
$creadsPrec :: Int -> ReadS BatchGetCustomDataIdentifiers
Prelude.Read, Int -> BatchGetCustomDataIdentifiers -> ShowS
[BatchGetCustomDataIdentifiers] -> ShowS
BatchGetCustomDataIdentifiers -> String
(Int -> BatchGetCustomDataIdentifiers -> ShowS)
-> (BatchGetCustomDataIdentifiers -> String)
-> ([BatchGetCustomDataIdentifiers] -> ShowS)
-> Show BatchGetCustomDataIdentifiers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchGetCustomDataIdentifiers] -> ShowS
$cshowList :: [BatchGetCustomDataIdentifiers] -> ShowS
show :: BatchGetCustomDataIdentifiers -> String
$cshow :: BatchGetCustomDataIdentifiers -> String
showsPrec :: Int -> BatchGetCustomDataIdentifiers -> ShowS
$cshowsPrec :: Int -> BatchGetCustomDataIdentifiers -> ShowS
Prelude.Show, (forall x.
 BatchGetCustomDataIdentifiers
 -> Rep BatchGetCustomDataIdentifiers x)
-> (forall x.
    Rep BatchGetCustomDataIdentifiers x
    -> BatchGetCustomDataIdentifiers)
-> Generic BatchGetCustomDataIdentifiers
forall x.
Rep BatchGetCustomDataIdentifiers x
-> BatchGetCustomDataIdentifiers
forall x.
BatchGetCustomDataIdentifiers
-> Rep BatchGetCustomDataIdentifiers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchGetCustomDataIdentifiers x
-> BatchGetCustomDataIdentifiers
$cfrom :: forall x.
BatchGetCustomDataIdentifiers
-> Rep BatchGetCustomDataIdentifiers x
Prelude.Generic)

-- |
-- Create a value of 'BatchGetCustomDataIdentifiers' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'ids', 'batchGetCustomDataIdentifiers_ids' - An array of custom data identifier IDs, one for each custom data
-- identifier to retrieve information about.
newBatchGetCustomDataIdentifiers ::
  BatchGetCustomDataIdentifiers
newBatchGetCustomDataIdentifiers :: BatchGetCustomDataIdentifiers
newBatchGetCustomDataIdentifiers =
  BatchGetCustomDataIdentifiers' :: Maybe [Text] -> BatchGetCustomDataIdentifiers
BatchGetCustomDataIdentifiers'
    { $sel:ids:BatchGetCustomDataIdentifiers' :: Maybe [Text]
ids =
        Maybe [Text]
forall a. Maybe a
Prelude.Nothing
    }

-- | An array of custom data identifier IDs, one for each custom data
-- identifier to retrieve information about.
batchGetCustomDataIdentifiers_ids :: Lens.Lens' BatchGetCustomDataIdentifiers (Prelude.Maybe [Prelude.Text])
batchGetCustomDataIdentifiers_ids :: (Maybe [Text] -> f (Maybe [Text]))
-> BatchGetCustomDataIdentifiers -> f BatchGetCustomDataIdentifiers
batchGetCustomDataIdentifiers_ids = (BatchGetCustomDataIdentifiers -> Maybe [Text])
-> (BatchGetCustomDataIdentifiers
    -> Maybe [Text] -> BatchGetCustomDataIdentifiers)
-> Lens
     BatchGetCustomDataIdentifiers
     BatchGetCustomDataIdentifiers
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetCustomDataIdentifiers' {Maybe [Text]
ids :: Maybe [Text]
$sel:ids:BatchGetCustomDataIdentifiers' :: BatchGetCustomDataIdentifiers -> Maybe [Text]
ids} -> Maybe [Text]
ids) (\s :: BatchGetCustomDataIdentifiers
s@BatchGetCustomDataIdentifiers' {} Maybe [Text]
a -> BatchGetCustomDataIdentifiers
s {$sel:ids:BatchGetCustomDataIdentifiers' :: Maybe [Text]
ids = Maybe [Text]
a} :: BatchGetCustomDataIdentifiers) ((Maybe [Text] -> f (Maybe [Text]))
 -> BatchGetCustomDataIdentifiers
 -> f BatchGetCustomDataIdentifiers)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> BatchGetCustomDataIdentifiers
-> f BatchGetCustomDataIdentifiers
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

instance
  Core.AWSRequest
    BatchGetCustomDataIdentifiers
  where
  type
    AWSResponse BatchGetCustomDataIdentifiers =
      BatchGetCustomDataIdentifiersResponse
  request :: BatchGetCustomDataIdentifiers
-> Request BatchGetCustomDataIdentifiers
request = Service
-> BatchGetCustomDataIdentifiers
-> Request BatchGetCustomDataIdentifiers
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy BatchGetCustomDataIdentifiers
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse BatchGetCustomDataIdentifiers)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse BatchGetCustomDataIdentifiers))
-> Logger
-> Service
-> Proxy BatchGetCustomDataIdentifiers
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse BatchGetCustomDataIdentifiers)))
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 [BatchGetCustomDataIdentifierSummary]
-> Int
-> BatchGetCustomDataIdentifiersResponse
BatchGetCustomDataIdentifiersResponse'
            (Maybe [Text]
 -> Maybe [BatchGetCustomDataIdentifierSummary]
 -> Int
 -> BatchGetCustomDataIdentifiersResponse)
-> Either String (Maybe [Text])
-> Either
     String
     (Maybe [BatchGetCustomDataIdentifierSummary]
      -> Int -> BatchGetCustomDataIdentifiersResponse)
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
"notFoundIdentifierIds"
                            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 [BatchGetCustomDataIdentifierSummary]
   -> Int -> BatchGetCustomDataIdentifiersResponse)
-> Either String (Maybe [BatchGetCustomDataIdentifierSummary])
-> Either String (Int -> BatchGetCustomDataIdentifiersResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Either
     String (Maybe (Maybe [BatchGetCustomDataIdentifierSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"customDataIdentifiers"
                            Either String (Maybe (Maybe [BatchGetCustomDataIdentifierSummary]))
-> Maybe [BatchGetCustomDataIdentifierSummary]
-> Either String (Maybe [BatchGetCustomDataIdentifierSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [BatchGetCustomDataIdentifierSummary]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Int -> BatchGetCustomDataIdentifiersResponse)
-> Either String Int
-> Either String BatchGetCustomDataIdentifiersResponse
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
    BatchGetCustomDataIdentifiers

instance Prelude.NFData BatchGetCustomDataIdentifiers

instance Core.ToHeaders BatchGetCustomDataIdentifiers where
  toHeaders :: BatchGetCustomDataIdentifiers -> ResponseHeaders
toHeaders =
    ResponseHeaders -> BatchGetCustomDataIdentifiers -> 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 BatchGetCustomDataIdentifiers where
  toJSON :: BatchGetCustomDataIdentifiers -> Value
toJSON BatchGetCustomDataIdentifiers' {Maybe [Text]
ids :: Maybe [Text]
$sel:ids:BatchGetCustomDataIdentifiers' :: BatchGetCustomDataIdentifiers -> Maybe [Text]
..} =
    [Pair] -> Value
Core.object
      ([Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [(Text
"ids" 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]
ids])

instance Core.ToPath BatchGetCustomDataIdentifiers where
  toPath :: BatchGetCustomDataIdentifiers -> ByteString
toPath = ByteString -> BatchGetCustomDataIdentifiers -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/custom-data-identifiers/get"

instance Core.ToQuery BatchGetCustomDataIdentifiers where
  toQuery :: BatchGetCustomDataIdentifiers -> QueryString
toQuery = QueryString -> BatchGetCustomDataIdentifiers -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newBatchGetCustomDataIdentifiersResponse' smart constructor.
data BatchGetCustomDataIdentifiersResponse = BatchGetCustomDataIdentifiersResponse'
  { -- | An array of custom data identifier IDs, one for each custom data
    -- identifier that was specified in the request but doesn\'t correlate to
    -- an existing custom data identifier.
    BatchGetCustomDataIdentifiersResponse -> Maybe [Text]
notFoundIdentifierIds :: Prelude.Maybe [Prelude.Text],
    -- | An array of objects, one for each custom data identifier that meets the
    -- criteria specified in the request.
    BatchGetCustomDataIdentifiersResponse
-> Maybe [BatchGetCustomDataIdentifierSummary]
customDataIdentifiers :: Prelude.Maybe [BatchGetCustomDataIdentifierSummary],
    -- | The response's http status code.
    BatchGetCustomDataIdentifiersResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (BatchGetCustomDataIdentifiersResponse
-> BatchGetCustomDataIdentifiersResponse -> Bool
(BatchGetCustomDataIdentifiersResponse
 -> BatchGetCustomDataIdentifiersResponse -> Bool)
-> (BatchGetCustomDataIdentifiersResponse
    -> BatchGetCustomDataIdentifiersResponse -> Bool)
-> Eq BatchGetCustomDataIdentifiersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchGetCustomDataIdentifiersResponse
-> BatchGetCustomDataIdentifiersResponse -> Bool
$c/= :: BatchGetCustomDataIdentifiersResponse
-> BatchGetCustomDataIdentifiersResponse -> Bool
== :: BatchGetCustomDataIdentifiersResponse
-> BatchGetCustomDataIdentifiersResponse -> Bool
$c== :: BatchGetCustomDataIdentifiersResponse
-> BatchGetCustomDataIdentifiersResponse -> Bool
Prelude.Eq, ReadPrec [BatchGetCustomDataIdentifiersResponse]
ReadPrec BatchGetCustomDataIdentifiersResponse
Int -> ReadS BatchGetCustomDataIdentifiersResponse
ReadS [BatchGetCustomDataIdentifiersResponse]
(Int -> ReadS BatchGetCustomDataIdentifiersResponse)
-> ReadS [BatchGetCustomDataIdentifiersResponse]
-> ReadPrec BatchGetCustomDataIdentifiersResponse
-> ReadPrec [BatchGetCustomDataIdentifiersResponse]
-> Read BatchGetCustomDataIdentifiersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchGetCustomDataIdentifiersResponse]
$creadListPrec :: ReadPrec [BatchGetCustomDataIdentifiersResponse]
readPrec :: ReadPrec BatchGetCustomDataIdentifiersResponse
$creadPrec :: ReadPrec BatchGetCustomDataIdentifiersResponse
readList :: ReadS [BatchGetCustomDataIdentifiersResponse]
$creadList :: ReadS [BatchGetCustomDataIdentifiersResponse]
readsPrec :: Int -> ReadS BatchGetCustomDataIdentifiersResponse
$creadsPrec :: Int -> ReadS BatchGetCustomDataIdentifiersResponse
Prelude.Read, Int -> BatchGetCustomDataIdentifiersResponse -> ShowS
[BatchGetCustomDataIdentifiersResponse] -> ShowS
BatchGetCustomDataIdentifiersResponse -> String
(Int -> BatchGetCustomDataIdentifiersResponse -> ShowS)
-> (BatchGetCustomDataIdentifiersResponse -> String)
-> ([BatchGetCustomDataIdentifiersResponse] -> ShowS)
-> Show BatchGetCustomDataIdentifiersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchGetCustomDataIdentifiersResponse] -> ShowS
$cshowList :: [BatchGetCustomDataIdentifiersResponse] -> ShowS
show :: BatchGetCustomDataIdentifiersResponse -> String
$cshow :: BatchGetCustomDataIdentifiersResponse -> String
showsPrec :: Int -> BatchGetCustomDataIdentifiersResponse -> ShowS
$cshowsPrec :: Int -> BatchGetCustomDataIdentifiersResponse -> ShowS
Prelude.Show, (forall x.
 BatchGetCustomDataIdentifiersResponse
 -> Rep BatchGetCustomDataIdentifiersResponse x)
-> (forall x.
    Rep BatchGetCustomDataIdentifiersResponse x
    -> BatchGetCustomDataIdentifiersResponse)
-> Generic BatchGetCustomDataIdentifiersResponse
forall x.
Rep BatchGetCustomDataIdentifiersResponse x
-> BatchGetCustomDataIdentifiersResponse
forall x.
BatchGetCustomDataIdentifiersResponse
-> Rep BatchGetCustomDataIdentifiersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchGetCustomDataIdentifiersResponse x
-> BatchGetCustomDataIdentifiersResponse
$cfrom :: forall x.
BatchGetCustomDataIdentifiersResponse
-> Rep BatchGetCustomDataIdentifiersResponse x
Prelude.Generic)

-- |
-- Create a value of 'BatchGetCustomDataIdentifiersResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'notFoundIdentifierIds', 'batchGetCustomDataIdentifiersResponse_notFoundIdentifierIds' - An array of custom data identifier IDs, one for each custom data
-- identifier that was specified in the request but doesn\'t correlate to
-- an existing custom data identifier.
--
-- 'customDataIdentifiers', 'batchGetCustomDataIdentifiersResponse_customDataIdentifiers' - An array of objects, one for each custom data identifier that meets the
-- criteria specified in the request.
--
-- 'httpStatus', 'batchGetCustomDataIdentifiersResponse_httpStatus' - The response's http status code.
newBatchGetCustomDataIdentifiersResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  BatchGetCustomDataIdentifiersResponse
newBatchGetCustomDataIdentifiersResponse :: Int -> BatchGetCustomDataIdentifiersResponse
newBatchGetCustomDataIdentifiersResponse Int
pHttpStatus_ =
  BatchGetCustomDataIdentifiersResponse' :: Maybe [Text]
-> Maybe [BatchGetCustomDataIdentifierSummary]
-> Int
-> BatchGetCustomDataIdentifiersResponse
BatchGetCustomDataIdentifiersResponse'
    { $sel:notFoundIdentifierIds:BatchGetCustomDataIdentifiersResponse' :: Maybe [Text]
notFoundIdentifierIds =
        Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:customDataIdentifiers:BatchGetCustomDataIdentifiersResponse' :: Maybe [BatchGetCustomDataIdentifierSummary]
customDataIdentifiers =
        Maybe [BatchGetCustomDataIdentifierSummary]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:BatchGetCustomDataIdentifiersResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | An array of custom data identifier IDs, one for each custom data
-- identifier that was specified in the request but doesn\'t correlate to
-- an existing custom data identifier.
batchGetCustomDataIdentifiersResponse_notFoundIdentifierIds :: Lens.Lens' BatchGetCustomDataIdentifiersResponse (Prelude.Maybe [Prelude.Text])
batchGetCustomDataIdentifiersResponse_notFoundIdentifierIds :: (Maybe [Text] -> f (Maybe [Text]))
-> BatchGetCustomDataIdentifiersResponse
-> f BatchGetCustomDataIdentifiersResponse
batchGetCustomDataIdentifiersResponse_notFoundIdentifierIds = (BatchGetCustomDataIdentifiersResponse -> Maybe [Text])
-> (BatchGetCustomDataIdentifiersResponse
    -> Maybe [Text] -> BatchGetCustomDataIdentifiersResponse)
-> Lens
     BatchGetCustomDataIdentifiersResponse
     BatchGetCustomDataIdentifiersResponse
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetCustomDataIdentifiersResponse' {Maybe [Text]
notFoundIdentifierIds :: Maybe [Text]
$sel:notFoundIdentifierIds:BatchGetCustomDataIdentifiersResponse' :: BatchGetCustomDataIdentifiersResponse -> Maybe [Text]
notFoundIdentifierIds} -> Maybe [Text]
notFoundIdentifierIds) (\s :: BatchGetCustomDataIdentifiersResponse
s@BatchGetCustomDataIdentifiersResponse' {} Maybe [Text]
a -> BatchGetCustomDataIdentifiersResponse
s {$sel:notFoundIdentifierIds:BatchGetCustomDataIdentifiersResponse' :: Maybe [Text]
notFoundIdentifierIds = Maybe [Text]
a} :: BatchGetCustomDataIdentifiersResponse) ((Maybe [Text] -> f (Maybe [Text]))
 -> BatchGetCustomDataIdentifiersResponse
 -> f BatchGetCustomDataIdentifiersResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> BatchGetCustomDataIdentifiersResponse
-> f BatchGetCustomDataIdentifiersResponse
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

-- | An array of objects, one for each custom data identifier that meets the
-- criteria specified in the request.
batchGetCustomDataIdentifiersResponse_customDataIdentifiers :: Lens.Lens' BatchGetCustomDataIdentifiersResponse (Prelude.Maybe [BatchGetCustomDataIdentifierSummary])
batchGetCustomDataIdentifiersResponse_customDataIdentifiers :: (Maybe [BatchGetCustomDataIdentifierSummary]
 -> f (Maybe [BatchGetCustomDataIdentifierSummary]))
-> BatchGetCustomDataIdentifiersResponse
-> f BatchGetCustomDataIdentifiersResponse
batchGetCustomDataIdentifiersResponse_customDataIdentifiers = (BatchGetCustomDataIdentifiersResponse
 -> Maybe [BatchGetCustomDataIdentifierSummary])
-> (BatchGetCustomDataIdentifiersResponse
    -> Maybe [BatchGetCustomDataIdentifierSummary]
    -> BatchGetCustomDataIdentifiersResponse)
-> Lens
     BatchGetCustomDataIdentifiersResponse
     BatchGetCustomDataIdentifiersResponse
     (Maybe [BatchGetCustomDataIdentifierSummary])
     (Maybe [BatchGetCustomDataIdentifierSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetCustomDataIdentifiersResponse' {Maybe [BatchGetCustomDataIdentifierSummary]
customDataIdentifiers :: Maybe [BatchGetCustomDataIdentifierSummary]
$sel:customDataIdentifiers:BatchGetCustomDataIdentifiersResponse' :: BatchGetCustomDataIdentifiersResponse
-> Maybe [BatchGetCustomDataIdentifierSummary]
customDataIdentifiers} -> Maybe [BatchGetCustomDataIdentifierSummary]
customDataIdentifiers) (\s :: BatchGetCustomDataIdentifiersResponse
s@BatchGetCustomDataIdentifiersResponse' {} Maybe [BatchGetCustomDataIdentifierSummary]
a -> BatchGetCustomDataIdentifiersResponse
s {$sel:customDataIdentifiers:BatchGetCustomDataIdentifiersResponse' :: Maybe [BatchGetCustomDataIdentifierSummary]
customDataIdentifiers = Maybe [BatchGetCustomDataIdentifierSummary]
a} :: BatchGetCustomDataIdentifiersResponse) ((Maybe [BatchGetCustomDataIdentifierSummary]
  -> f (Maybe [BatchGetCustomDataIdentifierSummary]))
 -> BatchGetCustomDataIdentifiersResponse
 -> f BatchGetCustomDataIdentifiersResponse)
-> ((Maybe [BatchGetCustomDataIdentifierSummary]
     -> f (Maybe [BatchGetCustomDataIdentifierSummary]))
    -> Maybe [BatchGetCustomDataIdentifierSummary]
    -> f (Maybe [BatchGetCustomDataIdentifierSummary]))
-> (Maybe [BatchGetCustomDataIdentifierSummary]
    -> f (Maybe [BatchGetCustomDataIdentifierSummary]))
-> BatchGetCustomDataIdentifiersResponse
-> f BatchGetCustomDataIdentifiersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [BatchGetCustomDataIdentifierSummary]
  [BatchGetCustomDataIdentifierSummary]
  [BatchGetCustomDataIdentifierSummary]
  [BatchGetCustomDataIdentifierSummary]
-> Iso
     (Maybe [BatchGetCustomDataIdentifierSummary])
     (Maybe [BatchGetCustomDataIdentifierSummary])
     (Maybe [BatchGetCustomDataIdentifierSummary])
     (Maybe [BatchGetCustomDataIdentifierSummary])
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
  [BatchGetCustomDataIdentifierSummary]
  [BatchGetCustomDataIdentifierSummary]
  [BatchGetCustomDataIdentifierSummary]
  [BatchGetCustomDataIdentifierSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
batchGetCustomDataIdentifiersResponse_httpStatus :: Lens.Lens' BatchGetCustomDataIdentifiersResponse Prelude.Int
batchGetCustomDataIdentifiersResponse_httpStatus :: (Int -> f Int)
-> BatchGetCustomDataIdentifiersResponse
-> f BatchGetCustomDataIdentifiersResponse
batchGetCustomDataIdentifiersResponse_httpStatus = (BatchGetCustomDataIdentifiersResponse -> Int)
-> (BatchGetCustomDataIdentifiersResponse
    -> Int -> BatchGetCustomDataIdentifiersResponse)
-> Lens
     BatchGetCustomDataIdentifiersResponse
     BatchGetCustomDataIdentifiersResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetCustomDataIdentifiersResponse' {Int
httpStatus :: Int
$sel:httpStatus:BatchGetCustomDataIdentifiersResponse' :: BatchGetCustomDataIdentifiersResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: BatchGetCustomDataIdentifiersResponse
s@BatchGetCustomDataIdentifiersResponse' {} Int
a -> BatchGetCustomDataIdentifiersResponse
s {$sel:httpStatus:BatchGetCustomDataIdentifiersResponse' :: Int
httpStatus = Int
a} :: BatchGetCustomDataIdentifiersResponse)

instance
  Prelude.NFData
    BatchGetCustomDataIdentifiersResponse