{-# 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.ListAutoMLJobs
-- 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)
--
-- Request a list of jobs.
--
-- This operation returns paginated results.
module Amazonka.SageMaker.ListAutoMLJobs
  ( -- * Creating a Request
    ListAutoMLJobs (..),
    newListAutoMLJobs,

    -- * Request Lenses
    listAutoMLJobs_nameContains,
    listAutoMLJobs_lastModifiedTimeBefore,
    listAutoMLJobs_creationTimeAfter,
    listAutoMLJobs_nextToken,
    listAutoMLJobs_sortOrder,
    listAutoMLJobs_lastModifiedTimeAfter,
    listAutoMLJobs_creationTimeBefore,
    listAutoMLJobs_statusEquals,
    listAutoMLJobs_maxResults,
    listAutoMLJobs_sortBy,

    -- * Destructuring the Response
    ListAutoMLJobsResponse (..),
    newListAutoMLJobsResponse,

    -- * Response Lenses
    listAutoMLJobsResponse_nextToken,
    listAutoMLJobsResponse_httpStatus,
    listAutoMLJobsResponse_autoMLJobSummaries,
  )
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:/ 'newListAutoMLJobs' smart constructor.
data ListAutoMLJobs = ListAutoMLJobs'
  { -- | Request a list of jobs, using a search filter for name.
    ListAutoMLJobs -> Maybe Text
nameContains :: Prelude.Maybe Prelude.Text,
    -- | Request a list of jobs, using a filter for time.
    ListAutoMLJobs -> Maybe POSIX
lastModifiedTimeBefore :: Prelude.Maybe Core.POSIX,
    -- | Request a list of jobs, using a filter for time.
    ListAutoMLJobs -> Maybe POSIX
creationTimeAfter :: Prelude.Maybe Core.POSIX,
    -- | If the previous response was truncated, you receive this token. Use it
    -- in your next request to receive the next set of results.
    ListAutoMLJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The sort order for the results. The default is @Descending@.
    ListAutoMLJobs -> Maybe AutoMLSortOrder
sortOrder :: Prelude.Maybe AutoMLSortOrder,
    -- | Request a list of jobs, using a filter for time.
    ListAutoMLJobs -> Maybe POSIX
lastModifiedTimeAfter :: Prelude.Maybe Core.POSIX,
    -- | Request a list of jobs, using a filter for time.
    ListAutoMLJobs -> Maybe POSIX
creationTimeBefore :: Prelude.Maybe Core.POSIX,
    -- | Request a list of jobs, using a filter for status.
    ListAutoMLJobs -> Maybe AutoMLJobStatus
statusEquals :: Prelude.Maybe AutoMLJobStatus,
    -- | Request a list of jobs up to a specified limit.
    ListAutoMLJobs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The parameter by which to sort the results. The default is @Name@.
    ListAutoMLJobs -> Maybe AutoMLSortBy
sortBy :: Prelude.Maybe AutoMLSortBy
  }
  deriving (ListAutoMLJobs -> ListAutoMLJobs -> Bool
(ListAutoMLJobs -> ListAutoMLJobs -> Bool)
-> (ListAutoMLJobs -> ListAutoMLJobs -> Bool) -> Eq ListAutoMLJobs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAutoMLJobs -> ListAutoMLJobs -> Bool
$c/= :: ListAutoMLJobs -> ListAutoMLJobs -> Bool
== :: ListAutoMLJobs -> ListAutoMLJobs -> Bool
$c== :: ListAutoMLJobs -> ListAutoMLJobs -> Bool
Prelude.Eq, ReadPrec [ListAutoMLJobs]
ReadPrec ListAutoMLJobs
Int -> ReadS ListAutoMLJobs
ReadS [ListAutoMLJobs]
(Int -> ReadS ListAutoMLJobs)
-> ReadS [ListAutoMLJobs]
-> ReadPrec ListAutoMLJobs
-> ReadPrec [ListAutoMLJobs]
-> Read ListAutoMLJobs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAutoMLJobs]
$creadListPrec :: ReadPrec [ListAutoMLJobs]
readPrec :: ReadPrec ListAutoMLJobs
$creadPrec :: ReadPrec ListAutoMLJobs
readList :: ReadS [ListAutoMLJobs]
$creadList :: ReadS [ListAutoMLJobs]
readsPrec :: Int -> ReadS ListAutoMLJobs
$creadsPrec :: Int -> ReadS ListAutoMLJobs
Prelude.Read, Int -> ListAutoMLJobs -> ShowS
[ListAutoMLJobs] -> ShowS
ListAutoMLJobs -> String
(Int -> ListAutoMLJobs -> ShowS)
-> (ListAutoMLJobs -> String)
-> ([ListAutoMLJobs] -> ShowS)
-> Show ListAutoMLJobs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAutoMLJobs] -> ShowS
$cshowList :: [ListAutoMLJobs] -> ShowS
show :: ListAutoMLJobs -> String
$cshow :: ListAutoMLJobs -> String
showsPrec :: Int -> ListAutoMLJobs -> ShowS
$cshowsPrec :: Int -> ListAutoMLJobs -> ShowS
Prelude.Show, (forall x. ListAutoMLJobs -> Rep ListAutoMLJobs x)
-> (forall x. Rep ListAutoMLJobs x -> ListAutoMLJobs)
-> Generic ListAutoMLJobs
forall x. Rep ListAutoMLJobs x -> ListAutoMLJobs
forall x. ListAutoMLJobs -> Rep ListAutoMLJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListAutoMLJobs x -> ListAutoMLJobs
$cfrom :: forall x. ListAutoMLJobs -> Rep ListAutoMLJobs x
Prelude.Generic)

-- |
-- Create a value of 'ListAutoMLJobs' 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', 'listAutoMLJobs_nameContains' - Request a list of jobs, using a search filter for name.
--
-- 'lastModifiedTimeBefore', 'listAutoMLJobs_lastModifiedTimeBefore' - Request a list of jobs, using a filter for time.
--
-- 'creationTimeAfter', 'listAutoMLJobs_creationTimeAfter' - Request a list of jobs, using a filter for time.
--
-- 'nextToken', 'listAutoMLJobs_nextToken' - If the previous response was truncated, you receive this token. Use it
-- in your next request to receive the next set of results.
--
-- 'sortOrder', 'listAutoMLJobs_sortOrder' - The sort order for the results. The default is @Descending@.
--
-- 'lastModifiedTimeAfter', 'listAutoMLJobs_lastModifiedTimeAfter' - Request a list of jobs, using a filter for time.
--
-- 'creationTimeBefore', 'listAutoMLJobs_creationTimeBefore' - Request a list of jobs, using a filter for time.
--
-- 'statusEquals', 'listAutoMLJobs_statusEquals' - Request a list of jobs, using a filter for status.
--
-- 'maxResults', 'listAutoMLJobs_maxResults' - Request a list of jobs up to a specified limit.
--
-- 'sortBy', 'listAutoMLJobs_sortBy' - The parameter by which to sort the results. The default is @Name@.
newListAutoMLJobs ::
  ListAutoMLJobs
newListAutoMLJobs :: ListAutoMLJobs
newListAutoMLJobs =
  ListAutoMLJobs' :: Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe AutoMLSortOrder
-> Maybe POSIX
-> Maybe POSIX
-> Maybe AutoMLJobStatus
-> Maybe Natural
-> Maybe AutoMLSortBy
-> ListAutoMLJobs
ListAutoMLJobs'
    { $sel:nameContains:ListAutoMLJobs' :: Maybe Text
nameContains = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTimeBefore:ListAutoMLJobs' :: Maybe POSIX
lastModifiedTimeBefore = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:creationTimeAfter:ListAutoMLJobs' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListAutoMLJobs' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:sortOrder:ListAutoMLJobs' :: Maybe AutoMLSortOrder
sortOrder = Maybe AutoMLSortOrder
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTimeAfter:ListAutoMLJobs' :: Maybe POSIX
lastModifiedTimeAfter = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:creationTimeBefore:ListAutoMLJobs' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:statusEquals:ListAutoMLJobs' :: Maybe AutoMLJobStatus
statusEquals = Maybe AutoMLJobStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListAutoMLJobs' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:sortBy:ListAutoMLJobs' :: Maybe AutoMLSortBy
sortBy = Maybe AutoMLSortBy
forall a. Maybe a
Prelude.Nothing
    }

-- | Request a list of jobs, using a search filter for name.
listAutoMLJobs_nameContains :: Lens.Lens' ListAutoMLJobs (Prelude.Maybe Prelude.Text)
listAutoMLJobs_nameContains :: (Maybe Text -> f (Maybe Text))
-> ListAutoMLJobs -> f ListAutoMLJobs
listAutoMLJobs_nameContains = (ListAutoMLJobs -> Maybe Text)
-> (ListAutoMLJobs -> Maybe Text -> ListAutoMLJobs)
-> Lens ListAutoMLJobs ListAutoMLJobs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAutoMLJobs' {Maybe Text
nameContains :: Maybe Text
$sel:nameContains:ListAutoMLJobs' :: ListAutoMLJobs -> Maybe Text
nameContains} -> Maybe Text
nameContains) (\s :: ListAutoMLJobs
s@ListAutoMLJobs' {} Maybe Text
a -> ListAutoMLJobs
s {$sel:nameContains:ListAutoMLJobs' :: Maybe Text
nameContains = Maybe Text
a} :: ListAutoMLJobs)

-- | Request a list of jobs, using a filter for time.
listAutoMLJobs_lastModifiedTimeBefore :: Lens.Lens' ListAutoMLJobs (Prelude.Maybe Prelude.UTCTime)
listAutoMLJobs_lastModifiedTimeBefore :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListAutoMLJobs -> f ListAutoMLJobs
listAutoMLJobs_lastModifiedTimeBefore = (ListAutoMLJobs -> Maybe POSIX)
-> (ListAutoMLJobs -> Maybe POSIX -> ListAutoMLJobs)
-> Lens ListAutoMLJobs ListAutoMLJobs (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAutoMLJobs' {Maybe POSIX
lastModifiedTimeBefore :: Maybe POSIX
$sel:lastModifiedTimeBefore:ListAutoMLJobs' :: ListAutoMLJobs -> Maybe POSIX
lastModifiedTimeBefore} -> Maybe POSIX
lastModifiedTimeBefore) (\s :: ListAutoMLJobs
s@ListAutoMLJobs' {} Maybe POSIX
a -> ListAutoMLJobs
s {$sel:lastModifiedTimeBefore:ListAutoMLJobs' :: Maybe POSIX
lastModifiedTimeBefore = Maybe POSIX
a} :: ListAutoMLJobs) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListAutoMLJobs -> f ListAutoMLJobs)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListAutoMLJobs
-> f ListAutoMLJobs
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

-- | Request a list of jobs, using a filter for time.
listAutoMLJobs_creationTimeAfter :: Lens.Lens' ListAutoMLJobs (Prelude.Maybe Prelude.UTCTime)
listAutoMLJobs_creationTimeAfter :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListAutoMLJobs -> f ListAutoMLJobs
listAutoMLJobs_creationTimeAfter = (ListAutoMLJobs -> Maybe POSIX)
-> (ListAutoMLJobs -> Maybe POSIX -> ListAutoMLJobs)
-> Lens ListAutoMLJobs ListAutoMLJobs (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAutoMLJobs' {Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:creationTimeAfter:ListAutoMLJobs' :: ListAutoMLJobs -> Maybe POSIX
creationTimeAfter} -> Maybe POSIX
creationTimeAfter) (\s :: ListAutoMLJobs
s@ListAutoMLJobs' {} Maybe POSIX
a -> ListAutoMLJobs
s {$sel:creationTimeAfter:ListAutoMLJobs' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
a} :: ListAutoMLJobs) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListAutoMLJobs -> f ListAutoMLJobs)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListAutoMLJobs
-> f ListAutoMLJobs
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 previous response was truncated, you receive this token. Use it
-- in your next request to receive the next set of results.
listAutoMLJobs_nextToken :: Lens.Lens' ListAutoMLJobs (Prelude.Maybe Prelude.Text)
listAutoMLJobs_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListAutoMLJobs -> f ListAutoMLJobs
listAutoMLJobs_nextToken = (ListAutoMLJobs -> Maybe Text)
-> (ListAutoMLJobs -> Maybe Text -> ListAutoMLJobs)
-> Lens ListAutoMLJobs ListAutoMLJobs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAutoMLJobs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAutoMLJobs' :: ListAutoMLJobs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAutoMLJobs
s@ListAutoMLJobs' {} Maybe Text
a -> ListAutoMLJobs
s {$sel:nextToken:ListAutoMLJobs' :: Maybe Text
nextToken = Maybe Text
a} :: ListAutoMLJobs)

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

