{-# 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.ListModelBiasJobDefinitions
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists model bias jobs definitions that satisfy various filters.
--
-- This operation returns paginated results.
module Amazonka.SageMaker.ListModelBiasJobDefinitions
  ( -- * Creating a Request
    ListModelBiasJobDefinitions (..),
    newListModelBiasJobDefinitions,

    -- * Request Lenses
    listModelBiasJobDefinitions_nameContains,
    listModelBiasJobDefinitions_endpointName,
    listModelBiasJobDefinitions_creationTimeAfter,
    listModelBiasJobDefinitions_nextToken,
    listModelBiasJobDefinitions_sortOrder,
    listModelBiasJobDefinitions_creationTimeBefore,
    listModelBiasJobDefinitions_maxResults,
    listModelBiasJobDefinitions_sortBy,

    -- * Destructuring the Response
    ListModelBiasJobDefinitionsResponse (..),
    newListModelBiasJobDefinitionsResponse,

    -- * Response Lenses
    listModelBiasJobDefinitionsResponse_nextToken,
    listModelBiasJobDefinitionsResponse_httpStatus,
    listModelBiasJobDefinitionsResponse_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:/ 'newListModelBiasJobDefinitions' smart constructor.
data ListModelBiasJobDefinitions = ListModelBiasJobDefinitions'
  { -- | Filter for model bias jobs whose name contains a specified string.
    ListModelBiasJobDefinitions -> Maybe Text
nameContains :: Prelude.Maybe Prelude.Text,
    -- | Name of the endpoint to monitor for model bias.
    ListModelBiasJobDefinitions -> Maybe Text
endpointName :: Prelude.Maybe Prelude.Text,
    -- | A filter that returns only model bias jobs created after a specified
    -- time.
    ListModelBiasJobDefinitions -> Maybe POSIX
creationTimeAfter :: Prelude.Maybe Core.POSIX,
    -- | The token returned if the response is truncated. To retrieve the next
    -- set of job executions, use it in the next request.
    ListModelBiasJobDefinitions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Whether to sort the results in @Ascending@ or @Descending@ order. The
    -- default is @Descending@.
    ListModelBiasJobDefinitions -> Maybe SortOrder
sortOrder :: Prelude.Maybe SortOrder,
    -- | A filter that returns only model bias jobs created before a specified
    -- time.
    ListModelBiasJobDefinitions -> Maybe POSIX
creationTimeBefore :: Prelude.Maybe Core.POSIX,
    -- | The maximum number of model bias jobs to return in the response. The
    -- default value is 10.
    ListModelBiasJobDefinitions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | Whether to sort results by the @Name@ or @CreationTime@ field. The
    -- default is @CreationTime@.
    ListModelBiasJobDefinitions -> Maybe MonitoringJobDefinitionSortKey
sortBy :: Prelude.Maybe MonitoringJobDefinitionSortKey
  }
  deriving (ListModelBiasJobDefinitions -> ListModelBiasJobDefinitions -> Bool
(ListModelBiasJobDefinitions
 -> ListModelBiasJobDefinitions -> Bool)
-> (ListModelBiasJobDefinitions
    -> ListModelBiasJobDefinitions -> Bool)
-> Eq ListModelBiasJobDefinitions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListModelBiasJobDefinitions -> ListModelBiasJobDefinitions -> Bool
$c/= :: ListModelBiasJobDefinitions -> ListModelBiasJobDefinitions -> Bool
== :: ListModelBiasJobDefinitions -> ListModelBiasJobDefinitions -> Bool
$c== :: ListModelBiasJobDefinitions -> ListModelBiasJobDefinitions -> Bool
Prelude.Eq, ReadPrec [ListModelBiasJobDefinitions]
ReadPrec ListModelBiasJobDefinitions
Int -> ReadS ListModelBiasJobDefinitions
ReadS [ListModelBiasJobDefinitions]
(Int -> ReadS ListModelBiasJobDefinitions)
-> ReadS [ListModelBiasJobDefinitions]
-> ReadPrec ListModelBiasJobDefinitions
-> ReadPrec [ListModelBiasJobDefinitions]
-> Read ListModelBiasJobDefinitions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListModelBiasJobDefinitions]
$creadListPrec :: ReadPrec [ListModelBiasJobDefinitions]
readPrec :: ReadPrec ListModelBiasJobDefinitions
$creadPrec :: ReadPrec ListModelBiasJobDefinitions
readList :: ReadS [ListModelBiasJobDefinitions]
$creadList :: ReadS [ListModelBiasJobDefinitions]
readsPrec :: Int -> ReadS ListModelBiasJobDefinitions
$creadsPrec :: Int -> ReadS ListModelBiasJobDefinitions
Prelude.Read, Int -> ListModelBiasJobDefinitions -> ShowS
[ListModelBiasJobDefinitions] -> ShowS
ListModelBiasJobDefinitions -> String
(Int -> ListModelBiasJobDefinitions -> ShowS)
-> (ListModelBiasJobDefinitions -> String)
-> ([ListModelBiasJobDefinitions] -> ShowS)
-> Show ListModelBiasJobDefinitions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListModelBiasJobDefinitions] -> ShowS
$cshowList :: [ListModelBiasJobDefinitions] -> ShowS
show :: ListModelBiasJobDefinitions -> String
$cshow :: ListModelBiasJobDefinitions -> String
showsPrec :: Int -> ListModelBiasJobDefinitions -> ShowS
$cshowsPrec :: Int -> ListModelBiasJobDefinitions -> ShowS
Prelude.Show, (forall x.
 ListModelBiasJobDefinitions -> Rep ListModelBiasJobDefinitions x)
-> (forall x.
    Rep ListModelBiasJobDefinitions x -> ListModelBiasJobDefinitions)
-> Generic ListModelBiasJobDefinitions
forall x.
Rep ListModelBiasJobDefinitions x -> ListModelBiasJobDefinitions
forall x.
ListModelBiasJobDefinitions -> Rep ListModelBiasJobDefinitions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListModelBiasJobDefinitions x -> ListModelBiasJobDefinitions
$cfrom :: forall x.
ListModelBiasJobDefinitions -> Rep ListModelBiasJobDefinitions x
Prelude.Generic)

