{-# 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.LookoutVision.ListDatasetEntries
-- 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 the JSON Lines within a dataset. An Amazon Lookout for Vision JSON
-- Line contains the anomaly information for a single image, including the
-- image location and the assigned label.
--
-- This operation requires permissions to perform the
-- @lookoutvision:ListDatasetEntries@ operation.
--
-- This operation returns paginated results.
module Amazonka.LookoutVision.ListDatasetEntries
  ( -- * Creating a Request
    ListDatasetEntries (..),
    newListDatasetEntries,

    -- * Request Lenses
    listDatasetEntries_beforeCreationDate,
    listDatasetEntries_sourceRefContains,
    listDatasetEntries_nextToken,
    listDatasetEntries_labeled,
    listDatasetEntries_anomalyClass,
    listDatasetEntries_maxResults,
    listDatasetEntries_afterCreationDate,
    listDatasetEntries_projectName,
    listDatasetEntries_datasetType,

    -- * Destructuring the Response
    ListDatasetEntriesResponse (..),
    newListDatasetEntriesResponse,

    -- * Response Lenses
    listDatasetEntriesResponse_datasetEntries,
    listDatasetEntriesResponse_nextToken,
    listDatasetEntriesResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.LookoutVision.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListDatasetEntries' smart constructor.
data ListDatasetEntries = ListDatasetEntries'
  { -- | Only includes entries before the specified date in the response. For
    -- example, @2020-06-23T00:00:00@.
    ListDatasetEntries -> Maybe POSIX
beforeCreationDate :: Prelude.Maybe Core.POSIX,
    -- | Perform a \"contains\" search on the values of the @source-ref@ key
    -- within the dataset. For example a value of \"IMG_17\" returns all JSON
    -- Lines where the @source-ref@ key value matches /*IMG_17*/.
    ListDatasetEntries -> Maybe Text
sourceRefContains :: Prelude.Maybe Prelude.Text,
    -- | If the previous response was incomplete (because there is more data to
    -- retrieve), Amazon Lookout for Vision returns a pagination token in the
    -- response. You can use this pagination token to retrieve the next set of
    -- dataset entries.
    ListDatasetEntries -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Specify @true@ to include labeled entries, otherwise specify @false@. If
    -- you don\'t specify a value, Lookout for Vision returns all entries.
    ListDatasetEntries -> Maybe Bool
labeled :: Prelude.Maybe Prelude.Bool,
    -- | Specify @normal@ to include only normal images. Specify @anomaly@ to
    -- only include anomalous entries. If you don\'t specify a value, Amazon
    -- Lookout for Vision returns normal and anomalous images.
    ListDatasetEntries -> Maybe Text
anomalyClass :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to return per paginated call. The largest
    -- value you can specify is 100. If you specify a value greater than 100, a
    -- ValidationException error occurs. The default value is 100.
    ListDatasetEntries -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | Only includes entries after the specified date in the response. For
    -- example, @2020-06-23T00:00:00@.
    ListDatasetEntries -> Maybe POSIX
afterCreationDate :: Prelude.Maybe Core.POSIX,
    -- | The name of the project that contains the dataset that you want to list.
    ListDatasetEntries -> Text
projectName :: Prelude.Text,
    -- | The type of the dataset that you want to list. Specify @train@ to list
    -- the training dataset. Specify @test@ to list the test dataset. If you
    -- have a single dataset project, specify @train@.
    ListDatasetEntries -> Text
datasetType :: Prelude.Text
  }
  deriving (ListDatasetEntries -> ListDatasetEntries -> Bool
(ListDatasetEntries -> ListDatasetEntries -> Bool)
-> (ListDatasetEntries -> ListDatasetEntries -> Bool)
-> Eq ListDatasetEntries
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDatasetEntries -> ListDatasetEntries -> Bool
$c/= :: ListDatasetEntries -> ListDatasetEntries -> Bool
== :: ListDatasetEntries -> ListDatasetEntries -> Bool
$c== :: ListDatasetEntries -> ListDatasetEntries -> Bool
Prelude.Eq, ReadPrec [ListDatasetEntries]
ReadPrec ListDatasetEntries
Int -> ReadS ListDatasetEntries
ReadS [ListDatasetEntries]
(Int -> ReadS ListDatasetEntries)
-> ReadS [ListDatasetEntries]
-> ReadPrec ListDatasetEntries
-> ReadPrec [ListDatasetEntries]
-> Read ListDatasetEntries
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDatasetEntries]
$creadListPrec :: ReadPrec [ListDatasetEntries]
readPrec :: ReadPrec ListDatasetEntries
$creadPrec :: ReadPrec ListDatasetEntries
readList :: ReadS [ListDatasetEntries]
$creadList :: ReadS [ListDatasetEntries]
readsPrec :: Int -> ReadS ListDatasetEntries
$creadsPrec :: Int -> ReadS ListDatasetEntries
Prelude.Read, Int -> ListDatasetEntries -> ShowS
[ListDatasetEntries] -> ShowS
ListDatasetEntries -> String
(Int -> ListDatasetEntries -> ShowS)
-> (ListDatasetEntries -> String)
-> ([ListDatasetEntries] -> ShowS)
-> Show ListDatasetEntries
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDatasetEntries] -> ShowS
$cshowList :: [ListDatasetEntries] -> ShowS
show :: ListDatasetEntries -> String
$cshow :: ListDatasetEntries -> String
showsPrec :: Int -> ListDatasetEntries -> ShowS
$cshowsPrec :: Int -> ListDatasetEntries -> ShowS
Prelude.Show, (forall x. ListDatasetEntries -> Rep ListDatasetEntries x)
-> (forall x. Rep ListDatasetEntries x -> ListDatasetEntries)
-> Generic ListDatasetEntries
forall x. Rep ListDatasetEntries x -> ListDatasetEntries
forall x. ListDatasetEntries -> Rep ListDatasetEntries x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListDatasetEntries x -> ListDatasetEntries
$cfrom :: forall x. ListDatasetEntries -> Rep ListDatasetEntries x
Prelude.Generic)

