{-# 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.CognitoIdentityProvider.ListUserImportJobs
-- 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)
--
-- Lists the user import jobs.
module Amazonka.CognitoIdentityProvider.ListUserImportJobs
  ( -- * Creating a Request
    ListUserImportJobs (..),
    newListUserImportJobs,

    -- * Request Lenses
    listUserImportJobs_paginationToken,
    listUserImportJobs_userPoolId,
    listUserImportJobs_maxResults,

    -- * Destructuring the Response
    ListUserImportJobsResponse (..),
    newListUserImportJobsResponse,

    -- * Response Lenses
    listUserImportJobsResponse_paginationToken,
    listUserImportJobsResponse_userImportJobs,
    listUserImportJobsResponse_httpStatus,
  )
where

import Amazonka.CognitoIdentityProvider.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

-- | Represents the request to list the user import jobs.
--
-- /See:/ 'newListUserImportJobs' smart constructor.
data ListUserImportJobs = ListUserImportJobs'
  { -- | An identifier that was returned from the previous call to
    -- @ListUserImportJobs@, which can be used to return the next set of import
    -- jobs in the list.
    ListUserImportJobs -> Maybe Text
paginationToken :: Prelude.Maybe Prelude.Text,
    -- | The user pool ID for the user pool that the users are being imported
    -- into.
    ListUserImportJobs -> Text
userPoolId :: Prelude.Text,
    -- | The maximum number of import jobs you want the request to return.
    ListUserImportJobs -> Natural
maxResults :: Prelude.Natural
  }
  deriving (ListUserImportJobs -> ListUserImportJobs -> Bool
(ListUserImportJobs -> ListUserImportJobs -> Bool)
-> (ListUserImportJobs -> ListUserImportJobs -> Bool)
-> Eq ListUserImportJobs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListUserImportJobs -> ListUserImportJobs -> Bool
$c/= :: ListUserImportJobs -> ListUserImportJobs -> Bool
== :: ListUserImportJobs -> ListUserImportJobs -> Bool
$c== :: ListUserImportJobs -> ListUserImportJobs -> Bool
Prelude.Eq, ReadPrec [ListUserImportJobs]
ReadPrec ListUserImportJobs
Int -> ReadS ListUserImportJobs
ReadS [ListUserImportJobs]
(Int -> ReadS ListUserImportJobs)
-> ReadS [ListUserImportJobs]
-> ReadPrec ListUserImportJobs
-> ReadPrec [ListUserImportJobs]
-> Read ListUserImportJobs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListUserImportJobs]
$creadListPrec :: ReadPrec [ListUserImportJobs]
readPrec :: ReadPrec ListUserImportJobs
$creadPrec :: ReadPrec ListUserImportJobs
readList :: ReadS [ListUserImportJobs]
$creadList :: ReadS [ListUserImportJobs]
readsPrec :: Int -> ReadS ListUserImportJobs
$creadsPrec :: Int -> ReadS ListUserImportJobs
Prelude.Read, Int -> ListUserImportJobs -> ShowS
[ListUserImportJobs] -> ShowS
ListUserImportJobs -> String
(Int -> ListUserImportJobs -> ShowS)
-> (ListUserImportJobs -> String)
-> ([ListUserImportJobs] -> ShowS)
-> Show ListUserImportJobs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListUserImportJobs] -> ShowS
$cshowList :: [ListUserImportJobs] -> ShowS
show :: ListUserImportJobs -> String
$cshow :: ListUserImportJobs -> String
showsPrec :: Int -> ListUserImportJobs -> ShowS
$cshowsPrec :: Int -> ListUserImportJobs -> ShowS
Prelude.Show, (forall x. ListUserImportJobs -> Rep ListUserImportJobs x)
-> (forall x. Rep ListUserImportJobs x -> ListUserImportJobs)
-> Generic ListUserImportJobs
forall x. Rep ListUserImportJobs x -> ListUserImportJobs
forall x. ListUserImportJobs -> Rep ListUserImportJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListUserImportJobs x -> ListUserImportJobs
$cfrom :: forall x. ListUserImportJobs -> Rep ListUserImportJobs x
Prelude.Generic)

