{-# 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.DataExchange.ListDataSetRevisions
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- This operation lists a data set\'s revisions sorted by CreatedAt in
-- descending order.
--
-- This operation returns paginated results.
module Amazonka.DataExchange.ListDataSetRevisions
  ( -- * Creating a Request
    ListDataSetRevisions (..),
    newListDataSetRevisions,

    -- * Request Lenses
    listDataSetRevisions_maxResults,
    listDataSetRevisions_nextToken,
    listDataSetRevisions_dataSetId,

    -- * Destructuring the Response
    ListDataSetRevisionsResponse (..),
    newListDataSetRevisionsResponse,

    -- * Response Lenses
    listDataSetRevisionsResponse_nextToken,
    listDataSetRevisionsResponse_revisions,
    listDataSetRevisionsResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListDataSetRevisions' smart constructor.
data ListDataSetRevisions = ListDataSetRevisions'
  { -- | The maximum number of results returned by a single call.
    ListDataSetRevisions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The token value retrieved from a previous call to access the next page
    -- of results.
    ListDataSetRevisions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The unique identifier for a data set.
    ListDataSetRevisions -> Text
dataSetId :: Prelude.Text
  }
  deriving (ListDataSetRevisions -> ListDataSetRevisions -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDataSetRevisions -> ListDataSetRevisions -> Bool
$c/= :: ListDataSetRevisions -> ListDataSetRevisions -> Bool
== :: ListDataSetRevisions -> ListDataSetRevisions -> Bool
$c== :: ListDataSetRevisions -> ListDataSetRevisions -> Bool
Prelude.Eq, ReadPrec [ListDataSetRevisions]
ReadPrec ListDataSetRevisions
Int -> ReadS ListDataSetRevisions
ReadS [ListDataSetRevisions]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDataSetRevisions]
$creadListPrec :: ReadPrec [ListDataSetRevisions]
readPrec :: ReadPrec ListDataSetRevisions
$creadPrec :: ReadPrec ListDataSetRevisions
readList :: ReadS [ListDataSetRevisions]
$creadList :: ReadS [ListDataSetRevisions]
readsPrec :: Int -> ReadS ListDataSetRevisions
$creadsPrec :: Int -> ReadS ListDataSetRevisions
Prelude.Read, Int -> ListDataSetRevisions -> ShowS
[ListDataSetRevisions] -> ShowS
ListDataSetRevisions -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDataSetRevisions] -> ShowS
$cshowList :: [ListDataSetRevisions] -> ShowS
show :: ListDataSetRevisions -> String
$cshow :: ListDataSetRevisions -> String
showsPrec :: Int -> ListDataSetRevisions -> ShowS
$cshowsPrec :: Int -> ListDataSetRevisions -> ShowS
Prelude.Show, forall x. Rep ListDataSetRevisions x -> ListDataSetRevisions
forall x. ListDataSetRevisions -> Rep ListDataSetRevisions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListDataSetRevisions x -> ListDataSetRevisions
$cfrom :: forall x. ListDataSetRevisions -> Rep ListDataSetRevisions x
Prelude.Generic)

-- |
-- Create a value of 'ListDataSetRevisions' 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:
--
-- 'maxResults', 'listDataSetRevisions_maxResults' - The maximum number of results returned by a single call.
--
-- 'nextToken', 'listDataSetRevisions_nextToken' - The token value retrieved from a previous call to access the next page
-- of results.
--
-- 'dataSetId', 'listDataSetRevisions_dataSetId' - The unique identifier for a data set.
newListDataSetRevisions ::
  -- | 'dataSetId'
  Prelude.Text ->
  ListDataSetRevisions
newListDataSetRevisions :: Text -> ListDataSetRevisions
newListDataSetRevisions Text
pDataSetId_ =
  ListDataSetRevisions'
    { $sel:maxResults:ListDataSetRevisions' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListDataSetRevisions' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:dataSetId:ListDataSetRevisions' :: Text
dataSetId = Text
pDataSetId_
    }

-- | The maximum number of results returned by a single call.
listDataSetRevisions_maxResults :: Lens.Lens' ListDataSetRevisions (Prelude.Maybe Prelude.Natural)
listDataSetRevisions_maxResults :: Lens' ListDataSetRevisions (Maybe Natural)
listDataSetRevisions_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataSetRevisions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListDataSetRevisions' :: ListDataSetRevisions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListDataSetRevisions
s@ListDataSetRevisions' {} Maybe Natural
a -> ListDataSetRevisions
s {$sel:maxResults:ListDataSetRevisions' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListDataSetRevisions)

-- | The token value retrieved from a previous call to access the next page
-- of results.
listDataSetRevisions_nextToken :: Lens.Lens' ListDataSetRevisions (Prelude.Maybe Prelude.Text)
listDataSetRevisions_nextToken :: Lens' ListDataSetRevisions (Maybe Text)
listDataSetRevisions_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataSetRevisions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDataSetRevisions' :: ListDataSetRevisions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDataSetRevisions
s@ListDataSetRevisions' {} Maybe Text
a -> ListDataSetRevisions
s {$sel:nextToken:ListDataSetRevisions' :: Maybe Text
nextToken = Maybe Text
a} :: ListDataSetRevisions)

-- | The unique identifier for a data set.
listDataSetRevisions_dataSetId :: Lens.Lens' ListDataSetRevisions Prelude.Text
listDataSetRevisions_dataSetId :: Lens' ListDataSetRevisions Text
listDataSetRevisions_dataSetId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataSetRevisions' {Text
dataSetId :: Text
$sel:dataSetId:ListDataSetRevisions' :: ListDataSetRevisions -> Text
dataSetId} -> Text
dataSetId) (\s :: ListDataSetRevisions
s@ListDataSetRevisions' {} Text
a -> ListDataSetRevisions
s {$sel:dataSetId:ListDataSetRevisions' :: Text
dataSetId = Text
a} :: ListDataSetRevisions)

instance Core.AWSPager ListDataSetRevisions where
  page :: ListDataSetRevisions
-> AWSResponse ListDataSetRevisions -> Maybe ListDataSetRevisions
page ListDataSetRevisions
rq AWSResponse ListDataSetRevisions
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListDataSetRevisions
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListDataSetRevisionsResponse (Maybe Text)
listDataSetRevisionsResponse_nextToken
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListDataSetRevisions
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListDataSetRevisionsResponse (Maybe [RevisionEntry])
listDataSetRevisionsResponse_revisions
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListDataSetRevisions
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListDataSetRevisions (Maybe Text)
listDataSetRevisions_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListDataSetRevisions
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListDataSetRevisionsResponse (Maybe Text)
listDataSetRevisionsResponse_nextToken
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

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

instance Prelude.Hashable ListDataSetRevisions where
  hashWithSalt :: Int -> ListDataSetRevisions -> Int
hashWithSalt Int
_salt ListDataSetRevisions' {Maybe Natural
Maybe Text
Text
dataSetId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:dataSetId:ListDataSetRevisions' :: ListDataSetRevisions -> Text
$sel:nextToken:ListDataSetRevisions' :: ListDataSetRevisions -> Maybe Text
$sel:maxResults:ListDataSetRevisions' :: ListDataSetRevisions -> Maybe Natural
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
dataSetId

instance Prelude.NFData ListDataSetRevisions where
  rnf :: ListDataSetRevisions -> ()
rnf ListDataSetRevisions' {Maybe Natural
Maybe Text
Text
dataSetId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:dataSetId:ListDataSetRevisions' :: ListDataSetRevisions -> Text
$sel:nextToken:ListDataSetRevisions' :: ListDataSetRevisions -> Maybe Text
$sel:maxResults:ListDataSetRevisions' :: ListDataSetRevisions -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
dataSetId

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

instance Data.ToPath ListDataSetRevisions where
  toPath :: ListDataSetRevisions -> ByteString
toPath ListDataSetRevisions' {Maybe Natural
Maybe Text
Text
dataSetId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:dataSetId:ListDataSetRevisions' :: ListDataSetRevisions -> Text
$sel:nextToken:ListDataSetRevisions' :: ListDataSetRevisions -> Maybe Text
$sel:maxResults:ListDataSetRevisions' :: ListDataSetRevisions -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/v1/data-sets/", forall a. ToByteString a => a -> ByteString
Data.toBS Text
dataSetId, ByteString
"/revisions"]

instance Data.ToQuery ListDataSetRevisions where
  toQuery :: ListDataSetRevisions -> QueryString
toQuery ListDataSetRevisions' {Maybe Natural
Maybe Text
Text
dataSetId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:dataSetId:ListDataSetRevisions' :: ListDataSetRevisions -> Text
$sel:nextToken:ListDataSetRevisions' :: ListDataSetRevisions -> Maybe Text
$sel:maxResults:ListDataSetRevisions' :: ListDataSetRevisions -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"maxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
        ByteString
"nextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken
      ]

-- | /See:/ 'newListDataSetRevisionsResponse' smart constructor.
data ListDataSetRevisionsResponse = ListDataSetRevisionsResponse'
  { -- | The token value retrieved from a previous call to access the next page
    -- of results.
    ListDataSetRevisionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The asset objects listed by the request.
    ListDataSetRevisionsResponse -> Maybe [RevisionEntry]
revisions :: Prelude.Maybe [RevisionEntry],
    -- | The response's http status code.
    ListDataSetRevisionsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListDataSetRevisionsResponse
-> ListDataSetRevisionsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDataSetRevisionsResponse
-> ListDataSetRevisionsResponse -> Bool
$c/= :: ListDataSetRevisionsResponse
-> ListDataSetRevisionsResponse -> Bool
== :: ListDataSetRevisionsResponse
-> ListDataSetRevisionsResponse -> Bool
$c== :: ListDataSetRevisionsResponse
-> ListDataSetRevisionsResponse -> Bool
Prelude.Eq, ReadPrec [ListDataSetRevisionsResponse]
ReadPrec ListDataSetRevisionsResponse
Int -> ReadS ListDataSetRevisionsResponse
ReadS [ListDataSetRevisionsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDataSetRevisionsResponse]
$creadListPrec :: ReadPrec [ListDataSetRevisionsResponse]
readPrec :: ReadPrec ListDataSetRevisionsResponse
$creadPrec :: ReadPrec ListDataSetRevisionsResponse
readList :: ReadS [ListDataSetRevisionsResponse]
$creadList :: ReadS [ListDataSetRevisionsResponse]
readsPrec :: Int -> ReadS ListDataSetRevisionsResponse
$creadsPrec :: Int -> ReadS ListDataSetRevisionsResponse
Prelude.Read, Int -> ListDataSetRevisionsResponse -> ShowS
[ListDataSetRevisionsResponse] -> ShowS
ListDataSetRevisionsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDataSetRevisionsResponse] -> ShowS
$cshowList :: [ListDataSetRevisionsResponse] -> ShowS
show :: ListDataSetRevisionsResponse -> String
$cshow :: ListDataSetRevisionsResponse -> String
showsPrec :: Int -> ListDataSetRevisionsResponse -> ShowS
$cshowsPrec :: Int -> ListDataSetRevisionsResponse -> ShowS
Prelude.Show, forall x.
Rep ListDataSetRevisionsResponse x -> ListDataSetRevisionsResponse
forall x.
ListDataSetRevisionsResponse -> Rep ListDataSetRevisionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDataSetRevisionsResponse x -> ListDataSetRevisionsResponse
$cfrom :: forall x.
ListDataSetRevisionsResponse -> Rep ListDataSetRevisionsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListDataSetRevisionsResponse' 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', 'listDataSetRevisionsResponse_nextToken' - The token value retrieved from a previous call to access the next page
-- of results.
--
-- 'revisions', 'listDataSetRevisionsResponse_revisions' - The asset objects listed by the request.
--
-- 'httpStatus', 'listDataSetRevisionsResponse_httpStatus' - The response's http status code.
newListDataSetRevisionsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListDataSetRevisionsResponse
newListDataSetRevisionsResponse :: Int -> ListDataSetRevisionsResponse
newListDataSetRevisionsResponse Int
pHttpStatus_ =
  ListDataSetRevisionsResponse'
    { $sel:nextToken:ListDataSetRevisionsResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:revisions:ListDataSetRevisionsResponse' :: Maybe [RevisionEntry]
revisions = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListDataSetRevisionsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The token value retrieved from a previous call to access the next page
-- of results.
listDataSetRevisionsResponse_nextToken :: Lens.Lens' ListDataSetRevisionsResponse (Prelude.Maybe Prelude.Text)
listDataSetRevisionsResponse_nextToken :: Lens' ListDataSetRevisionsResponse (Maybe Text)
listDataSetRevisionsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataSetRevisionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDataSetRevisionsResponse' :: ListDataSetRevisionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDataSetRevisionsResponse
s@ListDataSetRevisionsResponse' {} Maybe Text
a -> ListDataSetRevisionsResponse
s {$sel:nextToken:ListDataSetRevisionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListDataSetRevisionsResponse)

-- | The asset objects listed by the request.
listDataSetRevisionsResponse_revisions :: Lens.Lens' ListDataSetRevisionsResponse (Prelude.Maybe [RevisionEntry])
listDataSetRevisionsResponse_revisions :: Lens' ListDataSetRevisionsResponse (Maybe [RevisionEntry])
listDataSetRevisionsResponse_revisions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataSetRevisionsResponse' {Maybe [RevisionEntry]
revisions :: Maybe [RevisionEntry]
$sel:revisions:ListDataSetRevisionsResponse' :: ListDataSetRevisionsResponse -> Maybe [RevisionEntry]
revisions} -> Maybe [RevisionEntry]
revisions) (\s :: ListDataSetRevisionsResponse
s@ListDataSetRevisionsResponse' {} Maybe [RevisionEntry]
a -> ListDataSetRevisionsResponse
s {$sel:revisions:ListDataSetRevisionsResponse' :: Maybe [RevisionEntry]
revisions = Maybe [RevisionEntry]
a} :: ListDataSetRevisionsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

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