-- | Request a list of jobs, using a filter for time.
listAutoMLJobs_lastModifiedTimeAfter :: Lens.Lens' ListAutoMLJobs (Prelude.Maybe Prelude.UTCTime)
listAutoMLJobs_lastModifiedTimeAfter :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListAutoMLJobs -> f ListAutoMLJobs
listAutoMLJobs_lastModifiedTimeAfter = (ListAutoMLJobs -> Maybe POSIX)
-> (ListAutoMLJobs -> Maybe POSIX -> ListAutoMLJobs)
-> Lens ListAutoMLJobs ListAutoMLJobs (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAutoMLJobs' {Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
$sel:lastModifiedTimeAfter:ListAutoMLJobs' :: ListAutoMLJobs -> Maybe POSIX
lastModifiedTimeAfter} -> Maybe POSIX
lastModifiedTimeAfter) (\s :: ListAutoMLJobs
s@ListAutoMLJobs' {} Maybe POSIX
a -> ListAutoMLJobs
s {$sel:lastModifiedTimeAfter:ListAutoMLJobs' :: Maybe POSIX
lastModifiedTimeAfter = Maybe POSIX
a} :: ListAutoMLJobs) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListAutoMLJobs -> f ListAutoMLJobs)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListAutoMLJobs
-> f ListAutoMLJobs
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

-- | Request a list of jobs, using a filter for time.
listAutoMLJobs_creationTimeBefore :: Lens.Lens' ListAutoMLJobs (Prelude.Maybe Prelude.UTCTime)
listAutoMLJobs_creationTimeBefore :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListAutoMLJobs -> f ListAutoMLJobs
listAutoMLJobs_creationTimeBefore = (ListAutoMLJobs -> Maybe POSIX)
-> (ListAutoMLJobs -> Maybe POSIX -> ListAutoMLJobs)
-> Lens ListAutoMLJobs ListAutoMLJobs (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAutoMLJobs' {Maybe POSIX
creationTimeBefore :: Maybe POSIX
$sel:creationTimeBefore:ListAutoMLJobs' :: ListAutoMLJobs -> Maybe POSIX
creationTimeBefore} -> Maybe POSIX
creationTimeBefore) (\s :: ListAutoMLJobs
s@ListAutoMLJobs' {} Maybe POSIX
a -> ListAutoMLJobs
s {$sel:creationTimeBefore:ListAutoMLJobs' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
a} :: ListAutoMLJobs) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListAutoMLJobs -> f ListAutoMLJobs)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListAutoMLJobs
-> f ListAutoMLJobs
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

-- | Request a list of jobs, using a filter for status.
listAutoMLJobs_statusEquals :: Lens.Lens' ListAutoMLJobs (Prelude.Maybe AutoMLJobStatus)
listAutoMLJobs_statusEquals :: (Maybe AutoMLJobStatus -> f (Maybe AutoMLJobStatus))
-> ListAutoMLJobs -> f ListAutoMLJobs
listAutoMLJobs_statusEquals = (ListAutoMLJobs -> Maybe AutoMLJobStatus)
-> (ListAutoMLJobs -> Maybe AutoMLJobStatus -> ListAutoMLJobs)
-> Lens
     ListAutoMLJobs
     ListAutoMLJobs
     (Maybe AutoMLJobStatus)
     (Maybe AutoMLJobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAutoMLJobs' {Maybe AutoMLJobStatus
statusEquals :: Maybe AutoMLJobStatus
$sel:statusEquals:ListAutoMLJobs' :: ListAutoMLJobs -> Maybe AutoMLJobStatus
statusEquals} -> Maybe AutoMLJobStatus
statusEquals) (\s :: ListAutoMLJobs
s@ListAutoMLJobs' {} Maybe AutoMLJobStatus
a -> ListAutoMLJobs
s {$sel:statusEquals:ListAutoMLJobs' :: Maybe AutoMLJobStatus
statusEquals = Maybe AutoMLJobStatus
a} :: ListAutoMLJobs)

