{-# 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.ListInferenceRecommendationsJobs
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists recommendation jobs that satisfy various filters.
--
-- This operation returns paginated results.
module Amazonka.SageMaker.ListInferenceRecommendationsJobs
  ( -- * Creating a Request
    ListInferenceRecommendationsJobs (..),
    newListInferenceRecommendationsJobs,

    -- * Request Lenses
    listInferenceRecommendationsJobs_creationTimeAfter,
    listInferenceRecommendationsJobs_creationTimeBefore,
    listInferenceRecommendationsJobs_lastModifiedTimeAfter,
    listInferenceRecommendationsJobs_lastModifiedTimeBefore,
    listInferenceRecommendationsJobs_maxResults,
    listInferenceRecommendationsJobs_nameContains,
    listInferenceRecommendationsJobs_nextToken,
    listInferenceRecommendationsJobs_sortBy,
    listInferenceRecommendationsJobs_sortOrder,
    listInferenceRecommendationsJobs_statusEquals,

    -- * Destructuring the Response
    ListInferenceRecommendationsJobsResponse (..),
    newListInferenceRecommendationsJobsResponse,

    -- * Response Lenses
    listInferenceRecommendationsJobsResponse_nextToken,
    listInferenceRecommendationsJobsResponse_httpStatus,
    listInferenceRecommendationsJobsResponse_inferenceRecommendationsJobs,
  )
where

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

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

-- |
-- Create a value of 'ListInferenceRecommendationsJobs' 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:
--
-- 'creationTimeAfter', 'listInferenceRecommendationsJobs_creationTimeAfter' - A filter that returns only jobs created after the specified time
-- (timestamp).
--
-- 'creationTimeBefore', 'listInferenceRecommendationsJobs_creationTimeBefore' - A filter that returns only jobs created before the specified time
-- (timestamp).
--
-- 'lastModifiedTimeAfter', 'listInferenceRecommendationsJobs_lastModifiedTimeAfter' - A filter that returns only jobs that were last modified after the
-- specified time (timestamp).
--
-- 'lastModifiedTimeBefore', 'listInferenceRecommendationsJobs_lastModifiedTimeBefore' - A filter that returns only jobs that were last modified before the
-- specified time (timestamp).
--
-- 'maxResults', 'listInferenceRecommendationsJobs_maxResults' - The maximum number of recommendations to return in the response.
--
-- 'nameContains', 'listInferenceRecommendationsJobs_nameContains' - A string in the job name. This filter returns only recommendations whose
-- name contains the specified string.
--
-- 'nextToken', 'listInferenceRecommendationsJobs_nextToken' - If the response to a previous @ListInferenceRecommendationsJobsRequest@
-- request was truncated, the response includes a @NextToken@. To retrieve
-- the next set of recommendations, use the token in the next request.
--
-- 'sortBy', 'listInferenceRecommendationsJobs_sortBy' - The parameter by which to sort the results.
--
-- 'sortOrder', 'listInferenceRecommendationsJobs_sortOrder' - The sort order for the results.
--
-- 'statusEquals', 'listInferenceRecommendationsJobs_statusEquals' - A filter that retrieves only inference recommendations jobs with a
-- specific status.
newListInferenceRecommendationsJobs ::
  ListInferenceRecommendationsJobs
newListInferenceRecommendationsJobs :: ListInferenceRecommendationsJobs
newListInferenceRecommendationsJobs =
  ListInferenceRecommendationsJobs'
    { $sel:creationTimeAfter:ListInferenceRecommendationsJobs' :: Maybe POSIX
creationTimeAfter =
        forall a. Maybe a
Prelude.Nothing,
      $sel:creationTimeBefore:ListInferenceRecommendationsJobs' :: Maybe POSIX
creationTimeBefore = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTimeAfter:ListInferenceRecommendationsJobs' :: Maybe POSIX
lastModifiedTimeAfter = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTimeBefore:ListInferenceRecommendationsJobs' :: Maybe POSIX
lastModifiedTimeBefore = forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListInferenceRecommendationsJobs' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nameContains:ListInferenceRecommendationsJobs' :: Maybe Text
nameContains = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListInferenceRecommendationsJobs' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:sortBy:ListInferenceRecommendationsJobs' :: Maybe ListInferenceRecommendationsJobsSortBy
sortBy = forall a. Maybe a
Prelude.Nothing,
      $sel:sortOrder:ListInferenceRecommendationsJobs' :: Maybe SortOrder
sortOrder = forall a. Maybe a
Prelude.Nothing,
      $sel:statusEquals:ListInferenceRecommendationsJobs' :: Maybe RecommendationJobStatus
statusEquals = forall a. Maybe a
Prelude.Nothing
    }

-- | A filter that returns only jobs created after the specified time
-- (timestamp).
listInferenceRecommendationsJobs_creationTimeAfter :: Lens.Lens' ListInferenceRecommendationsJobs (Prelude.Maybe Prelude.UTCTime)
listInferenceRecommendationsJobs_creationTimeAfter :: Lens' ListInferenceRecommendationsJobs (Maybe UTCTime)
listInferenceRecommendationsJobs_creationTimeAfter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobs' {Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:creationTimeAfter:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
creationTimeAfter} -> Maybe POSIX
creationTimeAfter) (\s :: ListInferenceRecommendationsJobs
s@ListInferenceRecommendationsJobs' {} Maybe POSIX
a -> ListInferenceRecommendationsJobs
s {$sel:creationTimeAfter:ListInferenceRecommendationsJobs' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
a} :: ListInferenceRecommendationsJobs) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | A filter that returns only jobs created before the specified time
-- (timestamp).
listInferenceRecommendationsJobs_creationTimeBefore :: Lens.Lens' ListInferenceRecommendationsJobs (Prelude.Maybe Prelude.UTCTime)
listInferenceRecommendationsJobs_creationTimeBefore :: Lens' ListInferenceRecommendationsJobs (Maybe UTCTime)
listInferenceRecommendationsJobs_creationTimeBefore = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobs' {Maybe POSIX
creationTimeBefore :: Maybe POSIX
$sel:creationTimeBefore:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
creationTimeBefore} -> Maybe POSIX
creationTimeBefore) (\s :: ListInferenceRecommendationsJobs
s@ListInferenceRecommendationsJobs' {} Maybe POSIX
a -> ListInferenceRecommendationsJobs
s {$sel:creationTimeBefore:ListInferenceRecommendationsJobs' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
a} :: ListInferenceRecommendationsJobs) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | A filter that returns only jobs that were last modified after the
-- specified time (timestamp).
listInferenceRecommendationsJobs_lastModifiedTimeAfter :: Lens.Lens' ListInferenceRecommendationsJobs (Prelude.Maybe Prelude.UTCTime)
listInferenceRecommendationsJobs_lastModifiedTimeAfter :: Lens' ListInferenceRecommendationsJobs (Maybe UTCTime)
listInferenceRecommendationsJobs_lastModifiedTimeAfter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobs' {Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
$sel:lastModifiedTimeAfter:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
lastModifiedTimeAfter} -> Maybe POSIX
lastModifiedTimeAfter) (\s :: ListInferenceRecommendationsJobs
s@ListInferenceRecommendationsJobs' {} Maybe POSIX
a -> ListInferenceRecommendationsJobs
s {$sel:lastModifiedTimeAfter:ListInferenceRecommendationsJobs' :: Maybe POSIX
lastModifiedTimeAfter = Maybe POSIX
a} :: ListInferenceRecommendationsJobs) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | A filter that returns only jobs that were last modified before the
-- specified time (timestamp).
listInferenceRecommendationsJobs_lastModifiedTimeBefore :: Lens.Lens' ListInferenceRecommendationsJobs (Prelude.Maybe Prelude.UTCTime)
listInferenceRecommendationsJobs_lastModifiedTimeBefore :: Lens' ListInferenceRecommendationsJobs (Maybe UTCTime)
listInferenceRecommendationsJobs_lastModifiedTimeBefore = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobs' {Maybe POSIX
lastModifiedTimeBefore :: Maybe POSIX
$sel:lastModifiedTimeBefore:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
lastModifiedTimeBefore} -> Maybe POSIX
lastModifiedTimeBefore) (\s :: ListInferenceRecommendationsJobs
s@ListInferenceRecommendationsJobs' {} Maybe POSIX
a -> ListInferenceRecommendationsJobs
s {$sel:lastModifiedTimeBefore:ListInferenceRecommendationsJobs' :: Maybe POSIX
lastModifiedTimeBefore = Maybe POSIX
a} :: ListInferenceRecommendationsJobs) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The maximum number of recommendations to return in the response.
listInferenceRecommendationsJobs_maxResults :: Lens.Lens' ListInferenceRecommendationsJobs (Prelude.Maybe Prelude.Natural)
listInferenceRecommendationsJobs_maxResults :: Lens' ListInferenceRecommendationsJobs (Maybe Natural)
listInferenceRecommendationsJobs_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListInferenceRecommendationsJobs
s@ListInferenceRecommendationsJobs' {} Maybe Natural
a -> ListInferenceRecommendationsJobs
s {$sel:maxResults:ListInferenceRecommendationsJobs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListInferenceRecommendationsJobs)

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

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

