{-# 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.Translate.ListTextTranslationJobs
-- 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)
--
-- Gets a list of the batch translation jobs that you have submitted.
module Amazonka.Translate.ListTextTranslationJobs
  ( -- * Creating a Request
    ListTextTranslationJobs (..),
    newListTextTranslationJobs,

    -- * Request Lenses
    listTextTranslationJobs_nextToken,
    listTextTranslationJobs_filter,
    listTextTranslationJobs_maxResults,

    -- * Destructuring the Response
    ListTextTranslationJobsResponse (..),
    newListTextTranslationJobsResponse,

    -- * Response Lenses
    listTextTranslationJobsResponse_textTranslationJobPropertiesList,
    listTextTranslationJobsResponse_nextToken,
    listTextTranslationJobsResponse_httpStatus,
  )
where

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
import Amazonka.Translate.Types

-- | /See:/ 'newListTextTranslationJobs' smart constructor.
data ListTextTranslationJobs = ListTextTranslationJobs'
  { -- | The token to request the next page of results.
    ListTextTranslationJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The parameters that specify which batch translation jobs to retrieve.
    -- Filters include job name, job status, and submission time. You can only
    -- set one filter at a time.
    ListTextTranslationJobs -> Maybe TextTranslationJobFilter
filter' :: Prelude.Maybe TextTranslationJobFilter,
    -- | The maximum number of results to return in each page. The default value
    -- is 100.
    ListTextTranslationJobs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListTextTranslationJobs -> ListTextTranslationJobs -> Bool
(ListTextTranslationJobs -> ListTextTranslationJobs -> Bool)
-> (ListTextTranslationJobs -> ListTextTranslationJobs -> Bool)
-> Eq ListTextTranslationJobs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTextTranslationJobs -> ListTextTranslationJobs -> Bool
$c/= :: ListTextTranslationJobs -> ListTextTranslationJobs -> Bool
== :: ListTextTranslationJobs -> ListTextTranslationJobs -> Bool
$c== :: ListTextTranslationJobs -> ListTextTranslationJobs -> Bool
Prelude.Eq, ReadPrec [ListTextTranslationJobs]
ReadPrec ListTextTranslationJobs
Int -> ReadS ListTextTranslationJobs
ReadS [ListTextTranslationJobs]
(Int -> ReadS ListTextTranslationJobs)
-> ReadS [ListTextTranslationJobs]
-> ReadPrec ListTextTranslationJobs
-> ReadPrec [ListTextTranslationJobs]
-> Read ListTextTranslationJobs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTextTranslationJobs]
$creadListPrec :: ReadPrec [ListTextTranslationJobs]
readPrec :: ReadPrec ListTextTranslationJobs
$creadPrec :: ReadPrec ListTextTranslationJobs
readList :: ReadS [ListTextTranslationJobs]
$creadList :: ReadS [ListTextTranslationJobs]
readsPrec :: Int -> ReadS ListTextTranslationJobs
$creadsPrec :: Int -> ReadS ListTextTranslationJobs
Prelude.Read, Int -> ListTextTranslationJobs -> ShowS
[ListTextTranslationJobs] -> ShowS
ListTextTranslationJobs -> String
(Int -> ListTextTranslationJobs -> ShowS)
-> (ListTextTranslationJobs -> String)
-> ([ListTextTranslationJobs] -> ShowS)
-> Show ListTextTranslationJobs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTextTranslationJobs] -> ShowS
$cshowList :: [ListTextTranslationJobs] -> ShowS
show :: ListTextTranslationJobs -> String
$cshow :: ListTextTranslationJobs -> String
showsPrec :: Int -> ListTextTranslationJobs -> ShowS
$cshowsPrec :: Int -> ListTextTranslationJobs -> ShowS
Prelude.Show, (forall x.
 ListTextTranslationJobs -> Rep ListTextTranslationJobs x)
-> (forall x.
    Rep ListTextTranslationJobs x -> ListTextTranslationJobs)
-> Generic ListTextTranslationJobs
forall x. Rep ListTextTranslationJobs x -> ListTextTranslationJobs
forall x. ListTextTranslationJobs -> Rep ListTextTranslationJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListTextTranslationJobs x -> ListTextTranslationJobs
$cfrom :: forall x. ListTextTranslationJobs -> Rep ListTextTranslationJobs x
Prelude.Generic)

-- |
-- Create a value of 'ListTextTranslationJobs' 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:
--
-- 'nextToken', 'listTextTranslationJobs_nextToken' - The token to request the next page of results.
--
-- 'filter'', 'listTextTranslationJobs_filter' - The parameters that specify which batch translation jobs to retrieve.
-- Filters include job name, job status, and submission time. You can only
-- set one filter at a time.
--
-- 'maxResults', 'listTextTranslationJobs_maxResults' - The maximum number of results to return in each page. The default value
-- is 100.
newListTextTranslationJobs ::
  ListTextTranslationJobs
newListTextTranslationJobs :: ListTextTranslationJobs
newListTextTranslationJobs =
  ListTextTranslationJobs' :: Maybe Text
-> Maybe TextTranslationJobFilter
-> Maybe Natural
-> ListTextTranslationJobs
ListTextTranslationJobs'
    { $sel:nextToken:ListTextTranslationJobs' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:filter':ListTextTranslationJobs' :: Maybe TextTranslationJobFilter
filter' = Maybe TextTranslationJobFilter
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListTextTranslationJobs' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | The token to request the next page of results.
listTextTranslationJobs_nextToken :: Lens.Lens' ListTextTranslationJobs (Prelude.Maybe Prelude.Text)
listTextTranslationJobs_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListTextTranslationJobs -> f ListTextTranslationJobs
listTextTranslationJobs_nextToken = (ListTextTranslationJobs -> Maybe Text)
-> (ListTextTranslationJobs
    -> Maybe Text -> ListTextTranslationJobs)
-> Lens
     ListTextTranslationJobs
     ListTextTranslationJobs
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTextTranslationJobs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTextTranslationJobs' :: ListTextTranslationJobs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTextTranslationJobs
s@ListTextTranslationJobs' {} Maybe Text
a -> ListTextTranslationJobs
s {$sel:nextToken:ListTextTranslationJobs' :: Maybe Text
nextToken = Maybe Text
a} :: ListTextTranslationJobs)

-- | The parameters that specify which batch translation jobs to retrieve.
-- Filters include job name, job status, and submission time. You can only
-- set one filter at a time.
listTextTranslationJobs_filter :: Lens.Lens' ListTextTranslationJobs (Prelude.Maybe TextTranslationJobFilter)
listTextTranslationJobs_filter :: (Maybe TextTranslationJobFilter
 -> f (Maybe TextTranslationJobFilter))
-> ListTextTranslationJobs -> f ListTextTranslationJobs
listTextTranslationJobs_filter = (ListTextTranslationJobs -> Maybe TextTranslationJobFilter)
-> (ListTextTranslationJobs
    -> Maybe TextTranslationJobFilter -> ListTextTranslationJobs)
-> Lens
     ListTextTranslationJobs
     ListTextTranslationJobs
     (Maybe TextTranslationJobFilter)
     (Maybe TextTranslationJobFilter)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTextTranslationJobs' {Maybe TextTranslationJobFilter
filter' :: Maybe TextTranslationJobFilter
$sel:filter':ListTextTranslationJobs' :: ListTextTranslationJobs -> Maybe TextTranslationJobFilter
filter'} -> Maybe TextTranslationJobFilter
filter') (\s :: ListTextTranslationJobs
s@ListTextTranslationJobs' {} Maybe TextTranslationJobFilter
a -> ListTextTranslationJobs
s {$sel:filter':ListTextTranslationJobs' :: Maybe TextTranslationJobFilter
filter' = Maybe TextTranslationJobFilter
a} :: ListTextTranslationJobs)

-- | The maximum number of results to return in each page. The default value
-- is 100.
listTextTranslationJobs_maxResults :: Lens.Lens' ListTextTranslationJobs (Prelude.Maybe Prelude.Natural)
listTextTranslationJobs_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListTextTranslationJobs -> f ListTextTranslationJobs
listTextTranslationJobs_maxResults = (ListTextTranslationJobs -> Maybe Natural)
-> (ListTextTranslationJobs
    -> Maybe Natural -> ListTextTranslationJobs)
-> Lens
     ListTextTranslationJobs
     ListTextTranslationJobs
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTextTranslationJobs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListTextTranslationJobs' :: ListTextTranslationJobs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListTextTranslationJobs
s@ListTextTranslationJobs' {} Maybe Natural
a -> ListTextTranslationJobs
s {$sel:maxResults:ListTextTranslationJobs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListTextTranslationJobs)

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

instance Prelude.NFData ListTextTranslationJobs

instance Core.ToHeaders ListTextTranslationJobs where
  toHeaders :: ListTextTranslationJobs -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListTextTranslationJobs -> 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
"AWSShineFrontendService_20170701.ListTextTranslationJobs" ::
                          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 ListTextTranslationJobs where
  toJSON :: ListTextTranslationJobs -> Value
toJSON ListTextTranslationJobs' {Maybe Natural
Maybe Text
Maybe TextTranslationJobFilter
maxResults :: Maybe Natural
filter' :: Maybe TextTranslationJobFilter
nextToken :: Maybe Text
$sel:maxResults:ListTextTranslationJobs' :: ListTextTranslationJobs -> Maybe Natural
$sel:filter':ListTextTranslationJobs' :: ListTextTranslationJobs -> Maybe TextTranslationJobFilter
$sel:nextToken:ListTextTranslationJobs' :: ListTextTranslationJobs -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"NextToken" 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
nextToken,
            (Text
"Filter" Text -> TextTranslationJobFilter -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (TextTranslationJobFilter -> Pair)
-> Maybe TextTranslationJobFilter -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TextTranslationJobFilter
filter',
            (Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
          ]
      )

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

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

-- | /See:/ 'newListTextTranslationJobsResponse' smart constructor.
data ListTextTranslationJobsResponse = ListTextTranslationJobsResponse'
  { -- | A list containing the properties of each job that is returned.
    ListTextTranslationJobsResponse
-> Maybe [TextTranslationJobProperties]
textTranslationJobPropertiesList :: Prelude.Maybe [TextTranslationJobProperties],
    -- | The token to use to retreive the next page of results. This value is
    -- @null@ when there are no more results to return.
    ListTextTranslationJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListTextTranslationJobsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListTextTranslationJobsResponse
-> ListTextTranslationJobsResponse -> Bool
(ListTextTranslationJobsResponse
 -> ListTextTranslationJobsResponse -> Bool)
-> (ListTextTranslationJobsResponse
    -> ListTextTranslationJobsResponse -> Bool)
-> Eq ListTextTranslationJobsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTextTranslationJobsResponse
-> ListTextTranslationJobsResponse -> Bool
$c/= :: ListTextTranslationJobsResponse
-> ListTextTranslationJobsResponse -> Bool
== :: ListTextTranslationJobsResponse
-> ListTextTranslationJobsResponse -> Bool
$c== :: ListTextTranslationJobsResponse
-> ListTextTranslationJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListTextTranslationJobsResponse]
ReadPrec ListTextTranslationJobsResponse
Int -> ReadS ListTextTranslationJobsResponse
ReadS [ListTextTranslationJobsResponse]
(Int -> ReadS ListTextTranslationJobsResponse)
-> ReadS [ListTextTranslationJobsResponse]
-> ReadPrec ListTextTranslationJobsResponse
-> ReadPrec [ListTextTranslationJobsResponse]
-> Read ListTextTranslationJobsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTextTranslationJobsResponse]
$creadListPrec :: ReadPrec [ListTextTranslationJobsResponse]
readPrec :: ReadPrec ListTextTranslationJobsResponse
$creadPrec :: ReadPrec ListTextTranslationJobsResponse
readList :: ReadS [ListTextTranslationJobsResponse]
$creadList :: ReadS [ListTextTranslationJobsResponse]
readsPrec :: Int -> ReadS ListTextTranslationJobsResponse
$creadsPrec :: Int -> ReadS ListTextTranslationJobsResponse
Prelude.Read, Int -> ListTextTranslationJobsResponse -> ShowS
[ListTextTranslationJobsResponse] -> ShowS
ListTextTranslationJobsResponse -> String
(Int -> ListTextTranslationJobsResponse -> ShowS)
-> (ListTextTranslationJobsResponse -> String)
-> ([ListTextTranslationJobsResponse] -> ShowS)
-> Show ListTextTranslationJobsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTextTranslationJobsResponse] -> ShowS
$cshowList :: [ListTextTranslationJobsResponse] -> ShowS
show :: ListTextTranslationJobsResponse -> String
$cshow :: ListTextTranslationJobsResponse -> String
showsPrec :: Int -> ListTextTranslationJobsResponse -> ShowS
$cshowsPrec :: Int -> ListTextTranslationJobsResponse -> ShowS
Prelude.Show, (forall x.
 ListTextTranslationJobsResponse
 -> Rep ListTextTranslationJobsResponse x)
-> (forall x.
    Rep ListTextTranslationJobsResponse x
    -> ListTextTranslationJobsResponse)
-> Generic ListTextTranslationJobsResponse
forall x.
Rep ListTextTranslationJobsResponse x
-> ListTextTranslationJobsResponse
forall x.
ListTextTranslationJobsResponse
-> Rep ListTextTranslationJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListTextTranslationJobsResponse x
-> ListTextTranslationJobsResponse
$cfrom :: forall x.
ListTextTranslationJobsResponse
-> Rep ListTextTranslationJobsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListTextTranslationJobsResponse' 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:
--
-- 'textTranslationJobPropertiesList', 'listTextTranslationJobsResponse_textTranslationJobPropertiesList' - A list containing the properties of each job that is returned.
--
-- 'nextToken', 'listTextTranslationJobsResponse_nextToken' - The token to use to retreive the next page of results. This value is
-- @null@ when there are no more results to return.
--
-- 'httpStatus', 'listTextTranslationJobsResponse_httpStatus' - The response's http status code.
newListTextTranslationJobsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListTextTranslationJobsResponse
newListTextTranslationJobsResponse :: Int -> ListTextTranslationJobsResponse
newListTextTranslationJobsResponse Int
pHttpStatus_ =
  ListTextTranslationJobsResponse' :: Maybe [TextTranslationJobProperties]
-> Maybe Text -> Int -> ListTextTranslationJobsResponse
ListTextTranslationJobsResponse'
    { $sel:textTranslationJobPropertiesList:ListTextTranslationJobsResponse' :: Maybe [TextTranslationJobProperties]
textTranslationJobPropertiesList =
        Maybe [TextTranslationJobProperties]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListTextTranslationJobsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListTextTranslationJobsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list containing the properties of each job that is returned.
listTextTranslationJobsResponse_textTranslationJobPropertiesList :: Lens.Lens' ListTextTranslationJobsResponse (Prelude.Maybe [TextTranslationJobProperties])
listTextTranslationJobsResponse_textTranslationJobPropertiesList :: (Maybe [TextTranslationJobProperties]
 -> f (Maybe [TextTranslationJobProperties]))
-> ListTextTranslationJobsResponse
-> f ListTextTranslationJobsResponse
listTextTranslationJobsResponse_textTranslationJobPropertiesList = (ListTextTranslationJobsResponse
 -> Maybe [TextTranslationJobProperties])
-> (ListTextTranslationJobsResponse
    -> Maybe [TextTranslationJobProperties]
    -> ListTextTranslationJobsResponse)
-> Lens
     ListTextTranslationJobsResponse
     ListTextTranslationJobsResponse
     (Maybe [TextTranslationJobProperties])
     (Maybe [TextTranslationJobProperties])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTextTranslationJobsResponse' {Maybe [TextTranslationJobProperties]
textTranslationJobPropertiesList :: Maybe [TextTranslationJobProperties]
$sel:textTranslationJobPropertiesList:ListTextTranslationJobsResponse' :: ListTextTranslationJobsResponse
-> Maybe [TextTranslationJobProperties]
textTranslationJobPropertiesList} -> Maybe [TextTranslationJobProperties]
textTranslationJobPropertiesList) (\s :: ListTextTranslationJobsResponse
s@ListTextTranslationJobsResponse' {} Maybe [TextTranslationJobProperties]
a -> ListTextTranslationJobsResponse
s {$sel:textTranslationJobPropertiesList:ListTextTranslationJobsResponse' :: Maybe [TextTranslationJobProperties]
textTranslationJobPropertiesList = Maybe [TextTranslationJobProperties]
a} :: ListTextTranslationJobsResponse) ((Maybe [TextTranslationJobProperties]
  -> f (Maybe [TextTranslationJobProperties]))
 -> ListTextTranslationJobsResponse
 -> f ListTextTranslationJobsResponse)
-> ((Maybe [TextTranslationJobProperties]
     -> f (Maybe [TextTranslationJobProperties]))
    -> Maybe [TextTranslationJobProperties]
    -> f (Maybe [TextTranslationJobProperties]))
-> (Maybe [TextTranslationJobProperties]
    -> f (Maybe [TextTranslationJobProperties]))
-> ListTextTranslationJobsResponse
-> f ListTextTranslationJobsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [TextTranslationJobProperties]
  [TextTranslationJobProperties]
  [TextTranslationJobProperties]
  [TextTranslationJobProperties]
-> Iso
     (Maybe [TextTranslationJobProperties])
     (Maybe [TextTranslationJobProperties])
     (Maybe [TextTranslationJobProperties])
     (Maybe [TextTranslationJobProperties])
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
  [TextTranslationJobProperties]
  [TextTranslationJobProperties]
  [TextTranslationJobProperties]
  [TextTranslationJobProperties]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The token to use to retreive the next page of results. This value is
-- @null@ when there are no more results to return.
listTextTranslationJobsResponse_nextToken :: Lens.Lens' ListTextTranslationJobsResponse (Prelude.Maybe Prelude.Text)
listTextTranslationJobsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListTextTranslationJobsResponse
-> f ListTextTranslationJobsResponse
listTextTranslationJobsResponse_nextToken = (ListTextTranslationJobsResponse -> Maybe Text)
-> (ListTextTranslationJobsResponse
    -> Maybe Text -> ListTextTranslationJobsResponse)
-> Lens
     ListTextTranslationJobsResponse
     ListTextTranslationJobsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTextTranslationJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTextTranslationJobsResponse' :: ListTextTranslationJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTextTranslationJobsResponse
s@ListTextTranslationJobsResponse' {} Maybe Text
a -> ListTextTranslationJobsResponse
s {$sel:nextToken:ListTextTranslationJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListTextTranslationJobsResponse)

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

instance
  Prelude.NFData
    ListTextTranslationJobsResponse