-- |
-- Create a value of 'ListDatasetEntries' 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:
--
-- 'beforeCreationDate', 'listDatasetEntries_beforeCreationDate' - Only includes entries before the specified date in the response. For
-- example, @2020-06-23T00:00:00@.
--
-- 'sourceRefContains', 'listDatasetEntries_sourceRefContains' - Perform a \"contains\" search on the values of the @source-ref@ key
-- within the dataset. For example a value of \"IMG_17\" returns all JSON
-- Lines where the @source-ref@ key value matches /*IMG_17*/.
--
-- 'nextToken', 'listDatasetEntries_nextToken' - If the previous response was incomplete (because there is more data to
-- retrieve), Amazon Lookout for Vision returns a pagination token in the
-- response. You can use this pagination token to retrieve the next set of
-- dataset entries.
--
-- 'labeled', 'listDatasetEntries_labeled' - Specify @true@ to include labeled entries, otherwise specify @false@. If
-- you don\'t specify a value, Lookout for Vision returns all entries.
--
-- 'anomalyClass', 'listDatasetEntries_anomalyClass' - Specify @normal@ to include only normal images. Specify @anomaly@ to
-- only include anomalous entries. If you don\'t specify a value, Amazon
-- Lookout for Vision returns normal and anomalous images.
--
-- 'maxResults', 'listDatasetEntries_maxResults' - The maximum number of results to return per paginated call. The largest
-- value you can specify is 100. If you specify a value greater than 100, a
-- ValidationException error occurs. The default value is 100.
--
-- 'afterCreationDate', 'listDatasetEntries_afterCreationDate' - Only includes entries after the specified date in the response. For
-- example, @2020-06-23T00:00:00@.
--
-- 'projectName', 'listDatasetEntries_projectName' - The name of the project that contains the dataset that you want to list.
--
-- 'datasetType', 'listDatasetEntries_datasetType' - The type of the dataset that you want to list. Specify @train@ to list
-- the training dataset. Specify @test@ to list the test dataset. If you
-- have a single dataset project, specify @train@.
newListDatasetEntries ::
  -- | 'projectName'
  Prelude.Text ->
  -- | 'datasetType'
  Prelude.Text ->
  ListDatasetEntries
newListDatasetEntries :: Text -> Text -> ListDatasetEntries
newListDatasetEntries Text
pProjectName_ Text
pDatasetType_ =
  ListDatasetEntries' :: Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Natural