-- |
-- Create a value of 'ListUserImportJobs' 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:
--
-- 'paginationToken', 'listUserImportJobs_paginationToken' - An identifier that was returned from the previous call to
-- @ListUserImportJobs@, which can be used to return the next set of import
-- jobs in the list.
--
-- 'userPoolId', 'listUserImportJobs_userPoolId' - The user pool ID for the user pool that the users are being imported
-- into.
--
-- 'maxResults', 'listUserImportJobs_maxResults' - The maximum number of import jobs you want the request to return.
newListUserImportJobs ::
  -- | 'userPoolId'
  Prelude.Text ->
  -- | 'maxResults'
  Prelude.Natural ->
  ListUserImportJobs
newListUserImportJobs :: Text -> Natural -> ListUserImportJobs
newListUserImportJobs Text
pUserPoolId_ Natural
pMaxResults_ =
  ListUserImportJobs' :: Maybe Text -> Text -> Natural -> ListUserImportJobs
ListUserImportJobs'
    { $sel:paginationToken:ListUserImportJobs' :: Maybe Text
paginationToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:userPoolId:ListUserImportJobs' :: Text
userPoolId = Text
pUserPoolId_,
      $sel:maxResults:ListUserImportJobs' :: Natural
maxResults = Natural
pMaxResults_
    }

-- | An identifier that was returned from the previous call to
-- @ListUserImportJobs@, which can be used to return the next set of import
-- jobs in the list.
listUserImportJobs_paginationToken :: Lens.Lens' ListUserImportJobs (Prelude.Maybe Prelude.Text)
listUserImportJobs_paginationToken :: (Maybe Text -> f (Maybe Text))
-> ListUserImportJobs -> f ListUserImportJobs
listUserImportJobs_paginationToken = (ListUserImportJobs -> Maybe Text)
-> (ListUserImportJobs -> Maybe Text -> ListUserImportJobs)
-> Lens
     ListUserImportJobs ListUserImportJobs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUserImportJobs' {Maybe Text
paginationToken :: Maybe Text
$sel:paginationToken:ListUserImportJobs' :: ListUserImportJobs -> Maybe Text
paginationToken} -> Maybe Text
paginationToken) (\s :: ListUserImportJobs
s@ListUserImportJobs' {} Maybe Text
a -> ListUserImportJobs
s {$sel:paginationToken:ListUserImportJobs' :: Maybe Text
paginationToken = Maybe Text
a} :: ListUserImportJobs)

-- | The user pool ID for the user pool that the users are being imported
-- into.
listUserImportJobs_userPoolId :: Lens.Lens' ListUserImportJobs Prelude.Text
listUserImportJobs_userPoolId :: (Text -> f Text) -> ListUserImportJobs -> f ListUserImportJobs
listUserImportJobs_userPoolId = (ListUserImportJobs -> Text)
-> (ListUserImportJobs -> Text -> ListUserImportJobs)
-> Lens ListUserImportJobs ListUserImportJobs Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUserImportJobs' {Text
userPoolId :: Text
$sel:userPoolId:ListUserImportJobs' :: ListUserImportJobs -> Text
userPoolId} -> Text
userPoolId) (\s :: ListUserImportJobs
s@ListUserImportJobs' {} Text
a -> ListUserImportJobs
s {$sel:userPoolId:ListUserImportJobs' :: Text
userPoolId = Text
a} :: ListUserImportJobs)