-- | The parameter by which to sort the results.
listInferenceRecommendationsJobs_sortBy :: Lens.Lens' ListInferenceRecommendationsJobs (Prelude.Maybe ListInferenceRecommendationsJobsSortBy)
listInferenceRecommendationsJobs_sortBy :: Lens'
  ListInferenceRecommendationsJobs
  (Maybe ListInferenceRecommendationsJobsSortBy)
listInferenceRecommendationsJobs_sortBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobs' {Maybe ListInferenceRecommendationsJobsSortBy
sortBy :: Maybe ListInferenceRecommendationsJobsSortBy
$sel:sortBy:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs
-> Maybe ListInferenceRecommendationsJobsSortBy
sortBy} -> Maybe ListInferenceRecommendationsJobsSortBy
sortBy) (\s :: ListInferenceRecommendationsJobs
s@ListInferenceRecommendationsJobs' {} Maybe ListInferenceRecommendationsJobsSortBy
a -> ListInferenceRecommendationsJobs
s {$sel:sortBy:ListInferenceRecommendationsJobs' :: Maybe ListInferenceRecommendationsJobsSortBy
sortBy = Maybe ListInferenceRecommendationsJobsSortBy
a} :: ListInferenceRecommendationsJobs)

-- | The sort order for the results.
listInferenceRecommendationsJobs_sortOrder :: Lens.Lens' ListInferenceRecommendationsJobs (Prelude.Maybe SortOrder)
listInferenceRecommendationsJobs_sortOrder :: Lens' ListInferenceRecommendationsJobs (Maybe SortOrder)
listInferenceRecommendationsJobs_sortOrder = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobs' {Maybe SortOrder
sortOrder :: Maybe SortOrder
$sel:sortOrder:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe SortOrder
sortOrder} -> Maybe SortOrder
sortOrder) (\s :: ListInferenceRecommendationsJobs
s@ListInferenceRecommendationsJobs' {} Maybe SortOrder
a -> ListInferenceRecommendationsJobs
s {$sel:sortOrder:ListInferenceRecommendationsJobs' :: Maybe SortOrder
sortOrder = Maybe SortOrder
a} :: ListInferenceRecommendationsJobs)