-> Maybe POSIX
-> Text
-> Text
-> ListDatasetEntries
ListDatasetEntries'
    { $sel:beforeCreationDate:ListDatasetEntries' :: Maybe POSIX
beforeCreationDate =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:sourceRefContains:ListDatasetEntries' :: Maybe Text
sourceRefContains = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListDatasetEntries' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:labeled:ListDatasetEntries' :: Maybe Bool
labeled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:anomalyClass:ListDatasetEntries' :: Maybe Text
anomalyClass = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListDatasetEntries' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:afterCreationDate:ListDatasetEntries' :: Maybe POSIX
afterCreationDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:projectName:ListDatasetEntries' :: Text
projectName = Text
pProjectName_,
      $sel:datasetType:ListDatasetEntries' :: Text
datasetType = Text
pDatasetType_
    }

-- | Only includes entries before the specified date in the response. For
-- example, @2020-06-23T00:00:00@.
listDatasetEntries_beforeCreationDate :: Lens.Lens' ListDatasetEntries (Prelude.Maybe Prelude.UTCTime)
listDatasetEntries_beforeCreationDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListDatasetEntries -> f ListDatasetEntries
listDatasetEntries_beforeCreationDate = (ListDatasetEntries -> Maybe POSIX)
-> (ListDatasetEntries -> Maybe POSIX -> ListDatasetEntries)
-> Lens
     ListDatasetEntries ListDatasetEntries (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDatasetEntries' {Maybe POSIX
beforeCreationDate :: Maybe POSIX
$sel:beforeCreationDate:ListDatasetEntries' :: ListDatasetEntries -> Maybe POSIX
beforeCreationDate} -> Maybe POSIX
beforeCreationDate) (\s :: ListDatasetEntries
s@ListDatasetEntries' {} Maybe POSIX
a -> ListDatasetEntries
s {$sel:beforeCreationDate:ListDatasetEntries' :: Maybe POSIX
beforeCreationDate = Maybe POSIX
a} :: ListDatasetEntries) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListDatasetEntries -> f ListDatasetEntries)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListDatasetEntries
-> f ListDatasetEntries
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

-- | Perform a \"contains\" search on the values of the @source-ref@ key
-- within the dataset. For example a value of \"IMG_17\" returns all JSON
-- Lines where the @source-ref@ key value matches /*IMG_17*/.
listDatasetEntries_sourceRefContains :: Lens.Lens' ListDatasetEntries (Prelude.Maybe Prelude.Text)
listDatasetEntries_sourceRefContains :: (Maybe Text -> f (Maybe Text))
-> ListDatasetEntries -> f ListDatasetEntries
listDatasetEntries_sourceRefContains = (ListDatasetEntries -> Maybe Text)
-> (ListDatasetEntries -> Maybe Text -> ListDatasetEntries)
-> Lens
     ListDatasetEntries ListDatasetEntries (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDatasetEntries' {Maybe Text
sourceRefContains :: Maybe Text
$sel:sourceRefContains:ListDatasetEntries' :: ListDatasetEntries -> Maybe Text
sourceRefContains} -> Maybe Text
sourceRefContains) (\s :: ListDatasetEntries
s@ListDatasetEntries' {} Maybe Text
a -> ListDatasetEntries
s {$sel:sourceRefContains:ListDatasetEntries' :: Maybe Text
sourceRefContains = Maybe Text
a} :: ListDatasetEntries)

-- | If the previous response was incomplete (because there is more data to
-- retrieve), Amazon Lookout for Vision returns a pagination token in the
-- response. You can use this pagination token to retrieve the next set of
-- dataset entries.
listDatasetEntries_nextToken :: Lens.Lens' ListDatasetEntries (Prelude.Maybe Prelude.Text)
listDatasetEntries_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDatasetEntries -> f ListDatasetEntries
listDatasetEntries_nextToken = (ListDatasetEntries -> Maybe Text)
-> (ListDatasetEntries -> Maybe Text -> ListDatasetEntries)
-> Lens
     ListDatasetEntries ListDatasetEntries (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDatasetEntries' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDatasetEntries' :: ListDatasetEntries -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDatasetEntries
s@ListDatasetEntries' {} Maybe Text
a -> ListDatasetEntries
s {$sel:nextToken:ListDatasetEntries' :: Maybe Text
nextToken = Maybe Text
a} :: ListDatasetEntries)