-- |
-- Create a value of 'ListModelBiasJobDefinitions' 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', 'listModelBiasJobDefinitions_nameContains' - Filter for model bias jobs whose name contains a specified string.
--
-- 'endpointName', 'listModelBiasJobDefinitions_endpointName' - Name of the endpoint to monitor for model bias.
--
-- 'creationTimeAfter', 'listModelBiasJobDefinitions_creationTimeAfter' - A filter that returns only model bias jobs created after a specified
-- time.
--
-- 'nextToken', 'listModelBiasJobDefinitions_nextToken' - The token returned if the response is truncated. To retrieve the next
-- set of job executions, use it in the next request.
--
-- 'sortOrder', 'listModelBiasJobDefinitions_sortOrder' - Whether to sort the results in @Ascending@ or @Descending@ order. The
-- default is @Descending@.
--
-- 'creationTimeBefore', 'listModelBiasJobDefinitions_creationTimeBefore' - A filter that returns only model bias jobs created before a specified
-- time.
--
-- 'maxResults', 'listModelBiasJobDefinitions_maxResults' - The maximum number of model bias jobs to return in the response. The
-- default value is 10.
--
-- 'sortBy', 'listModelBiasJobDefinitions_sortBy' - Whether to sort results by the @Name@ or @CreationTime@ field. The
-- default is @CreationTime@.
newListModelBiasJobDefinitions ::
  ListModelBiasJobDefinitions
newListModelBiasJobDefinitions :: ListModelBiasJobDefinitions
newListModelBiasJobDefinitions =
  ListModelBiasJobDefinitions' :: Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe SortOrder
-> Maybe POSIX
-> Maybe Natural
-> Maybe MonitoringJobDefinitionSortKey
-> ListModelBiasJobDefinitions
ListModelBiasJobDefinitions'
    { $sel:nameContains:ListModelBiasJobDefinitions' :: Maybe Text
nameContains =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:endpointName:ListModelBiasJobDefinitions' :: Maybe Text
endpointName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:creationTimeAfter:ListModelBiasJobDefinitions' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListModelBiasJobDefinitions' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:sortOrder:ListModelBiasJobDefinitions' :: Maybe SortOrder
sortOrder = Maybe SortOrder
forall a. Maybe a
Prelude.Nothing,
      $sel:creationTimeBefore:ListModelBiasJobDefinitions' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListModelBiasJobDefinitions' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:sortBy:ListModelBiasJobDefinitions' :: Maybe MonitoringJobDefinitionSortKey
sortBy = Maybe MonitoringJobDefinitionSortKey
forall a. Maybe a
Prelude.Nothing
    }

