{-# 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.VoiceId.ListFraudsterRegistrationJobs
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists all the fraudster registration jobs in the domain with the given
-- @JobStatus@. If @JobStatus@ is not provided, this lists all fraudster
-- registration jobs in the given domain.
--
-- This operation returns paginated results.
module Amazonka.VoiceId.ListFraudsterRegistrationJobs
  ( -- * Creating a Request
    ListFraudsterRegistrationJobs (..),
    newListFraudsterRegistrationJobs,

    -- * Request Lenses
    listFraudsterRegistrationJobs_jobStatus,
    listFraudsterRegistrationJobs_maxResults,
    listFraudsterRegistrationJobs_nextToken,
    listFraudsterRegistrationJobs_domainId,

    -- * Destructuring the Response
    ListFraudsterRegistrationJobsResponse (..),
    newListFraudsterRegistrationJobsResponse,

    -- * Response Lenses
    listFraudsterRegistrationJobsResponse_jobSummaries,
    listFraudsterRegistrationJobsResponse_nextToken,
    listFraudsterRegistrationJobsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.VoiceId.Types

-- | /See:/ 'newListFraudsterRegistrationJobs' smart constructor.
data ListFraudsterRegistrationJobs = ListFraudsterRegistrationJobs'
  { -- | Provides the status of your fraudster registration job.
    ListFraudsterRegistrationJobs
-> Maybe FraudsterRegistrationJobStatus
jobStatus :: Prelude.Maybe FraudsterRegistrationJobStatus,
    -- | The maximum number of results that are returned per call. You can use
    -- @NextToken@ to obtain further pages of results. The default is 100; the
    -- maximum allowed page size is also 100.
    ListFraudsterRegistrationJobs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | If @NextToken@ is returned, there are more results available. The value
    -- of @NextToken@ is a unique pagination token for each page. Make the call
    -- again using the returned token to retrieve the next page. Keep all other
    -- arguments unchanged. Each pagination token expires after 24 hours.
    ListFraudsterRegistrationJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the domain containing the fraudster registration Jobs.
    ListFraudsterRegistrationJobs -> Text
domainId :: Prelude.Text
  }
  deriving (ListFraudsterRegistrationJobs
-> ListFraudsterRegistrationJobs -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFraudsterRegistrationJobs
-> ListFraudsterRegistrationJobs -> Bool
$c/= :: ListFraudsterRegistrationJobs
-> ListFraudsterRegistrationJobs -> Bool
== :: ListFraudsterRegistrationJobs
-> ListFraudsterRegistrationJobs -> Bool
$c== :: ListFraudsterRegistrationJobs
-> ListFraudsterRegistrationJobs -> Bool
Prelude.Eq, ReadPrec [ListFraudsterRegistrationJobs]
ReadPrec ListFraudsterRegistrationJobs
Int -> ReadS ListFraudsterRegistrationJobs
ReadS [ListFraudsterRegistrationJobs]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFraudsterRegistrationJobs]
$creadListPrec :: ReadPrec [ListFraudsterRegistrationJobs]
readPrec :: ReadPrec ListFraudsterRegistrationJobs
$creadPrec :: ReadPrec ListFraudsterRegistrationJobs
readList :: ReadS [ListFraudsterRegistrationJobs]
$creadList :: ReadS [ListFraudsterRegistrationJobs]
readsPrec :: Int -> ReadS ListFraudsterRegistrationJobs
$creadsPrec :: Int -> ReadS ListFraudsterRegistrationJobs
Prelude.Read, Int -> ListFraudsterRegistrationJobs -> ShowS
[ListFraudsterRegistrationJobs] -> ShowS
ListFraudsterRegistrationJobs -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFraudsterRegistrationJobs] -> ShowS
$cshowList :: [ListFraudsterRegistrationJobs] -> ShowS
show :: ListFraudsterRegistrationJobs -> String
$cshow :: ListFraudsterRegistrationJobs -> String
showsPrec :: Int -> ListFraudsterRegistrationJobs -> ShowS
$cshowsPrec :: Int -> ListFraudsterRegistrationJobs -> ShowS
Prelude.Show, forall x.
Rep ListFraudsterRegistrationJobs x
-> ListFraudsterRegistrationJobs
forall x.
ListFraudsterRegistrationJobs
-> Rep ListFraudsterRegistrationJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListFraudsterRegistrationJobs x
-> ListFraudsterRegistrationJobs
$cfrom :: forall x.
ListFraudsterRegistrationJobs
-> Rep ListFraudsterRegistrationJobs x
Prelude.Generic)