-- | A filter that retrieves only inference recommendations jobs with a
-- specific status.
listInferenceRecommendationsJobs_statusEquals :: Lens.Lens' ListInferenceRecommendationsJobs (Prelude.Maybe RecommendationJobStatus)
listInferenceRecommendationsJobs_statusEquals :: Lens'
  ListInferenceRecommendationsJobs (Maybe RecommendationJobStatus)
listInferenceRecommendationsJobs_statusEquals = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobs' {Maybe RecommendationJobStatus
statusEquals :: Maybe RecommendationJobStatus
$sel:statusEquals:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe RecommendationJobStatus
statusEquals} -> Maybe RecommendationJobStatus
statusEquals) (\s :: ListInferenceRecommendationsJobs
s@ListInferenceRecommendationsJobs' {} Maybe RecommendationJobStatus
a -> ListInferenceRecommendationsJobs
s {$sel:statusEquals:ListInferenceRecommendationsJobs' :: Maybe RecommendationJobStatus
statusEquals = Maybe RecommendationJobStatus
a} :: ListInferenceRecommendationsJobs)

instance
  Core.AWSPager
    ListInferenceRecommendationsJobs
  where
  page :: ListInferenceRecommendationsJobs
-> AWSResponse ListInferenceRecommendationsJobs
-> Maybe ListInferenceRecommendationsJobs
page ListInferenceRecommendationsJobs
rq AWSResponse ListInferenceRecommendationsJobs
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListInferenceRecommendationsJobs
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListInferenceRecommendationsJobsResponse (Maybe Text)
listInferenceRecommendationsJobsResponse_nextToken
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListInferenceRecommendationsJobs
rs
            forall s a. s -> Getting a s a -> a
