{-# 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.ListModelQualityJobDefinitions
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Gets a list of model quality monitoring job definitions in your account.
--
-- This operation returns paginated results.
module Amazonka.SageMaker.ListModelQualityJobDefinitions
  ( -- * Creating a Request
    ListModelQualityJobDefinitions (..),
    newListModelQualityJobDefinitions,

    -- * Request Lenses
    listModelQualityJobDefinitions_nameContains,
    listModelQualityJobDefinitions_endpointName,
    listModelQualityJobDefinitions_creationTimeAfter,
    listModelQualityJobDefinitions_nextToken,
    listModelQualityJobDefinitions_sortOrder,
    listModelQualityJobDefinitions_creationTimeBefore,
    listModelQualityJobDefinitions_maxResults,
    listModelQualityJobDefinitions_sortBy,

    -- * Destructuring the Response
    ListModelQualityJobDefinitionsResponse (..),
    newListModelQualityJobDefinitionsResponse,

    -- * Response Lenses
    listModelQualityJobDefinitionsResponse_nextToken,
    listModelQualityJobDefinitionsResponse_httpStatus,
    listModelQualityJobDefinitionsResponse_jobDefinitionSummaries,
  )
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:/ 'newListModelQualityJobDefinitions' smart constructor.
data ListModelQualityJobDefinitions = ListModelQualityJobDefinitions'
  { -- | A string in the transform job name. This filter returns only model
    -- quality monitoring job definitions whose name contains the specified
    -- string.
    ListModelQualityJobDefinitions -> Maybe Text
nameContains :: Prelude.Maybe Prelude.Text,
    -- | A filter that returns only model quality monitoring job definitions that
    -- are associated with the specified endpoint.
    ListModelQualityJobDefinitions -> Maybe Text
endpointName :: Prelude.Maybe Prelude.Text,
    -- | A filter that returns only model quality monitoring job definitions
    -- created after the specified time.
    ListModelQualityJobDefinitions -> Maybe POSIX
creationTimeAfter :: Prelude.Maybe Core.POSIX,
    -- | If the result of the previous @ListModelQualityJobDefinitions@ request
    -- was truncated, the response includes a @NextToken@. To retrieve the next
    -- set of model quality monitoring job definitions, use the token in the
    -- next request.
    ListModelQualityJobDefinitions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The sort order for results. The default is @Descending@.
    ListModelQualityJobDefinitions -> Maybe SortOrder
sortOrder :: Prelude.Maybe SortOrder,
    -- | A filter that returns only model quality monitoring job definitions
    -- created before the specified time.
    ListModelQualityJobDefinitions -> Maybe POSIX
creationTimeBefore :: Prelude.Maybe Core.POSIX,
    -- | The maximum number of results to return in a call to
    -- @ListModelQualityJobDefinitions@.
    ListModelQualityJobDefinitions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The field to sort results by. The default is @CreationTime@.
    ListModelQualityJobDefinitions
-> Maybe MonitoringJobDefinitionSortKey
sortBy :: Prelude.Maybe MonitoringJobDefinitionSortKey
  }
  deriving (ListModelQualityJobDefinitions
-> ListModelQualityJobDefinitions -> Bool
(ListModelQualityJobDefinitions
 -> ListModelQualityJobDefinitions -> Bool)
-> (ListModelQualityJobDefinitions
    -> ListModelQualityJobDefinitions -> Bool)
-> Eq ListModelQualityJobDefinitions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListModelQualityJobDefinitions
-> ListModelQualityJobDefinitions -> Bool
$c/= :: ListModelQualityJobDefinitions
-> ListModelQualityJobDefinitions -> Bool
== :: ListModelQualityJobDefinitions
-> ListModelQualityJobDefinitions -> Bool
$c== :: ListModelQualityJobDefinitions
-> ListModelQualityJobDefinitions -> Bool
Prelude.Eq, ReadPrec [ListModelQualityJobDefinitions]
ReadPrec ListModelQualityJobDefinitions
Int -> ReadS ListModelQualityJobDefinitions
ReadS [ListModelQualityJobDefinitions]
(Int -> ReadS ListModelQualityJobDefinitions)
-> ReadS [ListModelQualityJobDefinitions]
-> ReadPrec ListModelQualityJobDefinitions
-> ReadPrec [ListModelQualityJobDefinitions]
-> Read ListModelQualityJobDefinitions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListModelQualityJobDefinitions]
$creadListPrec :: ReadPrec [ListModelQualityJobDefinitions]
readPrec :: ReadPrec ListModelQualityJobDefinitions
$creadPrec :: ReadPrec ListModelQualityJobDefinitions
readList :: ReadS [ListModelQualityJobDefinitions]
$creadList :: ReadS [ListModelQualityJobDefinitions]
readsPrec :: Int -> ReadS ListModelQualityJobDefinitions
$creadsPrec :: Int -> ReadS ListModelQualityJobDefinitions
Prelude.Read, Int -> ListModelQualityJobDefinitions -> ShowS
[ListModelQualityJobDefinitions] -> ShowS
ListModelQualityJobDefinitions -> String
(Int -> ListModelQualityJobDefinitions -> ShowS)
-> (ListModelQualityJobDefinitions -> String)
-> ([ListModelQualityJobDefinitions] -> ShowS)
-> Show ListModelQualityJobDefinitions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListModelQualityJobDefinitions] -> ShowS
$cshowList :: [ListModelQualityJobDefinitions] -> ShowS
show :: ListModelQualityJobDefinitions -> String
$cshow :: ListModelQualityJobDefinitions -> String
showsPrec :: Int -> ListModelQualityJobDefinitions -> ShowS
$cshowsPrec :: Int -> ListModelQualityJobDefinitions -> ShowS
Prelude.Show, (forall x.
 ListModelQualityJobDefinitions
 -> Rep ListModelQualityJobDefinitions x)