-- |
-- Create a value of 'ListFraudsterRegistrationJobs' 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:
--
-- 'jobStatus', 'listFraudsterRegistrationJobs_jobStatus' - Provides the status of your fraudster registration job.
--
-- 'maxResults', 'listFraudsterRegistrationJobs_maxResults' - The maximum number of results that are returned per call. You can use
-- @NextToken@ to obtain further pages of results. The default is 100; the
-- maximum allowed page size is also 100.
--
-- 'nextToken', 'listFraudsterRegistrationJobs_nextToken' - If @NextToken@ is returned, there are more results available. The value
-- of @NextToken@ is a unique pagination token for each page. Make the call
-- again using the returned token to retrieve the next page. Keep all other
-- arguments unchanged. Each pagination token expires after 24 hours.
--
-- 'domainId', 'listFraudsterRegistrationJobs_domainId' - The identifier of the domain containing the fraudster registration Jobs.
newListFraudsterRegistrationJobs ::
  -- | 'domainId'
  Prelude.Text ->
  ListFraudsterRegistrationJobs
newListFraudsterRegistrationJobs :: Text -> ListFraudsterRegistrationJobs
newListFraudsterRegistrationJobs Text
pDomainId_ =
  ListFraudsterRegistrationJobs'
    { $sel:jobStatus:ListFraudsterRegistrationJobs' :: Maybe FraudsterRegistrationJobStatus
jobStatus =
        forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListFraudsterRegistrationJobs' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListFraudsterRegistrationJobs' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:domainId:ListFraudsterRegistrationJobs' :: Text
domainId = Text
pDomainId_
    }

-- | Provides the status of your fraudster registration job.
listFraudsterRegistrationJobs_jobStatus :: Lens.Lens' ListFraudsterRegistrationJobs (Prelude.Maybe FraudsterRegistrationJobStatus)
listFraudsterRegistrationJobs_jobStatus :: Lens'
  ListFraudsterRegistrationJobs
  (Maybe FraudsterRegistrationJobStatus)
listFraudsterRegistrationJobs_jobStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFraudsterRegistrationJobs' {Maybe FraudsterRegistrationJobStatus
jobStatus :: Maybe FraudsterRegistrationJobStatus
$sel:jobStatus:ListFraudsterRegistrationJobs' :: ListFraudsterRegistrationJobs
-> Maybe FraudsterRegistrationJobStatus
jobStatus} -> Maybe FraudsterRegistrationJobStatus
jobStatus) (\s :: ListFraudsterRegistrationJobs
s@ListFraudsterRegistrationJobs' {} Maybe FraudsterRegistrationJobStatus
a -> ListFraudsterRegistrationJobs
s {$sel:jobStatus:ListFraudsterRegistrationJobs' :: Maybe FraudsterRegistrationJobStatus
jobStatus = Maybe FraudsterRegistrationJobStatus
a} :: ListFraudsterRegistrationJobs)

-- | The maximum number of results that are returned per call. You can use
-- @NextToken@ to obtain further pages of results. The default is 100; the
-- maximum allowed page size is also 100.
listFraudsterRegistrationJobs_maxResults :: Lens.Lens' ListFraudsterRegistrationJobs (Prelude.Maybe Prelude.Natural)
listFraudsterRegistrationJobs_maxResults :: Lens' ListFraudsterRegistrationJobs (Maybe Natural)
listFraudsterRegistrationJobs_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFraudsterRegistrationJobs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListFraudsterRegistrationJobs' :: ListFraudsterRegistrationJobs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListFraudsterRegistrationJobs
s@ListFraudsterRegistrationJobs' {} Maybe Natural
a -> ListFraudsterRegistrationJobs
s {$sel:maxResults:ListFraudsterRegistrationJobs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListFraudsterRegistrationJobs)

-- | If @NextToken@ is returned, there are more results available. The value
-- of @NextToken@ is a unique pagination token for each page. Make the call
-- again using the returned token to retrieve the next page. Keep all other
-- arguments unchanged. Each pagination token expires after 24 hours.
listFraudsterRegistrationJobs_nextToken :: Lens.Lens' ListFraudsterRegistrationJobs (Prelude.Maybe Prelude.Text)
listFraudsterRegistrationJobs_nextToken :: Lens' ListFraudsterRegistrationJobs (Maybe Text)
listFraudsterRegistrationJobs_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFraudsterRegistrationJobs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListFraudsterRegistrationJobs' :: ListFraudsterRegistrationJobs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListFraudsterRegistrationJobs
s@ListFraudsterRegistrationJobs' {} Maybe Text
a -> ListFraudsterRegistrationJobs
s {$sel:nextToken:ListFraudsterRegistrationJobs' :: Maybe Text
nextToken = Maybe Text
a} :: ListFraudsterRegistrationJobs)