-- | Specify @true@ to include labeled entries, otherwise specify @false@. If
-- you don\'t specify a value, Lookout for Vision returns all entries.
listDatasetEntries_labeled :: Lens.Lens' ListDatasetEntries (Prelude.Maybe Prelude.Bool)
listDatasetEntries_labeled :: (Maybe Bool -> f (Maybe Bool))
-> ListDatasetEntries -> f ListDatasetEntries
listDatasetEntries_labeled = (ListDatasetEntries -> Maybe Bool)
-> (ListDatasetEntries -> Maybe Bool -> ListDatasetEntries)
-> Lens
     ListDatasetEntries ListDatasetEntries (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDatasetEntries' {Maybe Bool
labeled :: Maybe Bool
$sel:labeled:ListDatasetEntries' :: ListDatasetEntries -> Maybe Bool
labeled} -> Maybe Bool
labeled) (\s :: ListDatasetEntries
s@ListDatasetEntries' {} Maybe Bool
a -> ListDatasetEntries
s {$sel:labeled:ListDatasetEntries' :: Maybe Bool
labeled = Maybe Bool
a} :: ListDatasetEntries)

-- | Specify @normal@ to include only normal images. Specify @anomaly@ to
-- only include anomalous entries. If you don\'t specify a value, Amazon
-- Lookout for Vision returns normal and anomalous images.
listDatasetEntries_anomalyClass :: Lens.Lens' ListDatasetEntries (Prelude.Maybe Prelude.Text)
listDatasetEntries_anomalyClass :: (Maybe Text -> f (Maybe Text))
-> ListDatasetEntries -> f ListDatasetEntries
listDatasetEntries_anomalyClass = (ListDatasetEntries -> Maybe Text)
-> (ListDatasetEntries -> Maybe Text -> ListDatasetEntries)
-> Lens
     ListDatasetEntries ListDatasetEntries (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDatasetEntries' {Maybe Text
anomalyClass :: Maybe Text
$sel:anomalyClass:ListDatasetEntries' :: ListDatasetEntries -> Maybe Text
anomalyClass} -> Maybe Text
anomalyClass) (\s :: ListDatasetEntries
s@ListDatasetEntries' {} Maybe Text
a -> ListDatasetEntries
s {$sel:anomalyClass:ListDatasetEntries' :: Maybe Text
anomalyClass = Maybe Text
a} :: ListDatasetEntries)

-- | The maximum number of results to return per paginated call. The largest
-- value you can specify is 100. If you specify a value greater than 100, a
-- ValidationException error occurs. The default value is 100.
listDatasetEntries_maxResults :: Lens.Lens' ListDatasetEntries (Prelude.Maybe Prelude.Natural)
listDatasetEntries_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListDatasetEntries -> f ListDatasetEntries
listDatasetEntries_maxResults = (ListDatasetEntries -> Maybe Natural)
-> (ListDatasetEntries -> Maybe Natural -> ListDatasetEntries)
-> Lens
     ListDatasetEntries
     ListDatasetEntries
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDatasetEntries' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListDatasetEntries' :: ListDatasetEntries -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListDatasetEntries
s@ListDatasetEntries' {} Maybe Natural
a -> ListDatasetEntries
s {$sel:maxResults:ListDatasetEntries' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListDatasetEntries)

-- | Only includes entries after the specified date in the response. For
-- example, @2020-06-23T00:00:00@.
listDatasetEntries_afterCreationDate :: Lens.Lens' ListDatasetEntries (Prelude.Maybe Prelude.UTCTime)
listDatasetEntries_afterCreationDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListDatasetEntries -> f ListDatasetEntries
listDatasetEntries_afterCreationDate = (ListDatasetEntries -> Maybe POSIX)
-> (ListDatasetEntries -> Maybe POSIX -> ListDatasetEntries)
-> Lens
     ListDatasetEntries ListDatasetEntries (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDatasetEntries' {Maybe POSIX
afterCreationDate :: Maybe POSIX
$sel:afterCreationDate:ListDatasetEntries' :: ListDatasetEntries -> Maybe POSIX
afterCreationDate} -> Maybe POSIX
afterCreationDate) (\s :: ListDatasetEntries
s@ListDatasetEntries' {} Maybe POSIX
a -> ListDatasetEntries
s {$sel:afterCreationDate:ListDatasetEntries' :: Maybe POSIX
afterCreationDate = Maybe POSIX
a} :: ListDatasetEntries) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListDatasetEntries -> f ListDatasetEntries)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListDatasetEntries
-> f ListDatasetEntries
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 name of the project that contains the dataset that you want to list.
listDatasetEntries_projectName :: Lens.Lens' ListDatasetEntries Prelude.Text
listDatasetEntries_projectName :: (Text -> f Text) -> ListDatasetEntries -> f ListDatasetEntries
listDatasetEntries_projectName = (ListDatasetEntries -> Text)
-> (ListDatasetEntries -> Text -> ListDatasetEntries)
-> Lens ListDatasetEntries ListDatasetEntries Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDatasetEntries' {Text
projectName :: Text
$sel:projectName:ListDatasetEntries' :: ListDatasetEntries -> Text
projectName} -> Text
projectName) (\s :: ListDatasetEntries
s@ListDatasetEntries' {} Text
a -> ListDatasetEntries
s {$sel:projectName:ListDatasetEntries' :: Text
projectName = Text
a} :: ListDatasetEntries)