-> (forall x.
    Rep ListModelQualityJobDefinitions x
    -> ListModelQualityJobDefinitions)
-> Generic ListModelQualityJobDefinitions
forall x.
Rep ListModelQualityJobDefinitions x
-> ListModelQualityJobDefinitions
forall x.
ListModelQualityJobDefinitions
-> Rep ListModelQualityJobDefinitions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListModelQualityJobDefinitions x
-> ListModelQualityJobDefinitions
$cfrom :: forall x.
ListModelQualityJobDefinitions
-> Rep ListModelQualityJobDefinitions x
Prelude.Generic)

-- |
-- Create a value of 'ListModelQualityJobDefinitions' 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', 'listModelQualityJobDefinitions_nameContains' - A string in the transform job name. This filter returns only model
-- quality monitoring job definitions whose name contains the specified
-- string.
--
-- 'endpointName', 'listModelQualityJobDefinitions_endpointName' - A filter that returns only model quality monitoring job definitions that
-- are associated with the specified endpoint.
--
-- 'creationTimeAfter', 'listModelQualityJobDefinitions_creationTimeAfter' - A filter that returns only model quality monitoring job definitions
-- created after the specified time.
--
-- 'nextToken', 'listModelQualityJobDefinitions_nextToken' - If the result of the previous @ListModelQualityJobDefinitions@ request
-- was truncated, the response includes a @NextToken@. To retrieve the next
-- set of model quality monitoring job definitions, use the token in the
-- next request.
--
-- 'sortOrder', 'listModelQualityJobDefinitions_sortOrder' - The sort order for results. The default is @Descending@.
--
-- 'creationTimeBefore', 'listModelQualityJobDefinitions_creationTimeBefore' - A filter that returns only model quality monitoring job definitions
-- created before the specified time.
--
-- 'maxResults', 'listModelQualityJobDefinitions_maxResults' - The maximum number of results to return in a call to
-- @ListModelQualityJobDefinitions@.
--
-- 'sortBy', 'listModelQualityJobDefinitions_sortBy' - The field to sort results by. The default is @CreationTime@.
newListModelQualityJobDefinitions ::
  ListModelQualityJobDefinitions
newListModelQualityJobDefinitions :: ListModelQualityJobDefinitions
newListModelQualityJobDefinitions =
  ListModelQualityJobDefinitions' :: Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe SortOrder