-- | The identifier of the domain containing the fraudster registration Jobs.
listFraudsterRegistrationJobs_domainId :: Lens.Lens' ListFraudsterRegistrationJobs Prelude.Text
listFraudsterRegistrationJobs_domainId :: Lens' ListFraudsterRegistrationJobs Text
listFraudsterRegistrationJobs_domainId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFraudsterRegistrationJobs' {Text
domainId :: Text
$sel:domainId:ListFraudsterRegistrationJobs' :: ListFraudsterRegistrationJobs -> Text
domainId} -> Text
domainId) (\s :: ListFraudsterRegistrationJobs
s@ListFraudsterRegistrationJobs' {} Text
a -> ListFraudsterRegistrationJobs
s {$sel:domainId:ListFraudsterRegistrationJobs' :: Text
domainId = Text
a} :: ListFraudsterRegistrationJobs)

instance Core.AWSPager ListFraudsterRegistrationJobs where
  page :: ListFraudsterRegistrationJobs
-> AWSResponse ListFraudsterRegistrationJobs
-> Maybe ListFraudsterRegistrationJobs
page ListFraudsterRegistrationJobs
rq AWSResponse ListFraudsterRegistrationJobs
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListFraudsterRegistrationJobs
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListFraudsterRegistrationJobsResponse (Maybe Text)
listFraudsterRegistrationJobsResponse_nextToken
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListFraudsterRegistrationJobs
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
  ListFraudsterRegistrationJobsResponse
  (Maybe [FraudsterRegistrationJobSummary])
listFraudsterRegistrationJobsResponse_jobSummaries
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListFraudsterRegistrationJobs
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListFraudsterRegistrationJobs (Maybe Text)
listFraudsterRegistrationJobs_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListFraudsterRegistrationJobs
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListFraudsterRegistrationJobsResponse (Maybe Text)
listFraudsterRegistrationJobsResponse_nextToken
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance
  Core.AWSRequest
    ListFraudsterRegistrationJobs
  where
  type
    AWSResponse ListFraudsterRegistrationJobs =
      ListFraudsterRegistrationJobsResponse
  request :: (Service -> Service)
-> ListFraudsterRegistrationJobs
-> Request ListFraudsterRegistrationJobs
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListFraudsterRegistrationJobs
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListFraudsterRegistrationJobs)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe [FraudsterRegistrationJobSummary]
-> Maybe Text -> Int -> ListFraudsterRegistrationJobsResponse
ListFraudsterRegistrationJobsResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"JobSummaries" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    ListFraudsterRegistrationJobs
  where
  hashWithSalt :: Int -> ListFraudsterRegistrationJobs -> Int
hashWithSalt Int
_salt ListFraudsterRegistrationJobs' {Maybe Natural
Maybe Text
Maybe FraudsterRegistrationJobStatus
Text
domainId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
jobStatus :: Maybe FraudsterRegistrationJobStatus
$sel:domainId:ListFraudsterRegistrationJobs' :: ListFraudsterRegistrationJobs -> Text
$sel:nextToken:ListFraudsterRegistrationJobs' :: ListFraudsterRegistrationJobs -> Maybe Text
$sel:maxResults:ListFraudsterRegistrationJobs' :: ListFraudsterRegistrationJobs -> Maybe Natural
$sel:jobStatus:ListFraudsterRegistrationJobs' :: ListFraudsterRegistrationJobs
-> Maybe FraudsterRegistrationJobStatus
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe FraudsterRegistrationJobStatus
jobStatus
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
domainId

instance Prelude.NFData ListFraudsterRegistrationJobs where
  rnf :: ListFraudsterRegistrationJobs -> ()