-- | The maximum number of import jobs you want the request to return.
listUserImportJobs_maxResults :: Lens.Lens' ListUserImportJobs Prelude.Natural
listUserImportJobs_maxResults :: (Natural -> f Natural)
-> ListUserImportJobs -> f ListUserImportJobs
listUserImportJobs_maxResults = (ListUserImportJobs -> Natural)
-> (ListUserImportJobs -> Natural -> ListUserImportJobs)
-> Lens ListUserImportJobs ListUserImportJobs Natural Natural
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUserImportJobs' {Natural
maxResults :: Natural
$sel:maxResults:ListUserImportJobs' :: ListUserImportJobs -> Natural
maxResults} -> Natural
maxResults) (\s :: ListUserImportJobs
s@ListUserImportJobs' {} Natural
a -> ListUserImportJobs
s {$sel:maxResults:ListUserImportJobs' :: Natural
maxResults = Natural
a} :: ListUserImportJobs)

instance Core.AWSRequest ListUserImportJobs where
  type
    AWSResponse ListUserImportJobs =
      ListUserImportJobsResponse
  request :: ListUserImportJobs -> Request ListUserImportJobs
request = Service -> ListUserImportJobs -> Request ListUserImportJobs
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListUserImportJobs
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListUserImportJobs)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListUserImportJobs))
-> Logger
-> Service
-> Proxy ListUserImportJobs
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListUserImportJobs)))
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 (NonEmpty UserImportJobType)
-> Int
-> ListUserImportJobsResponse
ListUserImportJobsResponse'
            (Maybe Text
 -> Maybe (NonEmpty UserImportJobType)
 -> Int
 -> ListUserImportJobsResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe (NonEmpty UserImportJobType)
      -> Int -> ListUserImportJobsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"PaginationToken")
            Either
  String
  (Maybe (NonEmpty UserImportJobType)
   -> Int -> ListUserImportJobsResponse)
-> Either String (Maybe (NonEmpty UserImportJobType))
-> Either String (Int -> ListUserImportJobsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe (NonEmpty UserImportJobType))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"UserImportJobs")
            Either String (Int -> ListUserImportJobsResponse)
-> Either String Int -> Either String ListUserImportJobsResponse
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 ListUserImportJobs

instance Prelude.NFData ListUserImportJobs

instance Core.ToHeaders ListUserImportJobs where
  toHeaders :: ListUserImportJobs -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListUserImportJobs -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSCognitoIdentityProviderService.ListUserImportJobs" ::
                          Prelude.ByteString
                      ),
            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 ListUserImportJobs where
  toJSON :: ListUserImportJobs -> Value
toJSON ListUserImportJobs' {Natural
Maybe Text
Text
maxResults :: Natural
userPoolId :: Text
paginationToken :: Maybe Text
$sel:maxResults:ListUserImportJobs' :: ListUserImportJobs -> Natural
$sel:userPoolId:ListUserImportJobs' :: ListUserImportJobs -> Text
$sel:paginationToken:ListUserImportJobs' :: ListUserImportJobs -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"PaginationToken" 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
paginationToken,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"UserPoolId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
userPoolId),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Natural
maxResults)
          ]
      )

instance Core.ToPath ListUserImportJobs where
  toPath :: ListUserImportJobs -> ByteString
toPath = ByteString -> ListUserImportJobs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