-- | The type of the dataset that you want to list. Specify @train@ to list
-- the training dataset. Specify @test@ to list the test dataset. If you
-- have a single dataset project, specify @train@.
listDatasetEntries_datasetType :: Lens.Lens' ListDatasetEntries Prelude.Text
listDatasetEntries_datasetType :: (Text -> f Text) -> ListDatasetEntries -> f ListDatasetEntries
listDatasetEntries_datasetType = (ListDatasetEntries -> Text)
-> (ListDatasetEntries -> Text -> ListDatasetEntries)
-> Lens ListDatasetEntries ListDatasetEntries Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDatasetEntries' {Text
datasetType :: Text
$sel:datasetType:ListDatasetEntries' :: ListDatasetEntries -> Text
datasetType} -> Text
datasetType) (\s :: ListDatasetEntries
s@ListDatasetEntries' {} Text
a -> ListDatasetEntries
s {$sel:datasetType:ListDatasetEntries' :: Text
datasetType = Text
a} :: ListDatasetEntries)

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

instance Prelude.Hashable ListDatasetEntries

instance Prelude.NFData ListDatasetEntries

instance Core.ToHeaders ListDatasetEntries where
  toHeaders :: ListDatasetEntries -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListDatasetEntries -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ 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.ToPath ListDatasetEntries where
  toPath :: ListDatasetEntries -> ByteString
toPath ListDatasetEntries' {Maybe Bool
Maybe Natural
Maybe Text
Maybe POSIX
Text
datasetType :: Text
projectName :: Text
afterCreationDate :: Maybe POSIX
maxResults :: Maybe Natural
anomalyClass :: Maybe Text
labeled :: Maybe Bool
nextToken :: Maybe Text
sourceRefContains :: Maybe Text
beforeCreationDate :: Maybe POSIX
$sel:datasetType:ListDatasetEntries' :: ListDatasetEntries -> Text
$sel:projectName:ListDatasetEntries' :: ListDatasetEntries -> Text
$sel:afterCreationDate:ListDatasetEntries' :: ListDatasetEntries -> Maybe POSIX
$sel:maxResults:ListDatasetEntries' :: ListDatasetEntries -> Maybe Natural
$sel:anomalyClass:ListDatasetEntries' :: ListDatasetEntries -> Maybe Text
$sel:labeled:ListDatasetEntries' :: ListDatasetEntries -> Maybe Bool
$sel:nextToken:ListDatasetEntries' :: ListDatasetEntries -> Maybe Text
$sel:sourceRefContains:ListDatasetEntries' :: ListDatasetEntries -> Maybe Text
$sel:beforeCreationDate:ListDatasetEntries' :: ListDatasetEntries -> Maybe POSIX
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/2020-11-20/projects/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
projectName,
        ByteString
"/datasets/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
datasetType,
        ByteString
"/entries"
      ]

instance Core.ToQuery ListDatasetEntries where
  toQuery :: ListDatasetEntries -> QueryString