-> Maybe POSIX
-> Maybe Natural
-> Maybe MonitoringJobDefinitionSortKey
-> ListModelQualityJobDefinitions
ListModelQualityJobDefinitions'
    { $sel:nameContains:ListModelQualityJobDefinitions' :: Maybe Text
nameContains =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:endpointName:ListModelQualityJobDefinitions' :: Maybe Text
endpointName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:creationTimeAfter:ListModelQualityJobDefinitions' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListModelQualityJobDefinitions' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:sortOrder:ListModelQualityJobDefinitions' :: Maybe SortOrder
sortOrder = Maybe SortOrder
forall a. Maybe a
Prelude.Nothing,
      $sel:creationTimeBefore:ListModelQualityJobDefinitions' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListModelQualityJobDefinitions' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:sortBy:ListModelQualityJobDefinitions' :: Maybe MonitoringJobDefinitionSortKey
sortBy = Maybe MonitoringJobDefinitionSortKey
forall a. Maybe a
Prelude.Nothing
    }

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

-- | A filter that returns only model quality monitoring job definitions that
-- are associated with the specified endpoint.
listModelQualityJobDefinitions_endpointName :: Lens.Lens' ListModelQualityJobDefinitions (Prelude.Maybe Prelude.Text)
listModelQualityJobDefinitions_endpointName :: (Maybe Text -> f (Maybe Text))
-> ListModelQualityJobDefinitions
-> f ListModelQualityJobDefinitions
listModelQualityJobDefinitions_endpointName = (ListModelQualityJobDefinitions -> Maybe Text)
-> (ListModelQualityJobDefinitions
    -> Maybe Text -> ListModelQualityJobDefinitions)
-> Lens
     ListModelQualityJobDefinitions
     ListModelQualityJobDefinitions
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelQualityJobDefinitions' {Maybe Text
endpointName :: Maybe Text
$sel:endpointName:ListModelQualityJobDefinitions' :: ListModelQualityJobDefinitions -> Maybe Text
endpointName} -> Maybe Text
endpointName) (\s :: ListModelQualityJobDefinitions
s@ListModelQualityJobDefinitions' {} Maybe Text
a -> ListModelQualityJobDefinitions
s {$sel:endpointName:ListModelQualityJobDefinitions' :: Maybe Text
endpointName = Maybe Text
a} :: ListModelQualityJobDefinitions)

-- | A filter that returns only model quality monitoring job definitions
-- created after the specified time.
listModelQualityJobDefinitions_creationTimeAfter :: Lens.Lens' ListModelQualityJobDefinitions (Prelude.Maybe Prelude.UTCTime)
listModelQualityJobDefinitions_creationTimeAfter :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListModelQualityJobDefinitions
-> f ListModelQualityJobDefinitions
listModelQualityJobDefinitions_creationTimeAfter = (ListModelQualityJobDefinitions -> Maybe POSIX)
-> (ListModelQualityJobDefinitions
    -> Maybe POSIX -> ListModelQualityJobDefinitions)
-> Lens
     ListModelQualityJobDefinitions
     ListModelQualityJobDefinitions
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelQualityJobDefinitions' {Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:creationTimeAfter:ListModelQualityJobDefinitions' :: ListModelQualityJobDefinitions -> Maybe POSIX
creationTimeAfter} -> Maybe POSIX
creationTimeAfter) (\s :: ListModelQualityJobDefinitions
s@ListModelQualityJobDefinitions' {} Maybe POSIX
a -> ListModelQualityJobDefinitions
s {$sel:creationTimeAfter:ListModelQualityJobDefinitions' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
a} :: ListModelQualityJobDefinitions) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListModelQualityJobDefinitions
 -> f ListModelQualityJobDefinitions)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListModelQualityJobDefinitions
-> f ListModelQualityJobDefinitions
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 @ListModelQualityJobDefinitions@ request
-- was truncated, the response includes a @NextToken@. To retrieve the next
-- set of model quality monitoring job definitions, use the token in the
-- next request.
listModelQualityJobDefinitions_nextToken :: Lens.Lens' ListModelQualityJobDefinitions (Prelude.Maybe Prelude.Text)
listModelQualityJobDefinitions_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListModelQualityJobDefinitions
-> f ListModelQualityJobDefinitions
listModelQualityJobDefinitions_nextToken = (ListModelQualityJobDefinitions -> Maybe Text)
-> (ListModelQualityJobDefinitions
    -> Maybe Text -> ListModelQualityJobDefinitions)
-> Lens
     ListModelQualityJobDefinitions
     ListModelQualityJobDefinitions
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelQualityJobDefinitions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListModelQualityJobDefinitions' :: ListModelQualityJobDefinitions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListModelQualityJobDefinitions
s@ListModelQualityJobDefinitions' {} Maybe Text
a -> ListModelQualityJobDefinitions
s {$sel:nextToken:ListModelQualityJobDefinitions' :: Maybe Text
nextToken = Maybe Text
a} :: ListModelQualityJobDefinitions)

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

-- | A filter that returns only model quality monitoring job definitions
-- created before the specified time.
listModelQualityJobDefinitions_creationTimeBefore :: Lens.Lens' ListModelQualityJobDefinitions (Prelude.Maybe Prelude.UTCTime)
listModelQualityJobDefinitions_creationTimeBefore :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListModelQualityJobDefinitions
-> f ListModelQualityJobDefinitions
listModelQualityJobDefinitions_creationTimeBefore = (ListModelQualityJobDefinitions -> Maybe POSIX)
-> (ListModelQualityJobDefinitions
    -> Maybe POSIX -> ListModelQualityJobDefinitions)
-> Lens
     ListModelQualityJobDefinitions
     ListModelQualityJobDefinitions
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelQualityJobDefinitions' {Maybe POSIX
creationTimeBefore :: Maybe POSIX
$sel:creationTimeBefore:ListModelQualityJobDefinitions' :: ListModelQualityJobDefinitions -> Maybe POSIX
creationTimeBefore} -> Maybe POSIX
creationTimeBefore) (\s :: ListModelQualityJobDefinitions
s@ListModelQualityJobDefinitions' {} Maybe POSIX
a -> ListModelQualityJobDefinitions
s {$sel:creationTimeBefore:ListModelQualityJobDefinitions' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
a} :: ListModelQualityJobDefinitions) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListModelQualityJobDefinitions
 -> f ListModelQualityJobDefinitions)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListModelQualityJobDefinitions
-> f ListModelQualityJobDefinitions
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

-- | The maximum number of results to return in a call to
-- @ListModelQualityJobDefinitions@.
listModelQualityJobDefinitions_maxResults :: Lens.Lens' ListModelQualityJobDefinitions (Prelude.Maybe Prelude.Natural)
listModelQualityJobDefinitions_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListModelQualityJobDefinitions
-> f ListModelQualityJobDefinitions
listModelQualityJobDefinitions_maxResults = (ListModelQualityJobDefinitions -> Maybe Natural)
-> (ListModelQualityJobDefinitions
    -> Maybe Natural -> ListModelQualityJobDefinitions)