-- | Request a list of jobs up to a specified limit.
listAutoMLJobs_maxResults :: Lens.Lens' ListAutoMLJobs (Prelude.Maybe Prelude.Natural)
listAutoMLJobs_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListAutoMLJobs -> f ListAutoMLJobs
listAutoMLJobs_maxResults = (ListAutoMLJobs -> Maybe Natural)
-> (ListAutoMLJobs -> Maybe Natural -> ListAutoMLJobs)
-> Lens
     ListAutoMLJobs ListAutoMLJobs (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAutoMLJobs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListAutoMLJobs' :: ListAutoMLJobs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListAutoMLJobs
s@ListAutoMLJobs' {} Maybe Natural
a -> ListAutoMLJobs
s {$sel:maxResults:ListAutoMLJobs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListAutoMLJobs)

-- | The parameter by which to sort the results. The default is @Name@.
listAutoMLJobs_sortBy :: Lens.Lens' ListAutoMLJobs (Prelude.Maybe AutoMLSortBy)
listAutoMLJobs_sortBy :: (Maybe AutoMLSortBy -> f (Maybe AutoMLSortBy))
-> ListAutoMLJobs -> f ListAutoMLJobs
listAutoMLJobs_sortBy = (ListAutoMLJobs -> Maybe AutoMLSortBy)
-> (ListAutoMLJobs -> Maybe AutoMLSortBy -> ListAutoMLJobs)
-> Lens
     ListAutoMLJobs
     ListAutoMLJobs
     (Maybe AutoMLSortBy)
     (Maybe AutoMLSortBy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAutoMLJobs' {Maybe AutoMLSortBy
sortBy :: Maybe AutoMLSortBy
$sel:sortBy:ListAutoMLJobs' :: ListAutoMLJobs -> Maybe AutoMLSortBy
sortBy} -> Maybe AutoMLSortBy
sortBy) (\s :: ListAutoMLJobs
s@ListAutoMLJobs' {} Maybe AutoMLSortBy
a -> ListAutoMLJobs
s {$sel:sortBy:ListAutoMLJobs' :: Maybe AutoMLSortBy
sortBy = Maybe AutoMLSortBy
a} :: ListAutoMLJobs)

instance Core.AWSPager ListAutoMLJobs where
  page :: ListAutoMLJobs
-> AWSResponse ListAutoMLJobs -> Maybe ListAutoMLJobs
page ListAutoMLJobs
rq AWSResponse ListAutoMLJobs
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListAutoMLJobs
ListAutoMLJobsResponse
rs
            ListAutoMLJobsResponse
-> Getting (First Text) ListAutoMLJobsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListAutoMLJobsResponse
-> Const (First Text) ListAutoMLJobsResponse
Lens' ListAutoMLJobsResponse (Maybe Text)
listAutoMLJobsResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListAutoMLJobsResponse
 -> Const (First Text) ListAutoMLJobsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListAutoMLJobsResponse 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 ListAutoMLJobs
forall a. Maybe a
Prelude.Nothing
    | [AutoMLJobSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListAutoMLJobs
ListAutoMLJobsResponse
rs
            ListAutoMLJobsResponse
-> Getting
     [AutoMLJobSummary] ListAutoMLJobsResponse [AutoMLJobSummary]
-> [AutoMLJobSummary]
forall s a. s -> Getting a s a -> a
Lens.^. Getting
  [AutoMLJobSummary] ListAutoMLJobsResponse [AutoMLJobSummary]
Lens' ListAutoMLJobsResponse [AutoMLJobSummary]
listAutoMLJobsResponse_autoMLJobSummaries
        ) =
      Maybe ListAutoMLJobs
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      ListAutoMLJobs -> Maybe ListAutoMLJobs
forall a. a -> Maybe a
Prelude.Just (ListAutoMLJobs -> Maybe ListAutoMLJobs)
-> ListAutoMLJobs -> Maybe ListAutoMLJobs
forall a b. (a -> b) -> a -> b
Prelude.$
        ListAutoMLJobs
rq
          ListAutoMLJobs