Lens.^. Lens'
  ListInferenceRecommendationsJobsResponse
  [InferenceRecommendationsJob]
listInferenceRecommendationsJobsResponse_inferenceRecommendationsJobs
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListInferenceRecommendationsJobs
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListInferenceRecommendationsJobs (Maybe Text)
listInferenceRecommendationsJobs_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListInferenceRecommendationsJobs
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListInferenceRecommendationsJobsResponse (Maybe Text)
listInferenceRecommendationsJobsResponse_nextToken
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

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

instance
  Prelude.Hashable
    ListInferenceRecommendationsJobs
  where
  hashWithSalt :: Int -> ListInferenceRecommendationsJobs -> Int
hashWithSalt
    Int
_salt
    ListInferenceRecommendationsJobs' {Maybe Natural
Maybe Text
Maybe POSIX
Maybe ListInferenceRecommendationsJobsSortBy
Maybe RecommendationJobStatus
Maybe SortOrder
statusEquals :: Maybe RecommendationJobStatus
sortOrder :: Maybe SortOrder
sortBy :: Maybe ListInferenceRecommendationsJobsSortBy
nextToken :: Maybe Text
nameContains :: Maybe Text
maxResults :: Maybe Natural
lastModifiedTimeBefore :: Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
creationTimeBefore :: Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:statusEquals:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe RecommendationJobStatus
$sel:sortOrder:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe SortOrder
$sel:sortBy:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs
-> Maybe ListInferenceRecommendationsJobsSortBy
$sel:nextToken:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe Text
$sel:nameContains:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe Text
$sel:maxResults:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe Natural
$sel:lastModifiedTimeBefore:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
$sel:lastModifiedTimeAfter:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
$sel:creationTimeBefore:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
$sel:creationTimeAfter:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationTimeAfter
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationTimeBefore
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastModifiedTimeAfter
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastModifiedTimeBefore
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nameContains
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ListInferenceRecommendationsJobsSortBy
sortBy
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SortOrder
sortOrder
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe RecommendationJobStatus
statusEquals

instance
  Prelude.NFData
    ListInferenceRecommendationsJobs
  where
  rnf :: ListInferenceRecommendationsJobs -> ()
rnf ListInferenceRecommendationsJobs' {Maybe Natural
Maybe Text
Maybe POSIX
Maybe ListInferenceRecommendationsJobsSortBy
Maybe RecommendationJobStatus
Maybe SortOrder
statusEquals :: Maybe RecommendationJobStatus
sortOrder :: Maybe SortOrder
sortBy :: Maybe ListInferenceRecommendationsJobsSortBy
nextToken :: Maybe Text
nameContains :: Maybe Text
maxResults :: Maybe Natural
lastModifiedTimeBefore :: Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
creationTimeBefore :: Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:statusEquals:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe RecommendationJobStatus
$sel:sortOrder:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe SortOrder
$sel:sortBy:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs
-> Maybe ListInferenceRecommendationsJobsSortBy
$sel:nextToken:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe Text
$sel:nameContains:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe Text
$sel:maxResults:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe Natural
$sel:lastModifiedTimeBefore:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
$sel:lastModifiedTimeAfter:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
$sel:creationTimeBefore:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
$sel:creationTimeAfter:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationTimeAfter
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationTimeBefore
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModifiedTimeAfter
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModifiedTimeBefore
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nameContains
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ListInferenceRecommendationsJobsSortBy
sortBy
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SortOrder
sortOrder
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe RecommendationJobStatus
statusEquals

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

instance Data.ToJSON ListInferenceRecommendationsJobs where
  toJSON :: ListInferenceRecommendationsJobs -> Value