toQuery ListDatasetEntries' {Maybe Bool
Maybe Natural
Maybe Text
Maybe POSIX
Text
datasetType :: Text
projectName :: Text
afterCreationDate :: Maybe POSIX
maxResults :: Maybe Natural
anomalyClass :: Maybe Text
labeled :: Maybe Bool
nextToken :: Maybe Text
sourceRefContains :: Maybe Text
beforeCreationDate :: Maybe POSIX
$sel:datasetType:ListDatasetEntries' :: ListDatasetEntries -> Text
$sel:projectName:ListDatasetEntries' :: ListDatasetEntries -> Text
$sel:afterCreationDate:ListDatasetEntries' :: ListDatasetEntries -> Maybe POSIX
$sel:maxResults:ListDatasetEntries' :: ListDatasetEntries -> Maybe Natural
$sel:anomalyClass:ListDatasetEntries' :: ListDatasetEntries -> Maybe Text
$sel:labeled:ListDatasetEntries' :: ListDatasetEntries -> Maybe Bool
$sel:nextToken:ListDatasetEntries' :: ListDatasetEntries -> Maybe Text
$sel:sourceRefContains:ListDatasetEntries' :: ListDatasetEntries -> Maybe Text
$sel:beforeCreationDate:ListDatasetEntries' :: ListDatasetEntries -> Maybe POSIX
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"createdBefore" ByteString -> Maybe POSIX -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe POSIX
beforeCreationDate,
        ByteString
"sourceRefContains" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
sourceRefContains,
        ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
        ByteString
"labeled" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
labeled,
        ByteString
"anomalyClass" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
anomalyClass,
        ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults,
        ByteString
"createdAfter" ByteString -> Maybe POSIX -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe POSIX
afterCreationDate
      ]

-- | /See:/ 'newListDatasetEntriesResponse' smart constructor.
data ListDatasetEntriesResponse = ListDatasetEntriesResponse'
  { -- | A list of the entries (JSON Lines) within the dataset.
    ListDatasetEntriesResponse -> Maybe [Text]
datasetEntries :: Prelude.Maybe [Prelude.Text],
    -- | If the response is truncated, Amazon Lookout for Vision returns this
    -- token that you can use in the subsequent request to retrieve the next
    -- set ofdataset entries.
    ListDatasetEntriesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListDatasetEntriesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListDatasetEntriesResponse -> ListDatasetEntriesResponse -> Bool
(ListDatasetEntriesResponse -> ListDatasetEntriesResponse -> Bool)
-> (ListDatasetEntriesResponse
    -> ListDatasetEntriesResponse -> Bool)
-> Eq ListDatasetEntriesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDatasetEntriesResponse -> ListDatasetEntriesResponse -> Bool
$c/= :: ListDatasetEntriesResponse -> ListDatasetEntriesResponse -> Bool
== :: ListDatasetEntriesResponse -> ListDatasetEntriesResponse -> Bool
$c== :: ListDatasetEntriesResponse -> ListDatasetEntriesResponse -> Bool
Prelude.Eq, ReadPrec [ListDatasetEntriesResponse]
ReadPrec ListDatasetEntriesResponse
Int -> ReadS ListDatasetEntriesResponse
ReadS [ListDatasetEntriesResponse]
(Int -> ReadS ListDatasetEntriesResponse)
-> ReadS [ListDatasetEntriesResponse]
-> ReadPrec ListDatasetEntriesResponse
-> ReadPrec [ListDatasetEntriesResponse]
-> Read ListDatasetEntriesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDatasetEntriesResponse]
$creadListPrec :: ReadPrec [ListDatasetEntriesResponse]
readPrec :: ReadPrec ListDatasetEntriesResponse
$creadPrec :: ReadPrec ListDatasetEntriesResponse
readList :: ReadS [ListDatasetEntriesResponse]
$creadList :: ReadS [ListDatasetEntriesResponse]
readsPrec :: Int -> ReadS ListDatasetEntriesResponse
$creadsPrec :: Int -> ReadS ListDatasetEntriesResponse
Prelude.Read, Int -> ListDatasetEntriesResponse -> ShowS
[ListDatasetEntriesResponse] -> ShowS
ListDatasetEntriesResponse -> String
(Int -> ListDatasetEntriesResponse -> ShowS)
-> (ListDatasetEntriesResponse -> String)
-> ([ListDatasetEntriesResponse] -> ShowS)
-> Show ListDatasetEntriesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDatasetEntriesResponse] -> ShowS
$cshowList :: [ListDatasetEntriesResponse] -> ShowS
show :: ListDatasetEntriesResponse -> String
$cshow :: ListDatasetEntriesResponse -> String
showsPrec :: Int -> ListDatasetEntriesResponse -> ShowS
$cshowsPrec :: Int -> ListDatasetEntriesResponse -> ShowS
Prelude.Show, (forall x.
 ListDatasetEntriesResponse -> Rep ListDatasetEntriesResponse x)