-> (ListAutoMLJobs -> ListAutoMLJobs) -> ListAutoMLJobs
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListAutoMLJobs -> Identity ListAutoMLJobs
Lens ListAutoMLJobs ListAutoMLJobs (Maybe Text) (Maybe Text)
listAutoMLJobs_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> ListAutoMLJobs -> Identity ListAutoMLJobs)
-> Maybe Text -> ListAutoMLJobs -> ListAutoMLJobs
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListAutoMLJobs
ListAutoMLJobsResponse
rs
          ListAutoMLJobsResponse
-> Getting (First Text) ListAutoMLJobsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListAutoMLJobsResponse
-> Const (First Text) ListAutoMLJobsResponse
Lens' ListAutoMLJobsResponse (Maybe Text)
listAutoMLJobsResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListAutoMLJobsResponse
 -> Const (First Text) ListAutoMLJobsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListAutoMLJobsResponse 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 ListAutoMLJobs where
  type
    AWSResponse ListAutoMLJobs =
      ListAutoMLJobsResponse
  request :: ListAutoMLJobs -> Request ListAutoMLJobs
request = Service -> ListAutoMLJobs -> Request ListAutoMLJobs
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListAutoMLJobs
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListAutoMLJobs)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListAutoMLJobs))
-> Logger
-> Service
-> Proxy ListAutoMLJobs
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListAutoMLJobs)))
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 -> [AutoMLJobSummary] -> ListAutoMLJobsResponse
ListAutoMLJobsResponse'
            (Maybe Text -> Int -> [AutoMLJobSummary] -> ListAutoMLJobsResponse)
-> Either String (Maybe Text)
-> Either
     String (Int -> [AutoMLJobSummary] -> ListAutoMLJobsResponse)
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 -> [AutoMLJobSummary] -> ListAutoMLJobsResponse)
-> Either String Int
-> Either String ([AutoMLJobSummary] -> ListAutoMLJobsResponse)
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 ([AutoMLJobSummary] -> ListAutoMLJobsResponse)
-> Either String [AutoMLJobSummary]
-> Either String ListAutoMLJobsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe [AutoMLJobSummary])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AutoMLJobSummaries"
                            Either String (Maybe [AutoMLJobSummary])
-> [AutoMLJobSummary] -> Either String [AutoMLJobSummary]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [AutoMLJobSummary]
forall a. Monoid a => a
Prelude.mempty
                        )
      )

instance Prelude.Hashable ListAutoMLJobs

instance Prelude.NFData ListAutoMLJobs

instance Core.ToHeaders ListAutoMLJobs where
  toHeaders :: ListAutoMLJobs -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListAutoMLJobs -> 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.ListAutoMLJobs" :: 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 ListAutoMLJobs where
  toJSON :: ListAutoMLJobs -> Value
toJSON ListAutoMLJobs' {Maybe Natural
Maybe Text
Maybe POSIX
Maybe AutoMLJobStatus
Maybe AutoMLSortBy
Maybe AutoMLSortOrder
sortBy :: Maybe AutoMLSortBy
maxResults :: Maybe Natural
statusEquals :: Maybe AutoMLJobStatus
creationTimeBefore :: Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
sortOrder :: Maybe AutoMLSortOrder
nextToken :: Maybe Text
creationTimeAfter :: Maybe POSIX
lastModifiedTimeBefore :: Maybe POSIX
nameContains :: Maybe Text
$sel:sortBy:ListAutoMLJobs' :: ListAutoMLJobs -> Maybe AutoMLSortBy
$sel:maxResults:ListAutoMLJobs' :: ListAutoMLJobs -> Maybe Natural
$sel:statusEquals:ListAutoMLJobs' :: ListAutoMLJobs -> Maybe AutoMLJobStatus
$sel:creationTimeBefore:ListAutoMLJobs' :: ListAutoMLJobs -> Maybe POSIX
$sel:lastModifiedTimeAfter:ListAutoMLJobs' :: ListAutoMLJobs -> Maybe POSIX
$sel:sortOrder:ListAutoMLJobs' :: ListAutoMLJobs -> Maybe AutoMLSortOrder
$sel:nextToken:ListAutoMLJobs' :: ListAutoMLJobs -> Maybe Text
$sel:creationTimeAfter:ListAutoMLJobs' :: ListAutoMLJobs -> Maybe POSIX
$sel:lastModifiedTimeBefore:ListAutoMLJobs' :: ListAutoMLJobs -> Maybe POSIX
$sel:nameContains:ListAutoMLJobs' :: ListAutoMLJobs -> 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 -> AutoMLSortOrder -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (AutoMLSortOrder -> Pair) -> Maybe AutoMLSortOrder -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AutoMLSortOrder
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 -> AutoMLJobStatus -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (AutoMLJobStatus -> Pair) -> Maybe AutoMLJobStatus -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AutoMLJobStatus
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 -> AutoMLSortBy -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (AutoMLSortBy -> Pair) -> Maybe AutoMLSortBy -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AutoMLSortBy
sortBy
          ]
      )

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

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