-> Lens
     ListModelQualityJobDefinitions
     ListModelQualityJobDefinitions
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelQualityJobDefinitions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListModelQualityJobDefinitions' :: ListModelQualityJobDefinitions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListModelQualityJobDefinitions
s@ListModelQualityJobDefinitions' {} Maybe Natural
a -> ListModelQualityJobDefinitions
s {$sel:maxResults:ListModelQualityJobDefinitions' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListModelQualityJobDefinitions)

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

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

instance
  Prelude.Hashable
    ListModelQualityJobDefinitions

instance
  Prelude.NFData
    ListModelQualityJobDefinitions

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

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

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

-- | /See:/ 'newListModelQualityJobDefinitionsResponse' smart constructor.
data ListModelQualityJobDefinitionsResponse = ListModelQualityJobDefinitionsResponse'
  { -- | If the response is truncated, Amazon SageMaker returns this token. To
    -- retrieve the next set of model quality monitoring job definitions, use
    -- it in the next request.
    ListModelQualityJobDefinitionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListModelQualityJobDefinitionsResponse -> Int
httpStatus :: Prelude.Int,
    -- | A list of summaries of model quality monitoring job definitions.
    ListModelQualityJobDefinitionsResponse
-> [MonitoringJobDefinitionSummary]
jobDefinitionSummaries :: [MonitoringJobDefinitionSummary]
  }
  deriving (ListModelQualityJobDefinitionsResponse
-> ListModelQualityJobDefinitionsResponse -> Bool
(ListModelQualityJobDefinitionsResponse
 -> ListModelQualityJobDefinitionsResponse -> Bool)
-> (ListModelQualityJobDefinitionsResponse
    -> ListModelQualityJobDefinitionsResponse -> Bool)
-> Eq ListModelQualityJobDefinitionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListModelQualityJobDefinitionsResponse
-> ListModelQualityJobDefinitionsResponse -> Bool
$c/= :: ListModelQualityJobDefinitionsResponse
-> ListModelQualityJobDefinitionsResponse -> Bool
== :: ListModelQualityJobDefinitionsResponse
-> ListModelQualityJobDefinitionsResponse -> Bool
$c== :: ListModelQualityJobDefinitionsResponse
-> ListModelQualityJobDefinitionsResponse -> Bool
Prelude.Eq, ReadPrec [ListModelQualityJobDefinitionsResponse]
ReadPrec ListModelQualityJobDefinitionsResponse
Int -> ReadS ListModelQualityJobDefinitionsResponse
ReadS [ListModelQualityJobDefinitionsResponse]
(Int -> ReadS ListModelQualityJobDefinitionsResponse)
-> ReadS [ListModelQualityJobDefinitionsResponse]
-> ReadPrec ListModelQualityJobDefinitionsResponse
-> ReadPrec [ListModelQualityJobDefinitionsResponse]
-> Read ListModelQualityJobDefinitionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListModelQualityJobDefinitionsResponse]
$creadListPrec :: ReadPrec [ListModelQualityJobDefinitionsResponse]
readPrec :: ReadPrec ListModelQualityJobDefinitionsResponse
$creadPrec :: ReadPrec ListModelQualityJobDefinitionsResponse
readList :: ReadS [ListModelQualityJobDefinitionsResponse]
$creadList :: ReadS [ListModelQualityJobDefinitionsResponse]
readsPrec :: Int -> ReadS ListModelQualityJobDefinitionsResponse
$creadsPrec :: Int -> ReadS ListModelQualityJobDefinitionsResponse
Prelude.Read, Int -> ListModelQualityJobDefinitionsResponse -> ShowS
[ListModelQualityJobDefinitionsResponse] -> ShowS
ListModelQualityJobDefinitionsResponse -> String
(Int -> ListModelQualityJobDefinitionsResponse -> ShowS)
-> (ListModelQualityJobDefinitionsResponse -> String)
-> ([ListModelQualityJobDefinitionsResponse] -> ShowS)
-> Show ListModelQualityJobDefinitionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListModelQualityJobDefinitionsResponse] -> ShowS
$cshowList :: [ListModelQualityJobDefinitionsResponse] -> ShowS
show :: ListModelQualityJobDefinitionsResponse -> String
$cshow :: ListModelQualityJobDefinitionsResponse -> String
showsPrec :: Int -> ListModelQualityJobDefinitionsResponse -> ShowS
$cshowsPrec :: Int -> ListModelQualityJobDefinitionsResponse -> ShowS
Prelude.Show, (forall x.
 ListModelQualityJobDefinitionsResponse
 -> Rep ListModelQualityJobDefinitionsResponse x)
-> (forall x.
    Rep ListModelQualityJobDefinitionsResponse x
    -> ListModelQualityJobDefinitionsResponse)
-> Generic ListModelQualityJobDefinitionsResponse
forall x.
Rep ListModelQualityJobDefinitionsResponse x
-> ListModelQualityJobDefinitionsResponse
forall x.
ListModelQualityJobDefinitionsResponse
-> Rep ListModelQualityJobDefinitionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListModelQualityJobDefinitionsResponse x
-> ListModelQualityJobDefinitionsResponse
$cfrom :: forall x.
ListModelQualityJobDefinitionsResponse
-> Rep ListModelQualityJobDefinitionsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListModelQualityJobDefinitionsResponse' 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', 'listModelQualityJobDefinitionsResponse_nextToken' - If the response is truncated, Amazon SageMaker returns this token. To
-- retrieve the next set of model quality monitoring job definitions, use
-- it in the next request.
--
-- 'httpStatus', 'listModelQualityJobDefinitionsResponse_httpStatus' - The response's http status code.
--
-- 'jobDefinitionSummaries', 'listModelQualityJobDefinitionsResponse_jobDefinitionSummaries' - A list of summaries of model quality monitoring job definitions.
newListModelQualityJobDefinitionsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListModelQualityJobDefinitionsResponse
newListModelQualityJobDefinitionsResponse :: Int -> ListModelQualityJobDefinitionsResponse
newListModelQualityJobDefinitionsResponse
  Int