-- | Filter for model bias jobs whose name contains a specified string.
listModelBiasJobDefinitions_nameContains :: Lens.Lens' ListModelBiasJobDefinitions (Prelude.Maybe Prelude.Text)
listModelBiasJobDefinitions_nameContains :: (Maybe Text -> f (Maybe Text))
-> ListModelBiasJobDefinitions -> f ListModelBiasJobDefinitions
listModelBiasJobDefinitions_nameContains = (ListModelBiasJobDefinitions -> Maybe Text)
-> (ListModelBiasJobDefinitions
    -> Maybe Text -> ListModelBiasJobDefinitions)
-> Lens
     ListModelBiasJobDefinitions
     ListModelBiasJobDefinitions
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelBiasJobDefinitions' {Maybe Text
nameContains :: Maybe Text
$sel:nameContains:ListModelBiasJobDefinitions' :: ListModelBiasJobDefinitions -> Maybe Text
nameContains} -> Maybe Text
nameContains) (\s :: ListModelBiasJobDefinitions
s@ListModelBiasJobDefinitions' {} Maybe Text
a -> ListModelBiasJobDefinitions
s {$sel:nameContains:ListModelBiasJobDefinitions' :: Maybe Text
nameContains = Maybe Text
a} :: ListModelBiasJobDefinitions)

-- | Name of the endpoint to monitor for model bias.
listModelBiasJobDefinitions_endpointName :: Lens.Lens' ListModelBiasJobDefinitions (Prelude.Maybe Prelude.Text)
listModelBiasJobDefinitions_endpointName :: (Maybe Text -> f (Maybe Text))
-> ListModelBiasJobDefinitions -> f ListModelBiasJobDefinitions
listModelBiasJobDefinitions_endpointName = (ListModelBiasJobDefinitions -> Maybe Text)
-> (ListModelBiasJobDefinitions
    -> Maybe Text -> ListModelBiasJobDefinitions)
-> Lens
     ListModelBiasJobDefinitions
     ListModelBiasJobDefinitions
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelBiasJobDefinitions' {Maybe Text
endpointName :: Maybe Text
$sel:endpointName:ListModelBiasJobDefinitions' :: ListModelBiasJobDefinitions -> Maybe Text
endpointName} -> Maybe Text
endpointName) (\s :: ListModelBiasJobDefinitions
s@ListModelBiasJobDefinitions' {} Maybe Text
a -> ListModelBiasJobDefinitions
s {$sel:endpointName:ListModelBiasJobDefinitions' :: Maybe Text
endpointName = Maybe Text
a} :: ListModelBiasJobDefinitions)

-- | A filter that returns only model bias jobs created after a specified
-- time.
listModelBiasJobDefinitions_creationTimeAfter :: Lens.Lens' ListModelBiasJobDefinitions (Prelude.Maybe Prelude.UTCTime)
listModelBiasJobDefinitions_creationTimeAfter :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListModelBiasJobDefinitions -> f ListModelBiasJobDefinitions
listModelBiasJobDefinitions_creationTimeAfter = (ListModelBiasJobDefinitions -> Maybe POSIX)
-> (ListModelBiasJobDefinitions
    -> Maybe POSIX -> ListModelBiasJobDefinitions)