-- | /See:/ 'newListAutoMLJobsResponse' smart constructor.
data ListAutoMLJobsResponse = ListAutoMLJobsResponse'
  { -- | If the previous response was truncated, you receive this token. Use it
    -- in your next request to receive the next set of results.
    ListAutoMLJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListAutoMLJobsResponse -> Int
httpStatus :: Prelude.Int,
    -- | Returns a summary list of jobs.
    ListAutoMLJobsResponse -> [AutoMLJobSummary]
autoMLJobSummaries :: [AutoMLJobSummary]
  }
  deriving (ListAutoMLJobsResponse -> ListAutoMLJobsResponse -> Bool
(ListAutoMLJobsResponse -> ListAutoMLJobsResponse -> Bool)
-> (ListAutoMLJobsResponse -> ListAutoMLJobsResponse -> Bool)
-> Eq ListAutoMLJobsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAutoMLJobsResponse -> ListAutoMLJobsResponse -> Bool
$c/= :: ListAutoMLJobsResponse -> ListAutoMLJobsResponse -> Bool
== :: ListAutoMLJobsResponse -> ListAutoMLJobsResponse -> Bool
$c== :: ListAutoMLJobsResponse -> ListAutoMLJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListAutoMLJobsResponse]
ReadPrec ListAutoMLJobsResponse
Int -> ReadS ListAutoMLJobsResponse
ReadS [ListAutoMLJobsResponse]
(Int -> ReadS ListAutoMLJobsResponse)
-> ReadS [ListAutoMLJobsResponse]
-> ReadPrec ListAutoMLJobsResponse
-> ReadPrec [ListAutoMLJobsResponse]
-> Read ListAutoMLJobsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAutoMLJobsResponse]
$creadListPrec :: ReadPrec [ListAutoMLJobsResponse]
readPrec :: ReadPrec ListAutoMLJobsResponse
$creadPrec :: ReadPrec ListAutoMLJobsResponse
readList :: ReadS [ListAutoMLJobsResponse]
$creadList :: ReadS [ListAutoMLJobsResponse]
readsPrec :: Int -> ReadS ListAutoMLJobsResponse
$creadsPrec :: Int -> ReadS ListAutoMLJobsResponse
Prelude.Read, Int -> ListAutoMLJobsResponse -> ShowS
[ListAutoMLJobsResponse] -> ShowS
ListAutoMLJobsResponse -> String
(Int -> ListAutoMLJobsResponse -> ShowS)
-> (ListAutoMLJobsResponse -> String)
-> ([ListAutoMLJobsResponse] -> ShowS)
-> Show ListAutoMLJobsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAutoMLJobsResponse] -> ShowS
$cshowList :: [ListAutoMLJobsResponse] -> ShowS
show :: ListAutoMLJobsResponse -> String
$cshow :: ListAutoMLJobsResponse -> String
showsPrec :: Int -> ListAutoMLJobsResponse -> ShowS
$cshowsPrec :: Int -> ListAutoMLJobsResponse -> ShowS
Prelude.Show, (forall x. ListAutoMLJobsResponse -> Rep ListAutoMLJobsResponse x)
-> (forall x.
    Rep ListAutoMLJobsResponse x -> ListAutoMLJobsResponse)