toJSON ListInferenceRecommendationsJobs' {Maybe Natural
Maybe Text
Maybe POSIX
Maybe ListInferenceRecommendationsJobsSortBy
Maybe RecommendationJobStatus
Maybe SortOrder
statusEquals :: Maybe RecommendationJobStatus
sortOrder :: Maybe SortOrder
sortBy :: Maybe ListInferenceRecommendationsJobsSortBy
nextToken :: Maybe Text
nameContains :: Maybe Text
maxResults :: Maybe Natural
lastModifiedTimeBefore :: Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
creationTimeBefore :: Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:statusEquals:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe RecommendationJobStatus
$sel:sortOrder:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe SortOrder
$sel:sortBy:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs
-> Maybe ListInferenceRecommendationsJobsSortBy
$sel:nextToken:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe Text
$sel:nameContains:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe Text
$sel:maxResults:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe Natural
$sel:lastModifiedTimeBefore:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
$sel:lastModifiedTimeAfter:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
$sel:creationTimeBefore:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
$sel:creationTimeAfter:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"CreationTimeAfter" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
creationTimeAfter,
            (Key
"CreationTimeBefore" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
creationTimeBefore,
            (Key
"LastModifiedTimeAfter" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
lastModifiedTimeAfter,
            (Key
"LastModifiedTimeBefore" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
lastModifiedTimeBefore,
            (Key
"MaxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
            (Key
"NameContains" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nameContains,
            (Key
"NextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
            (Key
"SortBy" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ListInferenceRecommendationsJobsSortBy
sortBy,
            (Key
"SortOrder" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SortOrder
sortOrder,
            (Key
"StatusEquals" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RecommendationJobStatus
statusEquals
          ]
      )

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

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

-- | /See:/ 'newListInferenceRecommendationsJobsResponse' smart constructor.
data ListInferenceRecommendationsJobsResponse = ListInferenceRecommendationsJobsResponse'
  { -- | A token for getting the next set of recommendations, if there are any.
    ListInferenceRecommendationsJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListInferenceRecommendationsJobsResponse -> Int
httpStatus :: Prelude.Int,
    -- | The recommendations created from the Amazon SageMaker Inference
    -- Recommender job.
    ListInferenceRecommendationsJobsResponse
-> [InferenceRecommendationsJob]
inferenceRecommendationsJobs :: [InferenceRecommendationsJob]
  }
  deriving (ListInferenceRecommendationsJobsResponse
-> ListInferenceRecommendationsJobsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListInferenceRecommendationsJobsResponse
-> ListInferenceRecommendationsJobsResponse -> Bool
$c/= :: ListInferenceRecommendationsJobsResponse
-> ListInferenceRecommendationsJobsResponse -> Bool
== :: ListInferenceRecommendationsJobsResponse
-> ListInferenceRecommendationsJobsResponse -> Bool
$c== :: ListInferenceRecommendationsJobsResponse
-> ListInferenceRecommendationsJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListInferenceRecommendationsJobsResponse]
ReadPrec ListInferenceRecommendationsJobsResponse
Int -> ReadS ListInferenceRecommendationsJobsResponse
ReadS [ListInferenceRecommendationsJobsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListInferenceRecommendationsJobsResponse]
$creadListPrec :: ReadPrec [ListInferenceRecommendationsJobsResponse]
readPrec :: ReadPrec ListInferenceRecommendationsJobsResponse
$creadPrec :: ReadPrec ListInferenceRecommendationsJobsResponse
readList :: ReadS [ListInferenceRecommendationsJobsResponse]
$creadList :: ReadS [ListInferenceRecommendationsJobsResponse]
readsPrec :: Int -> ReadS ListInferenceRecommendationsJobsResponse
$creadsPrec :: Int -> ReadS ListInferenceRecommendationsJobsResponse
Prelude.Read, Int -> ListInferenceRecommendationsJobsResponse -> ShowS
[ListInferenceRecommendationsJobsResponse] -> ShowS
ListInferenceRecommendationsJobsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListInferenceRecommendationsJobsResponse] -> ShowS
$cshowList :: [ListInferenceRecommendationsJobsResponse] -> ShowS
show :: ListInferenceRecommendationsJobsResponse -> String
$cshow :: ListInferenceRecommendationsJobsResponse -> String
showsPrec :: Int -> ListInferenceRecommendationsJobsResponse -> ShowS
$cshowsPrec :: Int -> ListInferenceRecommendationsJobsResponse -> ShowS
Prelude.Show, forall x.
Rep ListInferenceRecommendationsJobsResponse x
-> ListInferenceRecommendationsJobsResponse
forall x.
ListInferenceRecommendationsJobsResponse
-> Rep ListInferenceRecommendationsJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListInferenceRecommendationsJobsResponse x
-> ListInferenceRecommendationsJobsResponse
$cfrom :: forall x.
ListInferenceRecommendationsJobsResponse
-> Rep ListInferenceRecommendationsJobsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListInferenceRecommendationsJobsResponse' 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', 'listInferenceRecommendationsJobsResponse_nextToken' - A token for getting the next set of recommendations, if there are any.
--
-- 'httpStatus', 'listInferenceRecommendationsJobsResponse_httpStatus' - The response's http status code.
--
-- 'inferenceRecommendationsJobs', 'listInferenceRecommendationsJobsResponse_inferenceRecommendationsJobs' - The recommendations created from the Amazon SageMaker Inference
-- Recommender job.
newListInferenceRecommendationsJobsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListInferenceRecommendationsJobsResponse
newListInferenceRecommendationsJobsResponse :: Int -> ListInferenceRecommendationsJobsResponse
newListInferenceRecommendationsJobsResponse
  Int
pHttpStatus_ =
    ListInferenceRecommendationsJobsResponse'
      { $sel:nextToken:ListInferenceRecommendationsJobsResponse' :: Maybe Text
nextToken =
          forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:ListInferenceRecommendationsJobsResponse' :: Int
httpStatus = Int
pHttpStatus_,
        $sel:inferenceRecommendationsJobs:ListInferenceRecommendationsJobsResponse' :: [InferenceRecommendationsJob]
inferenceRecommendationsJobs =
          forall a. Monoid a => a
Prelude.mempty
      }

-- | A token for getting the next set of recommendations, if there are any.
listInferenceRecommendationsJobsResponse_nextToken :: Lens.Lens' ListInferenceRecommendationsJobsResponse (Prelude.Maybe Prelude.Text)
listInferenceRecommendationsJobsResponse_nextToken :: Lens' ListInferenceRecommendationsJobsResponse (Maybe Text)
listInferenceRecommendationsJobsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListInferenceRecommendationsJobsResponse' :: ListInferenceRecommendationsJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListInferenceRecommendationsJobsResponse
s@ListInferenceRecommendationsJobsResponse' {} Maybe Text
a -> ListInferenceRecommendationsJobsResponse
s {$sel:nextToken:ListInferenceRecommendationsJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListInferenceRecommendationsJobsResponse)

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

-- | The recommendations created from the Amazon SageMaker Inference
-- Recommender job.
listInferenceRecommendationsJobsResponse_inferenceRecommendationsJobs :: Lens.Lens' ListInferenceRecommendationsJobsResponse [InferenceRecommendationsJob]
listInferenceRecommendationsJobsResponse_inferenceRecommendationsJobs :: Lens'
  ListInferenceRecommendationsJobsResponse
  [InferenceRecommendationsJob]
listInferenceRecommendationsJobsResponse_inferenceRecommendationsJobs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobsResponse' {[InferenceRecommendationsJob]
inferenceRecommendationsJobs :: [InferenceRecommendationsJob]
$sel:inferenceRecommendationsJobs:ListInferenceRecommendationsJobsResponse' :: ListInferenceRecommendationsJobsResponse
-> [InferenceRecommendationsJob]
inferenceRecommendationsJobs} -> [InferenceRecommendationsJob]
inferenceRecommendationsJobs) (\s :: ListInferenceRecommendationsJobsResponse
s@ListInferenceRecommendationsJobsResponse' {} [InferenceRecommendationsJob]
a -> ListInferenceRecommendationsJobsResponse
s {$sel:inferenceRecommendationsJobs:ListInferenceRecommendationsJobsResponse' :: [InferenceRecommendationsJob]
inferenceRecommendationsJobs = [InferenceRecommendationsJob]
a} :: ListInferenceRecommendationsJobsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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