-> Lens
     ListModelBiasJobDefinitions
     ListModelBiasJobDefinitions
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelBiasJobDefinitions' {Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:creationTimeAfter:ListModelBiasJobDefinitions' :: ListModelBiasJobDefinitions -> Maybe POSIX
creationTimeAfter} -> Maybe POSIX
creationTimeAfter) (\s :: ListModelBiasJobDefinitions
s@ListModelBiasJobDefinitions' {} Maybe POSIX
a -> ListModelBiasJobDefinitions
s {$sel:creationTimeAfter:ListModelBiasJobDefinitions' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
a} :: ListModelBiasJobDefinitions) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListModelBiasJobDefinitions -> f ListModelBiasJobDefinitions)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListModelBiasJobDefinitions
-> f ListModelBiasJobDefinitions
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 token returned if the response is truncated. To retrieve the next
-- set of job executions, use it in the next request.
listModelBiasJobDefinitions_nextToken :: Lens.Lens' ListModelBiasJobDefinitions (Prelude.Maybe Prelude.Text)
listModelBiasJobDefinitions_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListModelBiasJobDefinitions -> f ListModelBiasJobDefinitions
listModelBiasJobDefinitions_nextToken = (ListModelBiasJobDefinitions -> Maybe Text)
-> (ListModelBiasJobDefinitions
    -> Maybe Text -> ListModelBiasJobDefinitions)
-> Lens
     ListModelBiasJobDefinitions
     ListModelBiasJobDefinitions
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelBiasJobDefinitions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListModelBiasJobDefinitions' :: ListModelBiasJobDefinitions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListModelBiasJobDefinitions
s@ListModelBiasJobDefinitions' {} Maybe Text
a -> ListModelBiasJobDefinitions
s {$sel:nextToken:ListModelBiasJobDefinitions' :: Maybe Text
nextToken = Maybe Text
a} :: ListModelBiasJobDefinitions)

-- | Whether to sort the results in @Ascending@ or @Descending@ order. The
-- default is @Descending@.
listModelBiasJobDefinitions_sortOrder :: Lens.Lens' ListModelBiasJobDefinitions (Prelude.Maybe SortOrder)
listModelBiasJobDefinitions_sortOrder :: (Maybe SortOrder -> f (Maybe SortOrder))
-> ListModelBiasJobDefinitions -> f ListModelBiasJobDefinitions
listModelBiasJobDefinitions_sortOrder = (ListModelBiasJobDefinitions -> Maybe SortOrder)
-> (ListModelBiasJobDefinitions
    -> Maybe SortOrder -> ListModelBiasJobDefinitions)
-> Lens
     ListModelBiasJobDefinitions
     ListModelBiasJobDefinitions
     (Maybe SortOrder)
     (Maybe SortOrder)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelBiasJobDefinitions' {Maybe SortOrder
sortOrder :: Maybe SortOrder
$sel:sortOrder:ListModelBiasJobDefinitions' :: ListModelBiasJobDefinitions -> Maybe SortOrder
sortOrder} -> Maybe SortOrder
sortOrder) (\s :: ListModelBiasJobDefinitions
s@ListModelBiasJobDefinitions' {} Maybe SortOrder
a -> ListModelBiasJobDefinitions
s {$sel:sortOrder:ListModelBiasJobDefinitions' :: Maybe SortOrder
sortOrder = Maybe SortOrder
a} :: ListModelBiasJobDefinitions)

-- | A filter that returns only model bias jobs created before a specified
-- time.
listModelBiasJobDefinitions_creationTimeBefore :: Lens.Lens' ListModelBiasJobDefinitions (Prelude.Maybe Prelude.UTCTime)
listModelBiasJobDefinitions_creationTimeBefore :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListModelBiasJobDefinitions -> f ListModelBiasJobDefinitions
listModelBiasJobDefinitions_creationTimeBefore = (ListModelBiasJobDefinitions -> Maybe POSIX)
-> (ListModelBiasJobDefinitions
    -> Maybe POSIX -> ListModelBiasJobDefinitions)
-> Lens
     ListModelBiasJobDefinitions
     ListModelBiasJobDefinitions
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelBiasJobDefinitions' {Maybe POSIX
creationTimeBefore :: Maybe POSIX
$sel:creationTimeBefore:ListModelBiasJobDefinitions' :: ListModelBiasJobDefinitions -> Maybe POSIX
creationTimeBefore} -> Maybe POSIX
creationTimeBefore) (\s :: ListModelBiasJobDefinitions
s@ListModelBiasJobDefinitions' {} Maybe POSIX
a -> ListModelBiasJobDefinitions
s {$sel:creationTimeBefore:ListModelBiasJobDefinitions' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
a} :: ListModelBiasJobDefinitions) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListModelBiasJobDefinitions -> f ListModelBiasJobDefinitions)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListModelBiasJobDefinitions
-> f ListModelBiasJobDefinitions
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 model bias jobs to return in the response. The
-- default value is 10.
listModelBiasJobDefinitions_maxResults :: Lens.Lens' ListModelBiasJobDefinitions (Prelude.Maybe Prelude.Natural)
listModelBiasJobDefinitions_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListModelBiasJobDefinitions -> f ListModelBiasJobDefinitions
listModelBiasJobDefinitions_maxResults = (ListModelBiasJobDefinitions -> Maybe Natural)
-> (ListModelBiasJobDefinitions
    -> Maybe Natural -> ListModelBiasJobDefinitions)
-> Lens
     ListModelBiasJobDefinitions
     ListModelBiasJobDefinitions
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelBiasJobDefinitions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListModelBiasJobDefinitions' :: ListModelBiasJobDefinitions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListModelBiasJobDefinitions
s@ListModelBiasJobDefinitions' {} Maybe Natural
a -> ListModelBiasJobDefinitions
s {$sel:maxResults:ListModelBiasJobDefinitions' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListModelBiasJobDefinitions)

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

instance Core.AWSPager ListModelBiasJobDefinitions where
  page :: ListModelBiasJobDefinitions
-> AWSResponse ListModelBiasJobDefinitions
-> Maybe ListModelBiasJobDefinitions
page ListModelBiasJobDefinitions
rq AWSResponse ListModelBiasJobDefinitions
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListModelBiasJobDefinitions
ListModelBiasJobDefinitionsResponse
rs
            ListModelBiasJobDefinitionsResponse
-> Getting (First Text) ListModelBiasJobDefinitionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListModelBiasJobDefinitionsResponse
-> Const (First Text) ListModelBiasJobDefinitionsResponse
Lens' ListModelBiasJobDefinitionsResponse (Maybe Text)
listModelBiasJobDefinitionsResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListModelBiasJobDefinitionsResponse
 -> Const (First Text) ListModelBiasJobDefinitionsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListModelBiasJobDefinitionsResponse 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 ListModelBiasJobDefinitions
forall a. Maybe a
Prelude.Nothing
    | [MonitoringJobDefinitionSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListModelBiasJobDefinitions
ListModelBiasJobDefinitionsResponse
rs
            ListModelBiasJobDefinitionsResponse
-> Getting
     [MonitoringJobDefinitionSummary]
     ListModelBiasJobDefinitionsResponse
     [MonitoringJobDefinitionSummary]
-> [MonitoringJobDefinitionSummary]
forall s a. s -> Getting a s a -> a
Lens.^. Getting
  [MonitoringJobDefinitionSummary]
  ListModelBiasJobDefinitionsResponse
  [MonitoringJobDefinitionSummary]
Lens'
  ListModelBiasJobDefinitionsResponse
  [MonitoringJobDefinitionSummary]
listModelBiasJobDefinitionsResponse_jobDefinitionSummaries
        ) =
      Maybe ListModelBiasJobDefinitions
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      ListModelBiasJobDefinitions -> Maybe ListModelBiasJobDefinitions
forall a. a -> Maybe a
Prelude.Just (ListModelBiasJobDefinitions -> Maybe ListModelBiasJobDefinitions)
-> ListModelBiasJobDefinitions -> Maybe ListModelBiasJobDefinitions
forall a b. (a -> b) -> a -> b
Prelude.$
        ListModelBiasJobDefinitions
rq
          ListModelBiasJobDefinitions
-> (ListModelBiasJobDefinitions -> ListModelBiasJobDefinitions)
-> ListModelBiasJobDefinitions
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListModelBiasJobDefinitions
-> Identity ListModelBiasJobDefinitions
Lens
  ListModelBiasJobDefinitions
  ListModelBiasJobDefinitions
  (Maybe Text)
  (Maybe Text)
listModelBiasJobDefinitions_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> ListModelBiasJobDefinitions
 -> Identity ListModelBiasJobDefinitions)
-> Maybe Text
-> ListModelBiasJobDefinitions
-> ListModelBiasJobDefinitions
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListModelBiasJobDefinitions
ListModelBiasJobDefinitionsResponse
rs
          ListModelBiasJobDefinitionsResponse
-> Getting (First Text) ListModelBiasJobDefinitionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListModelBiasJobDefinitionsResponse
-> Const (First Text) ListModelBiasJobDefinitionsResponse
Lens' ListModelBiasJobDefinitionsResponse (Maybe Text)
listModelBiasJobDefinitionsResponse_nextToken
            ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListModelBiasJobDefinitionsResponse
 -> Const (First Text) ListModelBiasJobDefinitionsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListModelBiasJobDefinitionsResponse 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 ListModelBiasJobDefinitions where
  type
    AWSResponse ListModelBiasJobDefinitions =
      ListModelBiasJobDefinitionsResponse
  request :: ListModelBiasJobDefinitions -> Request ListModelBiasJobDefinitions
request = Service
-> ListModelBiasJobDefinitions
-> Request ListModelBiasJobDefinitions
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListModelBiasJobDefinitions
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListModelBiasJobDefinitions)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListModelBiasJobDefinitions))
-> Logger
-> Service
-> Proxy ListModelBiasJobDefinitions
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListModelBiasJobDefinitions)))
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]
-> ListModelBiasJobDefinitionsResponse
ListModelBiasJobDefinitionsResponse'
            (Maybe Text
 -> Int
 -> [MonitoringJobDefinitionSummary]
 -> ListModelBiasJobDefinitionsResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Int
      -> [MonitoringJobDefinitionSummary]
      -> ListModelBiasJobDefinitionsResponse)
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]
   -> ListModelBiasJobDefinitionsResponse)
-> Either String Int
-> Either
     String
     ([MonitoringJobDefinitionSummary]
      -> ListModelBiasJobDefinitionsResponse)
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]
   -> ListModelBiasJobDefinitionsResponse)
-> Either String [MonitoringJobDefinitionSummary]
-> Either String ListModelBiasJobDefinitionsResponse
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 ListModelBiasJobDefinitions

instance Prelude.NFData ListModelBiasJobDefinitions

instance Core.ToHeaders ListModelBiasJobDefinitions where
  toHeaders :: ListModelBiasJobDefinitions -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListModelBiasJobDefinitions -> 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.ListModelBiasJobDefinitions" ::
                          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 ListModelBiasJobDefinitions where
  toJSON :: ListModelBiasJobDefinitions -> Value
toJSON ListModelBiasJobDefinitions' {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:ListModelBiasJobDefinitions' :: ListModelBiasJobDefinitions -> Maybe MonitoringJobDefinitionSortKey
$sel:maxResults:ListModelBiasJobDefinitions' :: ListModelBiasJobDefinitions -> Maybe Natural
$sel:creationTimeBefore:ListModelBiasJobDefinitions' :: ListModelBiasJobDefinitions -> Maybe POSIX
$sel:sortOrder:ListModelBiasJobDefinitions' :: ListModelBiasJobDefinitions -> Maybe SortOrder
$sel:nextToken:ListModelBiasJobDefinitions' :: ListModelBiasJobDefinitions -> Maybe Text
$sel:creationTimeAfter:ListModelBiasJobDefinitions' :: ListModelBiasJobDefinitions -> Maybe POSIX
$sel:endpointName:ListModelBiasJobDefinitions' :: ListModelBiasJobDefinitions -> Maybe Text
$sel:nameContains:ListModelBiasJobDefinitions' :: ListModelBiasJobDefinitions -> 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 ListModelBiasJobDefinitions where
  toPath :: ListModelBiasJobDefinitions -> ByteString
toPath = ByteString -> ListModelBiasJobDefinitions -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

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

-- |
-- Create a value of 'ListModelBiasJobDefinitionsResponse' 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', 'listModelBiasJobDefinitionsResponse_nextToken' - If the response is truncated, Amazon SageMaker returns this token. To
-- retrieve the next set of jobs, use it in the subsequent request.
--
-- 'httpStatus', 'listModelBiasJobDefinitionsResponse_httpStatus' - The response's http status code.
--
-- 'jobDefinitionSummaries', 'listModelBiasJobDefinitionsResponse_jobDefinitionSummaries' - A JSON array in which each element is a summary for a model bias jobs.
newListModelBiasJobDefinitionsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListModelBiasJobDefinitionsResponse
newListModelBiasJobDefinitionsResponse :: Int -> ListModelBiasJobDefinitionsResponse
newListModelBiasJobDefinitionsResponse Int
pHttpStatus_ =
  ListModelBiasJobDefinitionsResponse' :: Maybe Text
-> Int
-> [MonitoringJobDefinitionSummary]
-> ListModelBiasJobDefinitionsResponse
ListModelBiasJobDefinitionsResponse'
    { $sel:nextToken:ListModelBiasJobDefinitionsResponse' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListModelBiasJobDefinitionsResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:jobDefinitionSummaries:ListModelBiasJobDefinitionsResponse' :: [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 jobs, use it in the subsequent request.
listModelBiasJobDefinitionsResponse_nextToken :: Lens.Lens' ListModelBiasJobDefinitionsResponse (Prelude.Maybe Prelude.Text)
listModelBiasJobDefinitionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListModelBiasJobDefinitionsResponse
-> f ListModelBiasJobDefinitionsResponse
listModelBiasJobDefinitionsResponse_nextToken = (ListModelBiasJobDefinitionsResponse -> Maybe Text)
-> (ListModelBiasJobDefinitionsResponse
    -> Maybe Text -> ListModelBiasJobDefinitionsResponse)
-> Lens' ListModelBiasJobDefinitionsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelBiasJobDefinitionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListModelBiasJobDefinitionsResponse' :: ListModelBiasJobDefinitionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListModelBiasJobDefinitionsResponse
s@ListModelBiasJobDefinitionsResponse' {} Maybe Text
a -> ListModelBiasJobDefinitionsResponse
s {$sel:nextToken:ListModelBiasJobDefinitionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListModelBiasJobDefinitionsResponse)

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

-- | A JSON array in which each element is a summary for a model bias jobs.
listModelBiasJobDefinitionsResponse_jobDefinitionSummaries :: Lens.Lens' ListModelBiasJobDefinitionsResponse [MonitoringJobDefinitionSummary]
listModelBiasJobDefinitionsResponse_jobDefinitionSummaries :: ([MonitoringJobDefinitionSummary]
 -> f [MonitoringJobDefinitionSummary])
-> ListModelBiasJobDefinitionsResponse
-> f ListModelBiasJobDefinitionsResponse
listModelBiasJobDefinitionsResponse_jobDefinitionSummaries = (ListModelBiasJobDefinitionsResponse
 -> [MonitoringJobDefinitionSummary])
-> (ListModelBiasJobDefinitionsResponse
    -> [MonitoringJobDefinitionSummary]
    -> ListModelBiasJobDefinitionsResponse)
-> Lens'
     ListModelBiasJobDefinitionsResponse
     [MonitoringJobDefinitionSummary]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelBiasJobDefinitionsResponse' {[MonitoringJobDefinitionSummary]
jobDefinitionSummaries :: [MonitoringJobDefinitionSummary]
$sel:jobDefinitionSummaries:ListModelBiasJobDefinitionsResponse' :: ListModelBiasJobDefinitionsResponse
-> [MonitoringJobDefinitionSummary]
jobDefinitionSummaries} -> [MonitoringJobDefinitionSummary]
jobDefinitionSummaries) (\s :: ListModelBiasJobDefinitionsResponse
s@ListModelBiasJobDefinitionsResponse' {} [MonitoringJobDefinitionSummary]
a -> ListModelBiasJobDefinitionsResponse
s {$sel:jobDefinitionSummaries:ListModelBiasJobDefinitionsResponse' :: [MonitoringJobDefinitionSummary]
jobDefinitionSummaries = [MonitoringJobDefinitionSummary]
a} :: ListModelBiasJobDefinitionsResponse) (([MonitoringJobDefinitionSummary]
  -> f [MonitoringJobDefinitionSummary])
 -> ListModelBiasJobDefinitionsResponse
 -> f ListModelBiasJobDefinitionsResponse)
-> (([MonitoringJobDefinitionSummary]
     -> f [MonitoringJobDefinitionSummary])
    -> [MonitoringJobDefinitionSummary]
    -> f [MonitoringJobDefinitionSummary])
-> ([MonitoringJobDefinitionSummary]
    -> f [MonitoringJobDefinitionSummary])
-> ListModelBiasJobDefinitionsResponse
-> f ListModelBiasJobDefinitionsResponse
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
    ListModelBiasJobDefinitionsResponse