-> Generic ListAutoMLJobsResponse
forall x. Rep ListAutoMLJobsResponse x -> ListAutoMLJobsResponse
forall x. ListAutoMLJobsResponse -> Rep ListAutoMLJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListAutoMLJobsResponse x -> ListAutoMLJobsResponse
$cfrom :: forall x. ListAutoMLJobsResponse -> Rep ListAutoMLJobsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListAutoMLJobsResponse' 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', 'listAutoMLJobsResponse_nextToken' - If the previous response was truncated, you receive this token. Use it
-- in your next request to receive the next set of results.
--
-- 'httpStatus', 'listAutoMLJobsResponse_httpStatus' - The response's http status code.
--
-- 'autoMLJobSummaries', 'listAutoMLJobsResponse_autoMLJobSummaries' - Returns a summary list of jobs.
newListAutoMLJobsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListAutoMLJobsResponse
newListAutoMLJobsResponse :: Int -> ListAutoMLJobsResponse
newListAutoMLJobsResponse Int
pHttpStatus_ =
  ListAutoMLJobsResponse' :: Maybe Text -> Int -> [AutoMLJobSummary] -> ListAutoMLJobsResponse
ListAutoMLJobsResponse'
    { $sel:nextToken:ListAutoMLJobsResponse' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListAutoMLJobsResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:autoMLJobSummaries:ListAutoMLJobsResponse' :: [AutoMLJobSummary]
autoMLJobSummaries = [AutoMLJobSummary]
forall a. Monoid a => a
Prelude.mempty
    }

-- | If the previous response was truncated, you receive this token. Use it
-- in your next request to receive the next set of results.
listAutoMLJobsResponse_nextToken :: Lens.Lens' ListAutoMLJobsResponse (Prelude.Maybe Prelude.Text)
listAutoMLJobsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListAutoMLJobsResponse -> f ListAutoMLJobsResponse
listAutoMLJobsResponse_nextToken = (ListAutoMLJobsResponse -> Maybe Text)
-> (ListAutoMLJobsResponse -> Maybe Text -> ListAutoMLJobsResponse)
-> Lens' ListAutoMLJobsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAutoMLJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAutoMLJobsResponse' :: ListAutoMLJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAutoMLJobsResponse
s@ListAutoMLJobsResponse' {} Maybe Text
a -> ListAutoMLJobsResponse
s {$sel:nextToken:ListAutoMLJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListAutoMLJobsResponse)

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

-- | Returns a summary list of jobs.
listAutoMLJobsResponse_autoMLJobSummaries :: Lens.Lens' ListAutoMLJobsResponse [AutoMLJobSummary]
listAutoMLJobsResponse_autoMLJobSummaries :: ([AutoMLJobSummary] -> f [AutoMLJobSummary])
-> ListAutoMLJobsResponse -> f ListAutoMLJobsResponse
listAutoMLJobsResponse_autoMLJobSummaries = (ListAutoMLJobsResponse -> [AutoMLJobSummary])
-> (ListAutoMLJobsResponse
    -> [AutoMLJobSummary] -> ListAutoMLJobsResponse)
-> Lens' ListAutoMLJobsResponse [AutoMLJobSummary]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAutoMLJobsResponse' {[AutoMLJobSummary]
autoMLJobSummaries :: [AutoMLJobSummary]
$sel:autoMLJobSummaries:ListAutoMLJobsResponse' :: ListAutoMLJobsResponse -> [AutoMLJobSummary]
autoMLJobSummaries} -> [AutoMLJobSummary]
autoMLJobSummaries) (\s :: ListAutoMLJobsResponse
s@ListAutoMLJobsResponse' {} [AutoMLJobSummary]
a -> ListAutoMLJobsResponse
s {$sel:autoMLJobSummaries:ListAutoMLJobsResponse' :: [AutoMLJobSummary]
autoMLJobSummaries = [AutoMLJobSummary]
a} :: ListAutoMLJobsResponse) (([AutoMLJobSummary] -> f [AutoMLJobSummary])
 -> ListAutoMLJobsResponse -> f ListAutoMLJobsResponse)
-> (([AutoMLJobSummary] -> f [AutoMLJobSummary])
    -> [AutoMLJobSummary] -> f [AutoMLJobSummary])
-> ([AutoMLJobSummary] -> f [AutoMLJobSummary])
-> ListAutoMLJobsResponse
-> f ListAutoMLJobsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([AutoMLJobSummary] -> f [AutoMLJobSummary])
-> [AutoMLJobSummary] -> f [AutoMLJobSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Prelude.NFData ListAutoMLJobsResponse