-> (forall x.
    Rep ListDatasetEntriesResponse x -> ListDatasetEntriesResponse)
-> Generic ListDatasetEntriesResponse
forall x.
Rep ListDatasetEntriesResponse x -> ListDatasetEntriesResponse
forall x.
ListDatasetEntriesResponse -> Rep ListDatasetEntriesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDatasetEntriesResponse x -> ListDatasetEntriesResponse
$cfrom :: forall x.
ListDatasetEntriesResponse -> Rep ListDatasetEntriesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListDatasetEntriesResponse' 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:
--
-- 'datasetEntries', 'listDatasetEntriesResponse_datasetEntries' - A list of the entries (JSON Lines) within the dataset.
--
-- 'nextToken', 'listDatasetEntriesResponse_nextToken' - If the response is truncated, Amazon Lookout for Vision returns this
-- token that you can use in the subsequent request to retrieve the next
-- set ofdataset entries.
--
-- 'httpStatus', 'listDatasetEntriesResponse_httpStatus' - The response's http status code.
newListDatasetEntriesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListDatasetEntriesResponse
newListDatasetEntriesResponse :: Int -> ListDatasetEntriesResponse
newListDatasetEntriesResponse Int
pHttpStatus_ =
  ListDatasetEntriesResponse' :: Maybe [Text] -> Maybe Text -> Int -> ListDatasetEntriesResponse
ListDatasetEntriesResponse'
    { $sel:datasetEntries:ListDatasetEntriesResponse' :: Maybe [Text]
datasetEntries =
        Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListDatasetEntriesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListDatasetEntriesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list of the entries (JSON Lines) within the dataset.
listDatasetEntriesResponse_datasetEntries :: Lens.Lens' ListDatasetEntriesResponse (Prelude.Maybe [Prelude.Text])
listDatasetEntriesResponse_datasetEntries :: (Maybe [Text] -> f (Maybe [Text]))
-> ListDatasetEntriesResponse -> f ListDatasetEntriesResponse
listDatasetEntriesResponse_datasetEntries = (ListDatasetEntriesResponse -> Maybe [Text])
-> (ListDatasetEntriesResponse
    -> Maybe [Text] -> ListDatasetEntriesResponse)
-> Lens' ListDatasetEntriesResponse (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDatasetEntriesResponse' {Maybe [Text]
datasetEntries :: Maybe [Text]
$sel:datasetEntries:ListDatasetEntriesResponse' :: ListDatasetEntriesResponse -> Maybe [Text]
datasetEntries} -> Maybe [Text]
datasetEntries) (\s :: ListDatasetEntriesResponse
s@ListDatasetEntriesResponse' {} Maybe [Text]
a -> ListDatasetEntriesResponse
s {$sel:datasetEntries:ListDatasetEntriesResponse' :: Maybe [Text]
datasetEntries = Maybe [Text]
a} :: ListDatasetEntriesResponse) ((Maybe [Text] -> f (Maybe [Text]))
 -> ListDatasetEntriesResponse -> f ListDatasetEntriesResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ListDatasetEntriesResponse
-> f ListDatasetEntriesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | If the response is truncated, Amazon Lookout for Vision returns this
-- token that you can use in the subsequent request to retrieve the next
-- set ofdataset entries.
listDatasetEntriesResponse_nextToken :: Lens.Lens' ListDatasetEntriesResponse (Prelude.Maybe Prelude.Text)
listDatasetEntriesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDatasetEntriesResponse -> f ListDatasetEntriesResponse
listDatasetEntriesResponse_nextToken = (ListDatasetEntriesResponse -> Maybe Text)
-> (ListDatasetEntriesResponse
    -> Maybe Text -> ListDatasetEntriesResponse)
-> Lens' ListDatasetEntriesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDatasetEntriesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDatasetEntriesResponse' :: ListDatasetEntriesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDatasetEntriesResponse
s@ListDatasetEntriesResponse' {} Maybe Text
a -> ListDatasetEntriesResponse
s {$sel:nextToken:ListDatasetEntriesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListDatasetEntriesResponse)

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

instance Prelude.NFData ListDatasetEntriesResponse