pHttpStatus_ =
    ListModelQualityJobDefinitionsResponse' :: Maybe Text
-> Int
-> [MonitoringJobDefinitionSummary]
-> ListModelQualityJobDefinitionsResponse
ListModelQualityJobDefinitionsResponse'
      { $sel:nextToken:ListModelQualityJobDefinitionsResponse' :: Maybe Text
nextToken =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:ListModelQualityJobDefinitionsResponse' :: Int
httpStatus = Int
pHttpStatus_,
        $sel:jobDefinitionSummaries:ListModelQualityJobDefinitionsResponse' :: [MonitoringJobDefinitionSummary]
jobDefinitionSummaries =
          [MonitoringJobDefinitionSummary]
forall a. Monoid a => a
Prelude.mempty
      }

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

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

-- | A list of summaries of model quality monitoring job definitions.
listModelQualityJobDefinitionsResponse_jobDefinitionSummaries :: Lens.Lens' ListModelQualityJobDefinitionsResponse [MonitoringJobDefinitionSummary]
listModelQualityJobDefinitionsResponse_jobDefinitionSummaries :: ([MonitoringJobDefinitionSummary]
 -> f [MonitoringJobDefinitionSummary])
-> ListModelQualityJobDefinitionsResponse
-> f ListModelQualityJobDefinitionsResponse
listModelQualityJobDefinitionsResponse_jobDefinitionSummaries = (ListModelQualityJobDefinitionsResponse
 -> [MonitoringJobDefinitionSummary])
-> (ListModelQualityJobDefinitionsResponse
    -> [MonitoringJobDefinitionSummary]
    -> ListModelQualityJobDefinitionsResponse)
-> Lens'
     ListModelQualityJobDefinitionsResponse
     [MonitoringJobDefinitionSummary]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelQualityJobDefinitionsResponse' {[MonitoringJobDefinitionSummary]
jobDefinitionSummaries :: [MonitoringJobDefinitionSummary]
$sel:jobDefinitionSummaries:ListModelQualityJobDefinitionsResponse' :: ListModelQualityJobDefinitionsResponse
-> [MonitoringJobDefinitionSummary]
jobDefinitionSummaries} -> [MonitoringJobDefinitionSummary]
jobDefinitionSummaries) (\s :: ListModelQualityJobDefinitionsResponse
s@ListModelQualityJobDefinitionsResponse' {} [MonitoringJobDefinitionSummary]
a -> ListModelQualityJobDefinitionsResponse
s {$sel:jobDefinitionSummaries:ListModelQualityJobDefinitionsResponse' :: [MonitoringJobDefinitionSummary]
jobDefinitionSummaries = [MonitoringJobDefinitionSummary]
a} :: ListModelQualityJobDefinitionsResponse) (([MonitoringJobDefinitionSummary]
  -> f [MonitoringJobDefinitionSummary])
 -> ListModelQualityJobDefinitionsResponse
 -> f ListModelQualityJobDefinitionsResponse)
-> (([MonitoringJobDefinitionSummary]
     -> f [MonitoringJobDefinitionSummary])
    -> [MonitoringJobDefinitionSummary]
    -> f [MonitoringJobDefinitionSummary])
-> ([MonitoringJobDefinitionSummary]
    -> f [MonitoringJobDefinitionSummary])
-> ListModelQualityJobDefinitionsResponse
-> f ListModelQualityJobDefinitionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([MonitoringJobDefinitionSummary]
 -> f [MonitoringJobDefinitionSummary])
-> [MonitoringJobDefinitionSummary]
-> f [MonitoringJobDefinitionSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Prelude.NFData
    ListModelQualityJobDefinitionsResponse