rnf ListFraudsterRegistrationJobs' {Maybe Natural
Maybe Text
Maybe FraudsterRegistrationJobStatus
Text
domainId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
jobStatus :: Maybe FraudsterRegistrationJobStatus
$sel:domainId:ListFraudsterRegistrationJobs' :: ListFraudsterRegistrationJobs -> Text
$sel:nextToken:ListFraudsterRegistrationJobs' :: ListFraudsterRegistrationJobs -> Maybe Text
$sel:maxResults:ListFraudsterRegistrationJobs' :: ListFraudsterRegistrationJobs -> Maybe Natural
$sel:jobStatus:ListFraudsterRegistrationJobs' :: ListFraudsterRegistrationJobs
-> Maybe FraudsterRegistrationJobStatus
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe FraudsterRegistrationJobStatus
jobStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
domainId

instance Data.ToHeaders ListFraudsterRegistrationJobs where
  toHeaders :: ListFraudsterRegistrationJobs -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"VoiceID.ListFraudsterRegistrationJobs" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.0" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToJSON ListFraudsterRegistrationJobs where
  toJSON :: ListFraudsterRegistrationJobs -> Value
toJSON ListFraudsterRegistrationJobs' {Maybe Natural
Maybe Text
Maybe FraudsterRegistrationJobStatus
Text
domainId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
jobStatus :: Maybe FraudsterRegistrationJobStatus
$sel:domainId:ListFraudsterRegistrationJobs' :: ListFraudsterRegistrationJobs -> Text
$sel:nextToken:ListFraudsterRegistrationJobs' :: ListFraudsterRegistrationJobs -> Maybe Text
$sel:maxResults:ListFraudsterRegistrationJobs' :: ListFraudsterRegistrationJobs -> Maybe Natural
$sel:jobStatus:ListFraudsterRegistrationJobs' :: ListFraudsterRegistrationJobs
-> Maybe FraudsterRegistrationJobStatus
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"JobStatus" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FraudsterRegistrationJobStatus
jobStatus,
            (Key
"MaxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
            (Key
"NextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
            forall a. a -> Maybe a
Prelude.Just (Key
"DomainId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
domainId)
          ]
      )

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

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