-- | Represents the response from the server to the request to list the user
-- import jobs.
--
-- /See:/ 'newListUserImportJobsResponse' smart constructor.
data ListUserImportJobsResponse = ListUserImportJobsResponse'
  { -- | An identifier that can be used to return the next set of user import
    -- jobs in the list.
    ListUserImportJobsResponse -> Maybe Text
paginationToken :: Prelude.Maybe Prelude.Text,
    -- | The user import jobs.
    ListUserImportJobsResponse -> Maybe (NonEmpty UserImportJobType)
userImportJobs :: Prelude.Maybe (Prelude.NonEmpty UserImportJobType),
    -- | The response's http status code.
    ListUserImportJobsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListUserImportJobsResponse -> ListUserImportJobsResponse -> Bool
(ListUserImportJobsResponse -> ListUserImportJobsResponse -> Bool)
-> (ListUserImportJobsResponse
    -> ListUserImportJobsResponse -> Bool)
-> Eq ListUserImportJobsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListUserImportJobsResponse -> ListUserImportJobsResponse -> Bool
$c/= :: ListUserImportJobsResponse -> ListUserImportJobsResponse -> Bool
== :: ListUserImportJobsResponse -> ListUserImportJobsResponse -> Bool
$c== :: ListUserImportJobsResponse -> ListUserImportJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListUserImportJobsResponse]
ReadPrec ListUserImportJobsResponse
Int -> ReadS ListUserImportJobsResponse
ReadS [ListUserImportJobsResponse]
(Int -> ReadS ListUserImportJobsResponse)
-> ReadS [ListUserImportJobsResponse]
-> ReadPrec ListUserImportJobsResponse
-> ReadPrec [ListUserImportJobsResponse]
-> Read ListUserImportJobsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListUserImportJobsResponse]
$creadListPrec :: ReadPrec [ListUserImportJobsResponse]
readPrec :: ReadPrec ListUserImportJobsResponse
$creadPrec :: ReadPrec ListUserImportJobsResponse
readList :: ReadS [ListUserImportJobsResponse]
$creadList :: ReadS [ListUserImportJobsResponse]
readsPrec :: Int -> ReadS ListUserImportJobsResponse
$creadsPrec :: Int -> ReadS ListUserImportJobsResponse
Prelude.Read, Int -> ListUserImportJobsResponse -> ShowS
[ListUserImportJobsResponse] -> ShowS
ListUserImportJobsResponse -> String
(Int -> ListUserImportJobsResponse -> ShowS)
-> (ListUserImportJobsResponse -> String)
-> ([ListUserImportJobsResponse] -> ShowS)
-> Show ListUserImportJobsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListUserImportJobsResponse] -> ShowS
$cshowList :: [ListUserImportJobsResponse] -> ShowS
show :: ListUserImportJobsResponse -> String
$cshow :: ListUserImportJobsResponse -> String
showsPrec :: Int -> ListUserImportJobsResponse -> ShowS
$cshowsPrec :: Int -> ListUserImportJobsResponse -> ShowS
Prelude.Show, (forall x.
 ListUserImportJobsResponse -> Rep ListUserImportJobsResponse x)
-> (forall x.
    Rep ListUserImportJobsResponse x -> ListUserImportJobsResponse)
-> Generic ListUserImportJobsResponse
forall x.
Rep ListUserImportJobsResponse x -> ListUserImportJobsResponse
forall x.
ListUserImportJobsResponse -> Rep ListUserImportJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListUserImportJobsResponse x -> ListUserImportJobsResponse
$cfrom :: forall x.
ListUserImportJobsResponse -> Rep ListUserImportJobsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListUserImportJobsResponse' 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:
--
-- 'paginationToken', 'listUserImportJobsResponse_paginationToken' - An identifier that can be used to return the next set of user import
-- jobs in the list.
--
-- 'userImportJobs', 'listUserImportJobsResponse_userImportJobs' - The user import jobs.
--
-- 'httpStatus', 'listUserImportJobsResponse_httpStatus' - The response's http status code.
newListUserImportJobsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListUserImportJobsResponse
newListUserImportJobsResponse :: Int -> ListUserImportJobsResponse
newListUserImportJobsResponse Int
pHttpStatus_ =
  ListUserImportJobsResponse' :: Maybe Text
-> Maybe (NonEmpty UserImportJobType)
-> Int
-> ListUserImportJobsResponse
ListUserImportJobsResponse'
    { $sel:paginationToken:ListUserImportJobsResponse' :: Maybe Text
paginationToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:userImportJobs:ListUserImportJobsResponse' :: Maybe (NonEmpty UserImportJobType)
userImportJobs = Maybe (NonEmpty UserImportJobType)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListUserImportJobsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | An identifier that can be used to return the next set of user import
-- jobs in the list.
listUserImportJobsResponse_paginationToken :: Lens.Lens' ListUserImportJobsResponse (Prelude.Maybe Prelude.Text)
listUserImportJobsResponse_paginationToken :: (Maybe Text -> f (Maybe Text))
-> ListUserImportJobsResponse -> f ListUserImportJobsResponse
listUserImportJobsResponse_paginationToken = (ListUserImportJobsResponse -> Maybe Text)
-> (ListUserImportJobsResponse
    -> Maybe Text -> ListUserImportJobsResponse)
-> Lens
     ListUserImportJobsResponse
     ListUserImportJobsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUserImportJobsResponse' {Maybe Text
paginationToken :: Maybe Text
$sel:paginationToken:ListUserImportJobsResponse' :: ListUserImportJobsResponse -> Maybe Text
paginationToken} -> Maybe Text
paginationToken) (\s :: ListUserImportJobsResponse
s@ListUserImportJobsResponse' {} Maybe Text
a -> ListUserImportJobsResponse
s {$sel:paginationToken:ListUserImportJobsResponse' :: Maybe Text
paginationToken = Maybe Text
a} :: ListUserImportJobsResponse)

-- | The user import jobs.
listUserImportJobsResponse_userImportJobs :: Lens.Lens' ListUserImportJobsResponse (Prelude.Maybe (Prelude.NonEmpty UserImportJobType))
listUserImportJobsResponse_userImportJobs :: (Maybe (NonEmpty UserImportJobType)
 -> f (Maybe (NonEmpty UserImportJobType)))
-> ListUserImportJobsResponse -> f ListUserImportJobsResponse
listUserImportJobsResponse_userImportJobs = (ListUserImportJobsResponse -> Maybe (NonEmpty UserImportJobType))
-> (ListUserImportJobsResponse
    -> Maybe (NonEmpty UserImportJobType)
    -> ListUserImportJobsResponse)
-> Lens
     ListUserImportJobsResponse
     ListUserImportJobsResponse
     (Maybe (NonEmpty UserImportJobType))
     (Maybe (NonEmpty UserImportJobType))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUserImportJobsResponse' {Maybe (NonEmpty UserImportJobType)
userImportJobs :: Maybe (NonEmpty UserImportJobType)
$sel:userImportJobs:ListUserImportJobsResponse' :: ListUserImportJobsResponse -> Maybe (NonEmpty UserImportJobType)
userImportJobs} -> Maybe (NonEmpty UserImportJobType)
userImportJobs) (\s :: ListUserImportJobsResponse
s@ListUserImportJobsResponse' {} Maybe (NonEmpty UserImportJobType)
a -> ListUserImportJobsResponse
s {$sel:userImportJobs:ListUserImportJobsResponse' :: Maybe (NonEmpty UserImportJobType)
userImportJobs = Maybe (NonEmpty UserImportJobType)
a} :: ListUserImportJobsResponse) ((Maybe (NonEmpty UserImportJobType)
  -> f (Maybe (NonEmpty UserImportJobType)))
 -> ListUserImportJobsResponse -> f ListUserImportJobsResponse)
-> ((Maybe (NonEmpty UserImportJobType)
     -> f (Maybe (NonEmpty UserImportJobType)))
    -> Maybe (NonEmpty UserImportJobType)
    -> f (Maybe (NonEmpty UserImportJobType)))
-> (Maybe (NonEmpty UserImportJobType)
    -> f (Maybe (NonEmpty UserImportJobType)))
-> ListUserImportJobsResponse
-> f ListUserImportJobsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (NonEmpty UserImportJobType)
  (NonEmpty UserImportJobType)
  (NonEmpty UserImportJobType)
  (NonEmpty UserImportJobType)
-> Iso
     (Maybe (NonEmpty UserImportJobType))
     (Maybe (NonEmpty UserImportJobType))
     (Maybe (NonEmpty UserImportJobType))
     (Maybe (NonEmpty UserImportJobType))
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
  (NonEmpty UserImportJobType)
  (NonEmpty UserImportJobType)
  (NonEmpty UserImportJobType)
  (NonEmpty UserImportJobType)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData ListUserImportJobsResponse