{-# 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.SageMaker.ListTransformJobs
-- 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 transform jobs.
--
-- This operation returns paginated results.
module Amazonka.SageMaker.ListTransformJobs
  ( -- * Creating a Request
    ListTransformJobs (..),
    newListTransformJobs,

    -- * Request Lenses
    listTransformJobs_nameContains,
    listTransformJobs_lastModifiedTimeBefore,
    listTransformJobs_creationTimeAfter,
    listTransformJobs_nextToken,
    listTransformJobs_sortOrder,
    listTransformJobs_lastModifiedTimeAfter,
    listTransformJobs_creationTimeBefore,
    listTransformJobs_statusEquals,
    listTransformJobs_maxResults,
    listTransformJobs_sortBy,

    -- * Destructuring the Response
    ListTransformJobsResponse (..),
    newListTransformJobsResponse,

    -- * Response Lenses
    listTransformJobsResponse_nextToken,
    listTransformJobsResponse_httpStatus,
    listTransformJobsResponse_transformJobSummaries,
  )
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.SageMaker.Types

-- | /See:/ 'newListTransformJobs' smart constructor.
data ListTransformJobs = ListTransformJobs'
  { -- | A string in the transform job name. This filter returns only transform
    -- jobs whose name contains the specified string.
    ListTransformJobs -> Maybe Text
nameContains :: Prelude.Maybe Prelude.Text,
    -- | A filter that returns only transform jobs modified before the specified
    -- time.
    ListTransformJobs -> Maybe POSIX
lastModifiedTimeBefore :: Prelude.Maybe Core.POSIX,
    -- | A filter that returns only transform jobs created after the specified
    -- time.
    ListTransformJobs -> Maybe POSIX
creationTimeAfter :: Prelude.Maybe Core.POSIX,
    -- | If the result of the previous @ListTransformJobs@ request was truncated,
    -- the response includes a @NextToken@. To retrieve the next set of
    -- transform jobs, use the token in the next request.
    ListTransformJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The sort order for results. The default is @Descending@.
    ListTransformJobs -> Maybe SortOrder
sortOrder :: Prelude.Maybe SortOrder,
    -- | A filter that returns only transform jobs modified after the specified
    -- time.
    ListTransformJobs -> Maybe POSIX
lastModifiedTimeAfter :: Prelude.Maybe Core.POSIX,
    -- | A filter that returns only transform jobs created before the specified
    -- time.
    ListTransformJobs -> Maybe POSIX
creationTimeBefore :: Prelude.Maybe Core.POSIX,
    -- | A filter that retrieves only transform jobs with a specific status.
    ListTransformJobs -> Maybe TransformJobStatus
statusEquals :: Prelude.Maybe TransformJobStatus,
    -- | The maximum number of transform jobs to return in the response. The
    -- default value is @10@.
    ListTransformJobs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The field to sort results by. The default is @CreationTime@.
    ListTransformJobs -> Maybe SortBy
sortBy :: Prelude.Maybe SortBy
  }
  deriving (ListTransformJobs -> ListTransformJobs -> Bool
(ListTransformJobs -> ListTransformJobs -> Bool)
-> (ListTransformJobs -> ListTransformJobs -> Bool)
-> Eq ListTransformJobs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTransformJobs -> ListTransformJobs -> Bool
$c/= :: ListTransformJobs -> ListTransformJobs -> Bool
== :: ListTransformJobs -> ListTransformJobs -> Bool
$c== :: ListTransformJobs -> ListTransformJobs -> Bool
Prelude.Eq, ReadPrec [ListTransformJobs]
ReadPrec ListTransformJobs
Int -> ReadS ListTransformJobs
ReadS [ListTransformJobs]
(Int -> ReadS ListTransformJobs)
-> ReadS [ListTransformJobs]
-> ReadPrec ListTransformJobs
-> ReadPrec [ListTransformJobs]
-> Read ListTransformJobs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTransformJobs]
$creadListPrec :: ReadPrec [ListTransformJobs]
readPrec :: ReadPrec ListTransformJobs
$creadPrec :: ReadPrec ListTransformJobs
readList :: ReadS [ListTransformJobs]
$creadList :: ReadS [ListTransformJobs]
readsPrec :: Int -> ReadS ListTransformJobs
$creadsPrec :: Int -> ReadS ListTransformJobs
Prelude.Read, Int -> ListTransformJobs -> ShowS
[ListTransformJobs] -> ShowS
ListTransformJobs -> String
(Int -> ListTransformJobs -> ShowS)
-> (ListTransformJobs -> String)
-> ([ListTransformJobs] -> ShowS)
-> Show ListTransformJobs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTransformJobs] -> ShowS
$cshowList :: [ListTransformJobs] -> ShowS
show :: ListTransformJobs -> String
$cshow :: ListTransformJobs -> String
showsPrec :: Int -> ListTransformJobs -> ShowS
$cshowsPrec :: Int -> ListTransformJobs -> ShowS
Prelude.Show, (forall x. ListTransformJobs -> Rep ListTransformJobs x)
-> (forall x. Rep ListTransformJobs x -> ListTransformJobs)
-> Generic ListTransformJobs
forall x. Rep ListTransformJobs x -> ListTransformJobs
forall x. ListTransformJobs -> Rep ListTransformJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListTransformJobs x -> ListTransformJobs
$cfrom :: forall x. ListTransformJobs -> Rep ListTransformJobs x
Prelude.Generic)

-- |
-- Create a value of 'ListTransformJobs' 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:
--
-- 'nameContains', 'listTransformJobs_nameContains' - A string in the transform job name. This filter returns only transform
-- jobs whose name contains the specified string.
--
-- 'lastModifiedTimeBefore', 'listTransformJobs_lastModifiedTimeBefore' - A filter that returns only transform jobs modified before the specified
-- time.
--
-- 'creationTimeAfter', 'listTransformJobs_creationTimeAfter' - A filter that returns only transform jobs created after the specified
-- time.
--
-- 'nextToken', 'listTransformJobs_nextToken' - If the result of the previous @ListTransformJobs@ request was truncated,
-- the response includes a @NextToken@. To retrieve the next set of
-- transform jobs, use the token in the next request.
--
-- 'sortOrder', 'listTransformJobs_sortOrder' - The sort order for results. The default is @Descending@.
--
-- 'lastModifiedTimeAfter', 'listTransformJobs_lastModifiedTimeAfter' - A filter that returns only transform jobs modified after the specified
-- time.
--
-- 'creationTimeBefore', 'listTransformJobs_creationTimeBefore' - A filter that returns only transform jobs created before the specified
-- time.
--
-- 'statusEquals', 'listTransformJobs_statusEquals' - A filter that retrieves only transform jobs with a specific status.
--
-- 'maxResults', 'listTransformJobs_maxResults' - The maximum number of transform jobs to return in the response. The
-- default value is @10@.
--
-- 'sortBy', 'listTransformJobs_sortBy' - The field to sort results by. The default is @CreationTime@.
newListTransformJobs ::
  ListTransformJobs
newListTransformJobs :: ListTransformJobs
newListTransformJobs =
  ListTransformJobs' :: Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe SortOrder
-> Maybe POSIX
-> Maybe POSIX
-> Maybe TransformJobStatus
-> Maybe Natural
-> Maybe SortBy
-> ListTransformJobs
ListTransformJobs'
    { $sel:nameContains:ListTransformJobs' :: Maybe Text
nameContains = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTimeBefore:ListTransformJobs' :: Maybe POSIX
lastModifiedTimeBefore = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:creationTimeAfter:ListTransformJobs' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListTransformJobs' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:sortOrder:ListTransformJobs' :: Maybe SortOrder
sortOrder = Maybe SortOrder
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTimeAfter:ListTransformJobs' :: Maybe POSIX
lastModifiedTimeAfter = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:creationTimeBefore:ListTransformJobs' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:statusEquals:ListTransformJobs' :: Maybe TransformJobStatus
statusEquals = Maybe TransformJobStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListTransformJobs' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:sortBy:ListTransformJobs' :: Maybe SortBy
sortBy = Maybe SortBy
forall a. Maybe a
Prelude.Nothing
    }

-- | A string in the transform job name. This filter returns only transform
-- jobs whose name contains the specified string.
listTransformJobs_nameContains :: Lens.Lens' ListTransformJobs (Prelude.Maybe Prelude.Text)
listTransformJobs_nameContains :: (Maybe Text -> f (Maybe Text))
-> ListTransformJobs -> f ListTransformJobs
listTransformJobs_nameContains = (ListTransformJobs -> Maybe Text)
-> (ListTransformJobs -> Maybe Text -> ListTransformJobs)
-> Lens
     ListTransformJobs ListTransformJobs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTransformJobs' {Maybe Text
nameContains :: Maybe Text
$sel:nameContains:ListTransformJobs' :: ListTransformJobs -> Maybe Text
nameContains} -> Maybe Text
nameContains) (\s :: ListTransformJobs
s@ListTransformJobs' {} Maybe Text
a -> ListTransformJobs
s {$sel:nameContains:ListTransformJobs' :: Maybe Text
nameContains = Maybe Text
a} :: ListTransformJobs)

-- | A filter that returns only transform jobs modified before the specified
-- time.
listTransformJobs_lastModifiedTimeBefore :: Lens.Lens' ListTransformJobs (Prelude.Maybe Prelude.UTCTime)
listTransformJobs_lastModifiedTimeBefore :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListTransformJobs -> f ListTransformJobs
listTransformJobs_lastModifiedTimeBefore = (ListTransformJobs -> Maybe POSIX)
-> (ListTransformJobs -> Maybe POSIX -> ListTransformJobs)
-> Lens
     ListTransformJobs ListTransformJobs (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTransformJobs' {Maybe POSIX
lastModifiedTimeBefore :: Maybe POSIX
$sel:lastModifiedTimeBefore:ListTransformJobs' :: ListTransformJobs -> Maybe POSIX
lastModifiedTimeBefore} -> Maybe POSIX
lastModifiedTimeBefore) (\s :: ListTransformJobs
s@ListTransformJobs' {} Maybe POSIX
a -> ListTransformJobs
s {$sel:lastModifiedTimeBefore:ListTransformJobs' :: Maybe POSIX
lastModifiedTimeBefore = Maybe POSIX
a} :: ListTransformJobs) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListTransformJobs -> f ListTransformJobs)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListTransformJobs
-> f ListTransformJobs
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | A filter that returns only transform jobs created after the specified
-- time.
listTransformJobs_creationTimeAfter :: Lens.Lens' ListTransformJobs (Prelude.Maybe Prelude.UTCTime)
listTransformJobs_creationTimeAfter :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListTransformJobs -> f ListTransformJobs
listTransformJobs_creationTimeAfter = (ListTransformJobs -> Maybe POSIX)
-> (ListTransformJobs -> Maybe POSIX -> ListTransformJobs)
-> Lens
     ListTransformJobs ListTransformJobs (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTransformJobs' {Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:creationTimeAfter:ListTransformJobs' :: ListTransformJobs -> Maybe POSIX
creationTimeAfter} -> Maybe POSIX
creationTimeAfter) (\s :: ListTransformJobs
s@ListTransformJobs' {} Maybe POSIX
a -> ListTransformJobs
s {$sel:creationTimeAfter:ListTransformJobs' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
a} :: ListTransformJobs) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListTransformJobs -> f ListTransformJobs)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListTransformJobs
-> f ListTransformJobs
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | If the result of the previous @ListTransformJobs@ request was truncated,
-- the response includes a @NextToken@. To retrieve the next set of
-- transform jobs, use the token in the next request.
listTransformJobs_nextToken :: Lens.Lens' ListTransformJobs (Prelude.Maybe Prelude.Text)
listTransformJobs_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListTransformJobs -> f ListTransformJobs
listTransformJobs_nextToken = (ListTransformJobs -> Maybe Text)
-> (ListTransformJobs -> Maybe Text -> ListTransformJobs)
-> Lens
     ListTransformJobs ListTransformJobs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTransformJobs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTransformJobs' :: ListTransformJobs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTransformJobs
s@ListTransformJobs' {} Maybe Text
a -> ListTransformJobs
s {$sel:nextToken:ListTransformJobs' :: Maybe Text
nextToken = Maybe Text
a} :: ListTransformJobs)

-- | The sort order for results. The default is @Descending@.
listTransformJobs_sortOrder :: Lens.Lens' ListTransformJobs (Prelude.Maybe SortOrder)
listTransformJobs_sortOrder :: (Maybe SortOrder -> f (Maybe SortOrder))
-> ListTransformJobs -> f ListTransformJobs
listTransformJobs_sortOrder = (ListTransformJobs -> Maybe SortOrder)
-> (ListTransformJobs -> Maybe SortOrder -> ListTransformJobs)
-> Lens
     ListTransformJobs
     ListTransformJobs
     (Maybe SortOrder)
     (Maybe SortOrder)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTransformJobs' {Maybe SortOrder
sortOrder :: Maybe SortOrder
$sel:sortOrder:ListTransformJobs' :: ListTransformJobs -> Maybe SortOrder
sortOrder} -> Maybe SortOrder
sortOrder) (\s :: ListTransformJobs
s@ListTransformJobs' {} Maybe SortOrder
a -> ListTransformJobs
s {$sel:sortOrder:ListTransformJobs' :: Maybe SortOrder
sortOrder = Maybe SortOrder
a} :: ListTransformJobs)

-- | A filter that returns only transform jobs modified after the specified
-- time.
listTransformJobs_lastModifiedTimeAfter :: Lens.Lens' ListTransformJobs (Prelude.Maybe Prelude.UTCTime)
listTransformJobs_lastModifiedTimeAfter :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListTransformJobs -> f ListTransformJobs
listTransformJobs_lastModifiedTimeAfter = (ListTransformJobs -> Maybe POSIX)
-> (ListTransformJobs -> Maybe POSIX -> ListTransformJobs)
-> Lens
     ListTransformJobs ListTransformJobs (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTransformJobs' {Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
$sel:lastModifiedTimeAfter:ListTransformJobs' :: ListTransformJobs -> Maybe POSIX
lastModifiedTimeAfter} -> Maybe POSIX
lastModifiedTimeAfter) (\s :: ListTransformJobs
s@ListTransformJobs' {} Maybe POSIX
a -> ListTransformJobs
s {$sel:lastModifiedTimeAfter:ListTransformJobs' :: Maybe POSIX
lastModifiedTimeAfter = Maybe POSIX
a} :: ListTransformJobs) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListTransformJobs -> f ListTransformJobs)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListTransformJobs
-> f ListTransformJobs
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | A filter that returns only transform jobs created before the specified
-- time.
listTransformJobs_creationTimeBefore :: Lens.Lens' ListTransformJobs (Prelude.Maybe Prelude.UTCTime)
listTransformJobs_creationTimeBefore :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListTransformJobs -> f ListTransformJobs
listTransformJobs_creationTimeBefore = (ListTransformJobs -> Maybe POSIX)
-> (ListTransformJobs -> Maybe POSIX -> ListTransformJobs)
-> Lens
     ListTransformJobs ListTransformJobs (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTransformJobs' {Maybe POSIX
creationTimeBefore :: Maybe POSIX
$sel:creationTimeBefore:ListTransformJobs' :: ListTransformJobs -> Maybe POSIX
creationTimeBefore} -> Maybe POSIX
creationTimeBefore) (\s :: ListTransformJobs
s@ListTransformJobs' {} Maybe POSIX
a -> ListTransformJobs
s {$sel:creationTimeBefore:ListTransformJobs' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
a} :: ListTransformJobs) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListTransformJobs -> f ListTransformJobs)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListTransformJobs
-> f ListTransformJobs
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | A filter that retrieves only transform jobs with a specific status.
listTransformJobs_statusEquals :: Lens.Lens' ListTransformJobs (Prelude.Maybe TransformJobStatus)
listTransformJobs_statusEquals :: (Maybe TransformJobStatus -> f (Maybe TransformJobStatus))
-> ListTransformJobs -> f ListTransformJobs
listTransformJobs_statusEquals = (ListTransformJobs -> Maybe TransformJobStatus)
-> (ListTransformJobs
    -> Maybe TransformJobStatus -> ListTransformJobs)
-> Lens
     ListTransformJobs
     ListTransformJobs
     (Maybe TransformJobStatus)
     (Maybe TransformJobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTransformJobs' {Maybe TransformJobStatus
statusEquals :: Maybe TransformJobStatus
$sel:statusEquals:ListTransformJobs' :: ListTransformJobs -> Maybe TransformJobStatus
statusEquals} -> Maybe TransformJobStatus
statusEquals) (\s :: ListTransformJobs
s@ListTransformJobs' {} Maybe TransformJobStatus
a -> ListTransformJobs
s {$sel:statusEquals:ListTransformJobs' :: Maybe TransformJobStatus
statusEquals = Maybe TransformJobStatus
a} :: ListTransformJobs)

-- | The maximum number of transform jobs to return in the response. The
-- default value is @10@.
listTransformJobs_maxResults :: Lens.Lens' ListTransformJobs (Prelude.Maybe Prelude.Natural)
listTransformJobs_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListTransformJobs -> f ListTransformJobs
listTransformJobs_maxResults = (ListTransformJobs -> Maybe Natural)
-> (ListTransformJobs -> Maybe Natural -> ListTransformJobs)
-> Lens
     ListTransformJobs ListTransformJobs (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTransformJobs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListTransformJobs' :: ListTransformJobs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListTransformJobs
s@ListTransformJobs' {} Maybe Natural
a -> ListTransformJobs
s {$sel:maxResults:ListTransformJobs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListTransformJobs)

-- | The field to sort results by. The default is @CreationTime@.
listTransformJobs_sortBy :: Lens.Lens' ListTransformJobs (Prelude.Maybe SortBy)
listTransformJobs_sortBy :: (Maybe SortBy -> f (Maybe SortBy))
-> ListTransformJobs -> f ListTransformJobs
listTransformJobs_sortBy = (ListTransformJobs -> Maybe SortBy)
-> (ListTransformJobs -> Maybe SortBy -> ListTransformJobs)
-> Lens
     ListTransformJobs ListTransformJobs (Maybe SortBy) (Maybe SortBy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTransformJobs' {Maybe SortBy
sortBy :: Maybe SortBy
$sel:sortBy:ListTransformJobs' :: ListTransformJobs -> Maybe SortBy
sortBy} -> Maybe SortBy
sortBy) (\s :: ListTransformJobs
s@ListTransformJobs' {} Maybe SortBy
a -> ListTransformJobs
s {$sel:sortBy:ListTransformJobs' :: Maybe SortBy
sortBy = Maybe SortBy
a} :: ListTransformJobs)

instance Core.AWSPager ListTransformJobs where
  page :: ListTransformJobs
-> AWSResponse ListTransformJobs -> Maybe ListTransformJobs
page ListTransformJobs
rq AWSResponse ListTransformJobs
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListTransformJobs
ListTransformJobsResponse
rs
            ListTransformJobsResponse
-> Getting (First Text) ListTransformJobsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListTransformJobsResponse
-> Const (First Text) ListTransformJobsResponse
Lens' ListTransformJobsResponse (Maybe Text)
listTransformJobsResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListTransformJobsResponse
 -> Const (First Text) ListTransformJobsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListTransformJobsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListTransformJobs
forall a. Maybe a
Prelude.Nothing
    | [TransformJobSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListTransformJobs
ListTransformJobsResponse
rs
            ListTransformJobsResponse
-> Getting
     [TransformJobSummary]
     ListTransformJobsResponse
     [TransformJobSummary]
-> [TransformJobSummary]
forall s a. s -> Getting a s a -> a
Lens.^. Getting
  [TransformJobSummary]
  ListTransformJobsResponse
  [TransformJobSummary]
Lens' ListTransformJobsResponse [TransformJobSummary]
listTransformJobsResponse_transformJobSummaries
        ) =
      Maybe ListTransformJobs
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      ListTransformJobs -> Maybe ListTransformJobs
forall a. a -> Maybe a
Prelude.Just (ListTransformJobs -> Maybe ListTransformJobs)
-> ListTransformJobs -> Maybe ListTransformJobs
forall a b. (a -> b) -> a -> b
Prelude.$
        ListTransformJobs
rq
          ListTransformJobs
-> (ListTransformJobs -> ListTransformJobs) -> ListTransformJobs
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListTransformJobs -> Identity ListTransformJobs
Lens ListTransformJobs ListTransformJobs (Maybe Text) (Maybe Text)
listTransformJobs_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> ListTransformJobs -> Identity ListTransformJobs)
-> Maybe Text -> ListTransformJobs -> ListTransformJobs
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListTransformJobs
ListTransformJobsResponse
rs
          ListTransformJobsResponse
-> Getting (First Text) ListTransformJobsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListTransformJobsResponse
-> Const (First Text) ListTransformJobsResponse
Lens' ListTransformJobsResponse (Maybe Text)
listTransformJobsResponse_nextToken
            ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListTransformJobsResponse
 -> Const (First Text) ListTransformJobsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListTransformJobsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

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

instance Prelude.Hashable ListTransformJobs

instance Prelude.NFData ListTransformJobs

instance Core.ToHeaders ListTransformJobs where
  toHeaders :: ListTransformJobs -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListTransformJobs -> 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
"SageMaker.ListTransformJobs" ::
                          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 ListTransformJobs where
  toJSON :: ListTransformJobs -> Value
toJSON ListTransformJobs' {Maybe Natural
Maybe Text
Maybe POSIX
Maybe SortBy
Maybe SortOrder
Maybe TransformJobStatus
sortBy :: Maybe SortBy
maxResults :: Maybe Natural
statusEquals :: Maybe TransformJobStatus
creationTimeBefore :: Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
sortOrder :: Maybe SortOrder
nextToken :: Maybe Text
creationTimeAfter :: Maybe POSIX
lastModifiedTimeBefore :: Maybe POSIX
nameContains :: Maybe Text
$sel:sortBy:ListTransformJobs' :: ListTransformJobs -> Maybe SortBy
$sel:maxResults:ListTransformJobs' :: ListTransformJobs -> Maybe Natural
$sel:statusEquals:ListTransformJobs' :: ListTransformJobs -> Maybe TransformJobStatus
$sel:creationTimeBefore:ListTransformJobs' :: ListTransformJobs -> Maybe POSIX
$sel:lastModifiedTimeAfter:ListTransformJobs' :: ListTransformJobs -> Maybe POSIX
$sel:sortOrder:ListTransformJobs' :: ListTransformJobs -> Maybe SortOrder
$sel:nextToken:ListTransformJobs' :: ListTransformJobs -> Maybe Text
$sel:creationTimeAfter:ListTransformJobs' :: ListTransformJobs -> Maybe POSIX
$sel:lastModifiedTimeBefore:ListTransformJobs' :: ListTransformJobs -> Maybe POSIX
$sel:nameContains:ListTransformJobs' :: ListTransformJobs -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"NameContains" 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
nameContains,
            (Text
"LastModifiedTimeBefore" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
lastModifiedTimeBefore,
            (Text
"CreationTimeAfter" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
creationTimeAfter,
            (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
"SortOrder" Text -> SortOrder -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (SortOrder -> Pair) -> Maybe SortOrder -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SortOrder
sortOrder,
            (Text
"LastModifiedTimeAfter" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
lastModifiedTimeAfter,
            (Text
"CreationTimeBefore" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
creationTimeBefore,
            (Text
"StatusEquals" Text -> TransformJobStatus -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (TransformJobStatus -> Pair)
-> Maybe TransformJobStatus -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TransformJobStatus
statusEquals,
            (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,
            (Text
"SortBy" Text -> SortBy -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (SortBy -> Pair) -> Maybe SortBy -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SortBy
sortBy
          ]
      )

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

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

-- | /See:/ 'newListTransformJobsResponse' smart constructor.
data ListTransformJobsResponse = ListTransformJobsResponse'
  { -- | If the response is truncated, Amazon SageMaker returns this token. To
    -- retrieve the next set of transform jobs, use it in the next request.
    ListTransformJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListTransformJobsResponse -> Int
httpStatus :: Prelude.Int,
    -- | An array of @TransformJobSummary@ objects.
    ListTransformJobsResponse -> [TransformJobSummary]
transformJobSummaries :: [TransformJobSummary]
  }
  deriving (ListTransformJobsResponse -> ListTransformJobsResponse -> Bool
(ListTransformJobsResponse -> ListTransformJobsResponse -> Bool)
-> (ListTransformJobsResponse -> ListTransformJobsResponse -> Bool)
-> Eq ListTransformJobsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTransformJobsResponse -> ListTransformJobsResponse -> Bool
$c/= :: ListTransformJobsResponse -> ListTransformJobsResponse -> Bool
== :: ListTransformJobsResponse -> ListTransformJobsResponse -> Bool
$c== :: ListTransformJobsResponse -> ListTransformJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListTransformJobsResponse]
ReadPrec ListTransformJobsResponse
Int -> ReadS ListTransformJobsResponse
ReadS [ListTransformJobsResponse]
(Int -> ReadS ListTransformJobsResponse)
-> ReadS [ListTransformJobsResponse]
-> ReadPrec ListTransformJobsResponse
-> ReadPrec [ListTransformJobsResponse]
-> Read ListTransformJobsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTransformJobsResponse]
$creadListPrec :: ReadPrec [ListTransformJobsResponse]
readPrec :: ReadPrec ListTransformJobsResponse
$creadPrec :: ReadPrec ListTransformJobsResponse
readList :: ReadS [ListTransformJobsResponse]
$creadList :: ReadS [ListTransformJobsResponse]
readsPrec :: Int -> ReadS ListTransformJobsResponse
$creadsPrec :: Int -> ReadS ListTransformJobsResponse
Prelude.Read, Int -> ListTransformJobsResponse -> ShowS
[ListTransformJobsResponse] -> ShowS
ListTransformJobsResponse -> String
(Int -> ListTransformJobsResponse -> ShowS)
-> (ListTransformJobsResponse -> String)
-> ([ListTransformJobsResponse] -> ShowS)
-> Show ListTransformJobsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTransformJobsResponse] -> ShowS
$cshowList :: [ListTransformJobsResponse] -> ShowS
show :: ListTransformJobsResponse -> String
$cshow :: ListTransformJobsResponse -> String
showsPrec :: Int -> ListTransformJobsResponse -> ShowS
$cshowsPrec :: Int -> ListTransformJobsResponse -> ShowS
Prelude.Show, (forall x.
 ListTransformJobsResponse -> Rep ListTransformJobsResponse x)
-> (forall x.
    Rep ListTransformJobsResponse x -> ListTransformJobsResponse)
-> Generic ListTransformJobsResponse
forall x.
Rep ListTransformJobsResponse x -> ListTransformJobsResponse
forall x.
ListTransformJobsResponse -> Rep ListTransformJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListTransformJobsResponse x -> ListTransformJobsResponse
$cfrom :: forall x.
ListTransformJobsResponse -> Rep ListTransformJobsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListTransformJobsResponse' 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', 'listTransformJobsResponse_nextToken' - If the response is truncated, Amazon SageMaker returns this token. To
-- retrieve the next set of transform jobs, use it in the next request.
--
-- 'httpStatus', 'listTransformJobsResponse_httpStatus' - The response's http status code.
--
-- 'transformJobSummaries', 'listTransformJobsResponse_transformJobSummaries' - An array of @TransformJobSummary@ objects.
newListTransformJobsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListTransformJobsResponse
newListTransformJobsResponse :: Int -> ListTransformJobsResponse
newListTransformJobsResponse Int
pHttpStatus_ =
  ListTransformJobsResponse' :: Maybe Text
-> Int -> [TransformJobSummary] -> ListTransformJobsResponse
ListTransformJobsResponse'
    { $sel:nextToken:ListTransformJobsResponse' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListTransformJobsResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:transformJobSummaries:ListTransformJobsResponse' :: [TransformJobSummary]
transformJobSummaries = [TransformJobSummary]
forall a. Monoid a => a
Prelude.mempty
    }

-- | If the response is truncated, Amazon SageMaker returns this token. To
-- retrieve the next set of transform jobs, use it in the next request.
listTransformJobsResponse_nextToken :: Lens.Lens' ListTransformJobsResponse (Prelude.Maybe Prelude.Text)
listTransformJobsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListTransformJobsResponse -> f ListTransformJobsResponse
listTransformJobsResponse_nextToken = (ListTransformJobsResponse -> Maybe Text)
-> (ListTransformJobsResponse
    -> Maybe Text -> ListTransformJobsResponse)
-> Lens' ListTransformJobsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTransformJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTransformJobsResponse' :: ListTransformJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTransformJobsResponse
s@ListTransformJobsResponse' {} Maybe Text
a -> ListTransformJobsResponse
s {$sel:nextToken:ListTransformJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListTransformJobsResponse)

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

-- | An array of @TransformJobSummary@ objects.
listTransformJobsResponse_transformJobSummaries :: Lens.Lens' ListTransformJobsResponse [TransformJobSummary]
listTransformJobsResponse_transformJobSummaries :: ([TransformJobSummary] -> f [TransformJobSummary])
-> ListTransformJobsResponse -> f ListTransformJobsResponse
listTransformJobsResponse_transformJobSummaries = (ListTransformJobsResponse -> [TransformJobSummary])
-> (ListTransformJobsResponse
    -> [TransformJobSummary] -> ListTransformJobsResponse)
-> Lens' ListTransformJobsResponse [TransformJobSummary]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTransformJobsResponse' {[TransformJobSummary]
transformJobSummaries :: [TransformJobSummary]
$sel:transformJobSummaries:ListTransformJobsResponse' :: ListTransformJobsResponse -> [TransformJobSummary]
transformJobSummaries} -> [TransformJobSummary]
transformJobSummaries) (\s :: ListTransformJobsResponse
s@ListTransformJobsResponse' {} [TransformJobSummary]
a -> ListTransformJobsResponse
s {$sel:transformJobSummaries:ListTransformJobsResponse' :: [TransformJobSummary]
transformJobSummaries = [TransformJobSummary]
a} :: ListTransformJobsResponse) (([TransformJobSummary] -> f [TransformJobSummary])
 -> ListTransformJobsResponse -> f ListTransformJobsResponse)
-> (([TransformJobSummary] -> f [TransformJobSummary])
    -> [TransformJobSummary] -> f [TransformJobSummary])
-> ([TransformJobSummary] -> f [TransformJobSummary])
-> ListTransformJobsResponse
-> f ListTransformJobsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([TransformJobSummary] -> f [TransformJobSummary])
-> [TransformJobSummary] -> f [TransformJobSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Prelude.NFData ListTransformJobsResponse