-- | /See:/ 'newListFraudsterRegistrationJobsResponse' smart constructor.
data ListFraudsterRegistrationJobsResponse = ListFraudsterRegistrationJobsResponse'
  { -- | A list containing details about each specified fraudster registration
    -- job.
    ListFraudsterRegistrationJobsResponse
-> Maybe [FraudsterRegistrationJobSummary]
jobSummaries :: Prelude.Maybe [FraudsterRegistrationJobSummary],
    -- | If @NextToken@ is returned, there are more results available. The value
    -- of @NextToken@ is a unique pagination token for each page. Make the call
    -- again using the returned token to retrieve the next page. Keep all other
    -- arguments unchanged. Each pagination token expires after 24 hours.
    ListFraudsterRegistrationJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListFraudsterRegistrationJobsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListFraudsterRegistrationJobsResponse
-> ListFraudsterRegistrationJobsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFraudsterRegistrationJobsResponse
-> ListFraudsterRegistrationJobsResponse -> Bool
$c/= :: ListFraudsterRegistrationJobsResponse
-> ListFraudsterRegistrationJobsResponse -> Bool
== :: ListFraudsterRegistrationJobsResponse
-> ListFraudsterRegistrationJobsResponse -> Bool
$c== :: ListFraudsterRegistrationJobsResponse
-> ListFraudsterRegistrationJobsResponse -> Bool
Prelude.Eq, Int -> ListFraudsterRegistrationJobsResponse -> ShowS
[ListFraudsterRegistrationJobsResponse] -> ShowS
ListFraudsterRegistrationJobsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFraudsterRegistrationJobsResponse] -> ShowS
$cshowList :: [ListFraudsterRegistrationJobsResponse] -> ShowS
show :: ListFraudsterRegistrationJobsResponse -> String
$cshow :: ListFraudsterRegistrationJobsResponse -> String
showsPrec :: Int -> ListFraudsterRegistrationJobsResponse -> ShowS
$cshowsPrec :: Int -> ListFraudsterRegistrationJobsResponse -> ShowS
Prelude.Show, forall x.
Rep ListFraudsterRegistrationJobsResponse x
-> ListFraudsterRegistrationJobsResponse
forall x.
ListFraudsterRegistrationJobsResponse
-> Rep ListFraudsterRegistrationJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListFraudsterRegistrationJobsResponse x
-> ListFraudsterRegistrationJobsResponse
$cfrom :: forall x.
ListFraudsterRegistrationJobsResponse
-> Rep ListFraudsterRegistrationJobsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListFraudsterRegistrationJobsResponse' 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:
--
-- 'jobSummaries', 'listFraudsterRegistrationJobsResponse_jobSummaries' - A list containing details about each specified fraudster registration
-- job.
--
-- 'nextToken', 'listFraudsterRegistrationJobsResponse_nextToken' - If @NextToken@ is returned, there are more results available. The value
-- of @NextToken@ is a unique pagination token for each page. Make the call
-- again using the returned token to retrieve the next page. Keep all other
-- arguments unchanged. Each pagination token expires after 24 hours.
--
-- 'httpStatus', 'listFraudsterRegistrationJobsResponse_httpStatus' - The response's http status code.
newListFraudsterRegistrationJobsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListFraudsterRegistrationJobsResponse
newListFraudsterRegistrationJobsResponse :: Int -> ListFraudsterRegistrationJobsResponse
newListFraudsterRegistrationJobsResponse Int
pHttpStatus_ =
  ListFraudsterRegistrationJobsResponse'
    { $sel:jobSummaries:ListFraudsterRegistrationJobsResponse' :: Maybe [FraudsterRegistrationJobSummary]
jobSummaries =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListFraudsterRegistrationJobsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListFraudsterRegistrationJobsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list containing details about each specified fraudster registration
-- job.
listFraudsterRegistrationJobsResponse_jobSummaries :: Lens.Lens' ListFraudsterRegistrationJobsResponse (Prelude.Maybe [FraudsterRegistrationJobSummary])
listFraudsterRegistrationJobsResponse_jobSummaries :: Lens'
  ListFraudsterRegistrationJobsResponse
  (Maybe [FraudsterRegistrationJobSummary])
listFraudsterRegistrationJobsResponse_jobSummaries = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFraudsterRegistrationJobsResponse' {Maybe [FraudsterRegistrationJobSummary]
jobSummaries :: Maybe [FraudsterRegistrationJobSummary]
$sel:jobSummaries:ListFraudsterRegistrationJobsResponse' :: ListFraudsterRegistrationJobsResponse
-> Maybe [FraudsterRegistrationJobSummary]
jobSummaries} -> Maybe [FraudsterRegistrationJobSummary]
jobSummaries) (\s :: ListFraudsterRegistrationJobsResponse
s@ListFraudsterRegistrationJobsResponse' {} Maybe [FraudsterRegistrationJobSummary]
a -> ListFraudsterRegistrationJobsResponse
s {$sel:jobSummaries:ListFraudsterRegistrationJobsResponse' :: Maybe [FraudsterRegistrationJobSummary]
jobSummaries = Maybe [FraudsterRegistrationJobSummary]
a} :: ListFraudsterRegistrationJobsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | If @NextToken@ is returned, there are more results available. The value
-- of @NextToken@ is a unique pagination token for each page. Make the call
-- again using the returned token to retrieve the next page. Keep all other
-- arguments unchanged. Each pagination token expires after 24 hours.
listFraudsterRegistrationJobsResponse_nextToken :: Lens.Lens' ListFraudsterRegistrationJobsResponse (Prelude.Maybe Prelude.Text)
listFraudsterRegistrationJobsResponse_nextToken :: Lens' ListFraudsterRegistrationJobsResponse (Maybe Text)
listFraudsterRegistrationJobsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFraudsterRegistrationJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListFraudsterRegistrationJobsResponse' :: ListFraudsterRegistrationJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListFraudsterRegistrationJobsResponse
s@ListFraudsterRegistrationJobsResponse' {} Maybe Text
a -> ListFraudsterRegistrationJobsResponse
s {$sel:nextToken:ListFraudsterRegistrationJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListFraudsterRegistrationJobsResponse)

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

instance
  Prelude.NFData
    ListFraudsterRegistrationJobsResponse
  where
  rnf :: ListFraudsterRegistrationJobsResponse -> ()
rnf ListFraudsterRegistrationJobsResponse' {Int
Maybe [FraudsterRegistrationJobSummary]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
jobSummaries :: Maybe [FraudsterRegistrationJobSummary]
$sel:httpStatus:ListFraudsterRegistrationJobsResponse' :: ListFraudsterRegistrationJobsResponse -> Int
$sel:nextToken:ListFraudsterRegistrationJobsResponse' :: ListFraudsterRegistrationJobsResponse -> Maybe Text
$sel:jobSummaries:ListFraudsterRegistrationJobsResponse' :: ListFraudsterRegistrationJobsResponse
-> Maybe [FraudsterRegistrationJobSummary]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [FraudsterRegistrationJobSummary]
jobSummaries
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus