{-# 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.Glue.ListDataQualityRulesetEvaluationRuns
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists all the runs meeting the filter criteria, where a ruleset is
-- evaluated against a data source.
module Amazonka.Glue.ListDataQualityRulesetEvaluationRuns
  ( -- * Creating a Request
    ListDataQualityRulesetEvaluationRuns (..),
    newListDataQualityRulesetEvaluationRuns,

    -- * Request Lenses
    listDataQualityRulesetEvaluationRuns_filter,
    listDataQualityRulesetEvaluationRuns_maxResults,
    listDataQualityRulesetEvaluationRuns_nextToken,

    -- * Destructuring the Response
    ListDataQualityRulesetEvaluationRunsResponse (..),
    newListDataQualityRulesetEvaluationRunsResponse,

    -- * Response Lenses
    listDataQualityRulesetEvaluationRunsResponse_nextToken,
    listDataQualityRulesetEvaluationRunsResponse_runs,
    listDataQualityRulesetEvaluationRunsResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListDataQualityRulesetEvaluationRuns' smart constructor.
data ListDataQualityRulesetEvaluationRuns = ListDataQualityRulesetEvaluationRuns'
  { -- | The filter criteria.
    ListDataQualityRulesetEvaluationRuns
-> Maybe DataQualityRulesetEvaluationRunFilter
filter' :: Prelude.Maybe DataQualityRulesetEvaluationRunFilter,
    -- | The maximum number of results to return.
    ListDataQualityRulesetEvaluationRuns -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | A paginated token to offset the results.
    ListDataQualityRulesetEvaluationRuns -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (ListDataQualityRulesetEvaluationRuns
-> ListDataQualityRulesetEvaluationRuns -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDataQualityRulesetEvaluationRuns
-> ListDataQualityRulesetEvaluationRuns -> Bool
$c/= :: ListDataQualityRulesetEvaluationRuns
-> ListDataQualityRulesetEvaluationRuns -> Bool
== :: ListDataQualityRulesetEvaluationRuns
-> ListDataQualityRulesetEvaluationRuns -> Bool
$c== :: ListDataQualityRulesetEvaluationRuns
-> ListDataQualityRulesetEvaluationRuns -> Bool
Prelude.Eq, ReadPrec [ListDataQualityRulesetEvaluationRuns]
ReadPrec ListDataQualityRulesetEvaluationRuns
Int -> ReadS ListDataQualityRulesetEvaluationRuns
ReadS [ListDataQualityRulesetEvaluationRuns]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDataQualityRulesetEvaluationRuns]
$creadListPrec :: ReadPrec [ListDataQualityRulesetEvaluationRuns]
readPrec :: ReadPrec ListDataQualityRulesetEvaluationRuns
$creadPrec :: ReadPrec ListDataQualityRulesetEvaluationRuns
readList :: ReadS [ListDataQualityRulesetEvaluationRuns]
$creadList :: ReadS [ListDataQualityRulesetEvaluationRuns]
readsPrec :: Int -> ReadS ListDataQualityRulesetEvaluationRuns
$creadsPrec :: Int -> ReadS ListDataQualityRulesetEvaluationRuns
Prelude.Read, Int -> ListDataQualityRulesetEvaluationRuns -> ShowS
[ListDataQualityRulesetEvaluationRuns] -> ShowS
ListDataQualityRulesetEvaluationRuns -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDataQualityRulesetEvaluationRuns] -> ShowS
$cshowList :: [ListDataQualityRulesetEvaluationRuns] -> ShowS
show :: ListDataQualityRulesetEvaluationRuns -> String
$cshow :: ListDataQualityRulesetEvaluationRuns -> String
showsPrec :: Int -> ListDataQualityRulesetEvaluationRuns -> ShowS
$cshowsPrec :: Int -> ListDataQualityRulesetEvaluationRuns -> ShowS
Prelude.Show, forall x.
Rep ListDataQualityRulesetEvaluationRuns x
-> ListDataQualityRulesetEvaluationRuns
forall x.
ListDataQualityRulesetEvaluationRuns
-> Rep ListDataQualityRulesetEvaluationRuns x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDataQualityRulesetEvaluationRuns x
-> ListDataQualityRulesetEvaluationRuns
$cfrom :: forall x.
ListDataQualityRulesetEvaluationRuns
-> Rep ListDataQualityRulesetEvaluationRuns x
Prelude.Generic)

-- |
-- Create a value of 'ListDataQualityRulesetEvaluationRuns' 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:
--
-- 'filter'', 'listDataQualityRulesetEvaluationRuns_filter' - The filter criteria.
--
-- 'maxResults', 'listDataQualityRulesetEvaluationRuns_maxResults' - The maximum number of results to return.
--
-- 'nextToken', 'listDataQualityRulesetEvaluationRuns_nextToken' - A paginated token to offset the results.
newListDataQualityRulesetEvaluationRuns ::
  ListDataQualityRulesetEvaluationRuns
newListDataQualityRulesetEvaluationRuns :: ListDataQualityRulesetEvaluationRuns
newListDataQualityRulesetEvaluationRuns =
  ListDataQualityRulesetEvaluationRuns'
    { $sel:filter':ListDataQualityRulesetEvaluationRuns' :: Maybe DataQualityRulesetEvaluationRunFilter
filter' =
        forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListDataQualityRulesetEvaluationRuns' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListDataQualityRulesetEvaluationRuns' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
    }

-- | The filter criteria.
listDataQualityRulesetEvaluationRuns_filter :: Lens.Lens' ListDataQualityRulesetEvaluationRuns (Prelude.Maybe DataQualityRulesetEvaluationRunFilter)
listDataQualityRulesetEvaluationRuns_filter :: Lens'
  ListDataQualityRulesetEvaluationRuns
  (Maybe DataQualityRulesetEvaluationRunFilter)
listDataQualityRulesetEvaluationRuns_filter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataQualityRulesetEvaluationRuns' {Maybe DataQualityRulesetEvaluationRunFilter
filter' :: Maybe DataQualityRulesetEvaluationRunFilter
$sel:filter':ListDataQualityRulesetEvaluationRuns' :: ListDataQualityRulesetEvaluationRuns
-> Maybe DataQualityRulesetEvaluationRunFilter
filter'} -> Maybe DataQualityRulesetEvaluationRunFilter
filter') (\s :: ListDataQualityRulesetEvaluationRuns
s@ListDataQualityRulesetEvaluationRuns' {} Maybe DataQualityRulesetEvaluationRunFilter
a -> ListDataQualityRulesetEvaluationRuns
s {$sel:filter':ListDataQualityRulesetEvaluationRuns' :: Maybe DataQualityRulesetEvaluationRunFilter
filter' = Maybe DataQualityRulesetEvaluationRunFilter
a} :: ListDataQualityRulesetEvaluationRuns)

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

-- | A paginated token to offset the results.
listDataQualityRulesetEvaluationRuns_nextToken :: Lens.Lens' ListDataQualityRulesetEvaluationRuns (Prelude.Maybe Prelude.Text)
listDataQualityRulesetEvaluationRuns_nextToken :: Lens' ListDataQualityRulesetEvaluationRuns (Maybe Text)
listDataQualityRulesetEvaluationRuns_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataQualityRulesetEvaluationRuns' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDataQualityRulesetEvaluationRuns' :: ListDataQualityRulesetEvaluationRuns -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDataQualityRulesetEvaluationRuns
s@ListDataQualityRulesetEvaluationRuns' {} Maybe Text
a -> ListDataQualityRulesetEvaluationRuns
s {$sel:nextToken:ListDataQualityRulesetEvaluationRuns' :: Maybe Text
nextToken = Maybe Text
a} :: ListDataQualityRulesetEvaluationRuns)

instance
  Core.AWSRequest
    ListDataQualityRulesetEvaluationRuns
  where
  type
    AWSResponse ListDataQualityRulesetEvaluationRuns =
      ListDataQualityRulesetEvaluationRunsResponse
  request :: (Service -> Service)
-> ListDataQualityRulesetEvaluationRuns
-> Request ListDataQualityRulesetEvaluationRuns
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListDataQualityRulesetEvaluationRuns
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse ListDataQualityRulesetEvaluationRuns)))
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 [DataQualityRulesetEvaluationRunDescription]
-> Int
-> ListDataQualityRulesetEvaluationRunsResponse
ListDataQualityRulesetEvaluationRunsResponse'
            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
"Runs" 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
    ListDataQualityRulesetEvaluationRuns
  where
  hashWithSalt :: Int -> ListDataQualityRulesetEvaluationRuns -> Int
hashWithSalt
    Int
_salt
    ListDataQualityRulesetEvaluationRuns' {Maybe Natural
Maybe Text
Maybe DataQualityRulesetEvaluationRunFilter
nextToken :: Maybe Text
maxResults :: Maybe Natural
filter' :: Maybe DataQualityRulesetEvaluationRunFilter
$sel:nextToken:ListDataQualityRulesetEvaluationRuns' :: ListDataQualityRulesetEvaluationRuns -> Maybe Text
$sel:maxResults:ListDataQualityRulesetEvaluationRuns' :: ListDataQualityRulesetEvaluationRuns -> Maybe Natural
$sel:filter':ListDataQualityRulesetEvaluationRuns' :: ListDataQualityRulesetEvaluationRuns
-> Maybe DataQualityRulesetEvaluationRunFilter
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DataQualityRulesetEvaluationRunFilter
filter'
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken

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

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

instance
  Data.ToJSON
    ListDataQualityRulesetEvaluationRuns
  where
  toJSON :: ListDataQualityRulesetEvaluationRuns -> Value
toJSON ListDataQualityRulesetEvaluationRuns' {Maybe Natural
Maybe Text
Maybe DataQualityRulesetEvaluationRunFilter
nextToken :: Maybe Text
maxResults :: Maybe Natural
filter' :: Maybe DataQualityRulesetEvaluationRunFilter
$sel:nextToken:ListDataQualityRulesetEvaluationRuns' :: ListDataQualityRulesetEvaluationRuns -> Maybe Text
$sel:maxResults:ListDataQualityRulesetEvaluationRuns' :: ListDataQualityRulesetEvaluationRuns -> Maybe Natural
$sel:filter':ListDataQualityRulesetEvaluationRuns' :: ListDataQualityRulesetEvaluationRuns
-> Maybe DataQualityRulesetEvaluationRunFilter
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"Filter" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DataQualityRulesetEvaluationRunFilter
filter',
            (Key
"MaxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
            (Key
"NextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken
          ]
      )

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

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

-- | /See:/ 'newListDataQualityRulesetEvaluationRunsResponse' smart constructor.
data ListDataQualityRulesetEvaluationRunsResponse = ListDataQualityRulesetEvaluationRunsResponse'
  { -- | A pagination token, if more results are available.
    ListDataQualityRulesetEvaluationRunsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | A list of @DataQualityRulesetEvaluationRunDescription@ objects
    -- representing data quality ruleset runs.
    ListDataQualityRulesetEvaluationRunsResponse
-> Maybe [DataQualityRulesetEvaluationRunDescription]
runs :: Prelude.Maybe [DataQualityRulesetEvaluationRunDescription],
    -- | The response's http status code.
    ListDataQualityRulesetEvaluationRunsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListDataQualityRulesetEvaluationRunsResponse
-> ListDataQualityRulesetEvaluationRunsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDataQualityRulesetEvaluationRunsResponse
-> ListDataQualityRulesetEvaluationRunsResponse -> Bool
$c/= :: ListDataQualityRulesetEvaluationRunsResponse
-> ListDataQualityRulesetEvaluationRunsResponse -> Bool
== :: ListDataQualityRulesetEvaluationRunsResponse
-> ListDataQualityRulesetEvaluationRunsResponse -> Bool
$c== :: ListDataQualityRulesetEvaluationRunsResponse
-> ListDataQualityRulesetEvaluationRunsResponse -> Bool
Prelude.Eq, ReadPrec [ListDataQualityRulesetEvaluationRunsResponse]
ReadPrec ListDataQualityRulesetEvaluationRunsResponse
Int -> ReadS ListDataQualityRulesetEvaluationRunsResponse
ReadS [ListDataQualityRulesetEvaluationRunsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDataQualityRulesetEvaluationRunsResponse]
$creadListPrec :: ReadPrec [ListDataQualityRulesetEvaluationRunsResponse]
readPrec :: ReadPrec ListDataQualityRulesetEvaluationRunsResponse
$creadPrec :: ReadPrec ListDataQualityRulesetEvaluationRunsResponse
readList :: ReadS [ListDataQualityRulesetEvaluationRunsResponse]
$creadList :: ReadS [ListDataQualityRulesetEvaluationRunsResponse]
readsPrec :: Int -> ReadS ListDataQualityRulesetEvaluationRunsResponse
$creadsPrec :: Int -> ReadS ListDataQualityRulesetEvaluationRunsResponse
Prelude.Read, Int -> ListDataQualityRulesetEvaluationRunsResponse -> ShowS
[ListDataQualityRulesetEvaluationRunsResponse] -> ShowS
ListDataQualityRulesetEvaluationRunsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDataQualityRulesetEvaluationRunsResponse] -> ShowS
$cshowList :: [ListDataQualityRulesetEvaluationRunsResponse] -> ShowS
show :: ListDataQualityRulesetEvaluationRunsResponse -> String
$cshow :: ListDataQualityRulesetEvaluationRunsResponse -> String
showsPrec :: Int -> ListDataQualityRulesetEvaluationRunsResponse -> ShowS
$cshowsPrec :: Int -> ListDataQualityRulesetEvaluationRunsResponse -> ShowS
Prelude.Show, forall x.
Rep ListDataQualityRulesetEvaluationRunsResponse x
-> ListDataQualityRulesetEvaluationRunsResponse
forall x.
ListDataQualityRulesetEvaluationRunsResponse
-> Rep ListDataQualityRulesetEvaluationRunsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDataQualityRulesetEvaluationRunsResponse x
-> ListDataQualityRulesetEvaluationRunsResponse
$cfrom :: forall x.
ListDataQualityRulesetEvaluationRunsResponse
-> Rep ListDataQualityRulesetEvaluationRunsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListDataQualityRulesetEvaluationRunsResponse' 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', 'listDataQualityRulesetEvaluationRunsResponse_nextToken' - A pagination token, if more results are available.
--
-- 'runs', 'listDataQualityRulesetEvaluationRunsResponse_runs' - A list of @DataQualityRulesetEvaluationRunDescription@ objects
-- representing data quality ruleset runs.
--
-- 'httpStatus', 'listDataQualityRulesetEvaluationRunsResponse_httpStatus' - The response's http status code.
newListDataQualityRulesetEvaluationRunsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListDataQualityRulesetEvaluationRunsResponse
newListDataQualityRulesetEvaluationRunsResponse :: Int -> ListDataQualityRulesetEvaluationRunsResponse
newListDataQualityRulesetEvaluationRunsResponse
  Int
pHttpStatus_ =
    ListDataQualityRulesetEvaluationRunsResponse'
      { $sel:nextToken:ListDataQualityRulesetEvaluationRunsResponse' :: Maybe Text
nextToken =
          forall a. Maybe a
Prelude.Nothing,
        $sel:runs:ListDataQualityRulesetEvaluationRunsResponse' :: Maybe [DataQualityRulesetEvaluationRunDescription]
runs = forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:ListDataQualityRulesetEvaluationRunsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | A pagination token, if more results are available.
listDataQualityRulesetEvaluationRunsResponse_nextToken :: Lens.Lens' ListDataQualityRulesetEvaluationRunsResponse (Prelude.Maybe Prelude.Text)
listDataQualityRulesetEvaluationRunsResponse_nextToken :: Lens' ListDataQualityRulesetEvaluationRunsResponse (Maybe Text)
listDataQualityRulesetEvaluationRunsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataQualityRulesetEvaluationRunsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDataQualityRulesetEvaluationRunsResponse' :: ListDataQualityRulesetEvaluationRunsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDataQualityRulesetEvaluationRunsResponse
s@ListDataQualityRulesetEvaluationRunsResponse' {} Maybe Text
a -> ListDataQualityRulesetEvaluationRunsResponse
s {$sel:nextToken:ListDataQualityRulesetEvaluationRunsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListDataQualityRulesetEvaluationRunsResponse)

-- | A list of @DataQualityRulesetEvaluationRunDescription@ objects
-- representing data quality ruleset runs.
listDataQualityRulesetEvaluationRunsResponse_runs :: Lens.Lens' ListDataQualityRulesetEvaluationRunsResponse (Prelude.Maybe [DataQualityRulesetEvaluationRunDescription])
listDataQualityRulesetEvaluationRunsResponse_runs :: Lens'
  ListDataQualityRulesetEvaluationRunsResponse
  (Maybe [DataQualityRulesetEvaluationRunDescription])
listDataQualityRulesetEvaluationRunsResponse_runs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataQualityRulesetEvaluationRunsResponse' {Maybe [DataQualityRulesetEvaluationRunDescription]
runs :: Maybe [DataQualityRulesetEvaluationRunDescription]
$sel:runs:ListDataQualityRulesetEvaluationRunsResponse' :: ListDataQualityRulesetEvaluationRunsResponse
-> Maybe [DataQualityRulesetEvaluationRunDescription]
runs} -> Maybe [DataQualityRulesetEvaluationRunDescription]
runs) (\s :: ListDataQualityRulesetEvaluationRunsResponse
s@ListDataQualityRulesetEvaluationRunsResponse' {} Maybe [DataQualityRulesetEvaluationRunDescription]
a -> ListDataQualityRulesetEvaluationRunsResponse
s {$sel:runs:ListDataQualityRulesetEvaluationRunsResponse' :: Maybe [DataQualityRulesetEvaluationRunDescription]
runs = Maybe [DataQualityRulesetEvaluationRunDescription]
a} :: ListDataQualityRulesetEvaluationRunsResponse) 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.
listDataQualityRulesetEvaluationRunsResponse_httpStatus :: Lens.Lens' ListDataQualityRulesetEvaluationRunsResponse Prelude.Int
listDataQualityRulesetEvaluationRunsResponse_httpStatus :: Lens' ListDataQualityRulesetEvaluationRunsResponse Int
listDataQualityRulesetEvaluationRunsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataQualityRulesetEvaluationRunsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListDataQualityRulesetEvaluationRunsResponse' :: ListDataQualityRulesetEvaluationRunsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListDataQualityRulesetEvaluationRunsResponse
s@ListDataQualityRulesetEvaluationRunsResponse' {} Int
a -> ListDataQualityRulesetEvaluationRunsResponse
s {$sel:httpStatus:ListDataQualityRulesetEvaluationRunsResponse' :: Int
httpStatus = Int
a} :: ListDataQualityRulesetEvaluationRunsResponse)

instance
  Prelude.NFData
    ListDataQualityRulesetEvaluationRunsResponse
  where
  rnf :: ListDataQualityRulesetEvaluationRunsResponse -> ()
rnf ListDataQualityRulesetEvaluationRunsResponse' {Int
Maybe [DataQualityRulesetEvaluationRunDescription]
Maybe Text
httpStatus :: Int
runs :: Maybe [DataQualityRulesetEvaluationRunDescription]
nextToken :: Maybe Text
$sel:httpStatus:ListDataQualityRulesetEvaluationRunsResponse' :: ListDataQualityRulesetEvaluationRunsResponse -> Int
$sel:runs:ListDataQualityRulesetEvaluationRunsResponse' :: ListDataQualityRulesetEvaluationRunsResponse
-> Maybe [DataQualityRulesetEvaluationRunDescription]
$sel:nextToken:ListDataQualityRulesetEvaluationRunsResponse' :: ListDataQualityRulesetEvaluationRunsResponse -> 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 [DataQualityRulesetEvaluationRunDescription]
runs
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus