{-# 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.LicenseManager.ListLicenseManagerReportGenerators
-- 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 the report generators for your account.
module Amazonka.LicenseManager.ListLicenseManagerReportGenerators
  ( -- * Creating a Request
    ListLicenseManagerReportGenerators (..),
    newListLicenseManagerReportGenerators,

    -- * Request Lenses
    listLicenseManagerReportGenerators_filters,
    listLicenseManagerReportGenerators_maxResults,
    listLicenseManagerReportGenerators_nextToken,

    -- * Destructuring the Response
    ListLicenseManagerReportGeneratorsResponse (..),
    newListLicenseManagerReportGeneratorsResponse,

    -- * Response Lenses
    listLicenseManagerReportGeneratorsResponse_nextToken,
    listLicenseManagerReportGeneratorsResponse_reportGenerators,
    listLicenseManagerReportGeneratorsResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListLicenseManagerReportGenerators' smart constructor.
data ListLicenseManagerReportGenerators = ListLicenseManagerReportGenerators'
  { -- | Filters to scope the results. The following filters are supported:
    --
    -- -   @LicenseConfigurationArn@
    ListLicenseManagerReportGenerators -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
    -- | Maximum number of results to return in a single call.
    ListLicenseManagerReportGenerators -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | Token for the next set of results.
    ListLicenseManagerReportGenerators -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (ListLicenseManagerReportGenerators
-> ListLicenseManagerReportGenerators -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLicenseManagerReportGenerators
-> ListLicenseManagerReportGenerators -> Bool
$c/= :: ListLicenseManagerReportGenerators
-> ListLicenseManagerReportGenerators -> Bool
== :: ListLicenseManagerReportGenerators
-> ListLicenseManagerReportGenerators -> Bool
$c== :: ListLicenseManagerReportGenerators
-> ListLicenseManagerReportGenerators -> Bool
Prelude.Eq, ReadPrec [ListLicenseManagerReportGenerators]
ReadPrec ListLicenseManagerReportGenerators
Int -> ReadS ListLicenseManagerReportGenerators
ReadS [ListLicenseManagerReportGenerators]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLicenseManagerReportGenerators]
$creadListPrec :: ReadPrec [ListLicenseManagerReportGenerators]
readPrec :: ReadPrec ListLicenseManagerReportGenerators
$creadPrec :: ReadPrec ListLicenseManagerReportGenerators
readList :: ReadS [ListLicenseManagerReportGenerators]
$creadList :: ReadS [ListLicenseManagerReportGenerators]
readsPrec :: Int -> ReadS ListLicenseManagerReportGenerators
$creadsPrec :: Int -> ReadS ListLicenseManagerReportGenerators
Prelude.Read, Int -> ListLicenseManagerReportGenerators -> ShowS
[ListLicenseManagerReportGenerators] -> ShowS
ListLicenseManagerReportGenerators -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLicenseManagerReportGenerators] -> ShowS
$cshowList :: [ListLicenseManagerReportGenerators] -> ShowS
show :: ListLicenseManagerReportGenerators -> String
$cshow :: ListLicenseManagerReportGenerators -> String
showsPrec :: Int -> ListLicenseManagerReportGenerators -> ShowS
$cshowsPrec :: Int -> ListLicenseManagerReportGenerators -> ShowS
Prelude.Show, forall x.
Rep ListLicenseManagerReportGenerators x
-> ListLicenseManagerReportGenerators
forall x.
ListLicenseManagerReportGenerators
-> Rep ListLicenseManagerReportGenerators x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListLicenseManagerReportGenerators x
-> ListLicenseManagerReportGenerators
$cfrom :: forall x.
ListLicenseManagerReportGenerators
-> Rep ListLicenseManagerReportGenerators x
Prelude.Generic)

-- |
-- Create a value of 'ListLicenseManagerReportGenerators' 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:
--
-- 'filters', 'listLicenseManagerReportGenerators_filters' - Filters to scope the results. The following filters are supported:
--
-- -   @LicenseConfigurationArn@
--
-- 'maxResults', 'listLicenseManagerReportGenerators_maxResults' - Maximum number of results to return in a single call.
--
-- 'nextToken', 'listLicenseManagerReportGenerators_nextToken' - Token for the next set of results.
newListLicenseManagerReportGenerators ::
  ListLicenseManagerReportGenerators
newListLicenseManagerReportGenerators :: ListLicenseManagerReportGenerators
newListLicenseManagerReportGenerators =
  ListLicenseManagerReportGenerators'
    { $sel:filters:ListLicenseManagerReportGenerators' :: Maybe [Filter]
filters =
        forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListLicenseManagerReportGenerators' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListLicenseManagerReportGenerators' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
    }

-- | Filters to scope the results. The following filters are supported:
--
-- -   @LicenseConfigurationArn@
listLicenseManagerReportGenerators_filters :: Lens.Lens' ListLicenseManagerReportGenerators (Prelude.Maybe [Filter])
listLicenseManagerReportGenerators_filters :: Lens' ListLicenseManagerReportGenerators (Maybe [Filter])
listLicenseManagerReportGenerators_filters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLicenseManagerReportGenerators' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:ListLicenseManagerReportGenerators' :: ListLicenseManagerReportGenerators -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: ListLicenseManagerReportGenerators
s@ListLicenseManagerReportGenerators' {} Maybe [Filter]
a -> ListLicenseManagerReportGenerators
s {$sel:filters:ListLicenseManagerReportGenerators' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: ListLicenseManagerReportGenerators) 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

-- | Maximum number of results to return in a single call.
listLicenseManagerReportGenerators_maxResults :: Lens.Lens' ListLicenseManagerReportGenerators (Prelude.Maybe Prelude.Natural)
listLicenseManagerReportGenerators_maxResults :: Lens' ListLicenseManagerReportGenerators (Maybe Natural)
listLicenseManagerReportGenerators_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLicenseManagerReportGenerators' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListLicenseManagerReportGenerators' :: ListLicenseManagerReportGenerators -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListLicenseManagerReportGenerators
s@ListLicenseManagerReportGenerators' {} Maybe Natural
a -> ListLicenseManagerReportGenerators
s {$sel:maxResults:ListLicenseManagerReportGenerators' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListLicenseManagerReportGenerators)

-- | Token for the next set of results.
listLicenseManagerReportGenerators_nextToken :: Lens.Lens' ListLicenseManagerReportGenerators (Prelude.Maybe Prelude.Text)
listLicenseManagerReportGenerators_nextToken :: Lens' ListLicenseManagerReportGenerators (Maybe Text)
listLicenseManagerReportGenerators_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLicenseManagerReportGenerators' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListLicenseManagerReportGenerators' :: ListLicenseManagerReportGenerators -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListLicenseManagerReportGenerators
s@ListLicenseManagerReportGenerators' {} Maybe Text
a -> ListLicenseManagerReportGenerators
s {$sel:nextToken:ListLicenseManagerReportGenerators' :: Maybe Text
nextToken = Maybe Text
a} :: ListLicenseManagerReportGenerators)

instance
  Core.AWSRequest
    ListLicenseManagerReportGenerators
  where
  type
    AWSResponse ListLicenseManagerReportGenerators =
      ListLicenseManagerReportGeneratorsResponse
  request :: (Service -> Service)
-> ListLicenseManagerReportGenerators
-> Request ListLicenseManagerReportGenerators
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 ListLicenseManagerReportGenerators
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse ListLicenseManagerReportGenerators)))
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 [ReportGenerator]
-> Int
-> ListLicenseManagerReportGeneratorsResponse
ListLicenseManagerReportGeneratorsResponse'
            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
"ReportGenerators"
                            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
    ListLicenseManagerReportGenerators
  where
  hashWithSalt :: Int -> ListLicenseManagerReportGenerators -> Int
hashWithSalt
    Int
_salt
    ListLicenseManagerReportGenerators' {Maybe Natural
Maybe [Filter]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
$sel:nextToken:ListLicenseManagerReportGenerators' :: ListLicenseManagerReportGenerators -> Maybe Text
$sel:maxResults:ListLicenseManagerReportGenerators' :: ListLicenseManagerReportGenerators -> Maybe Natural
$sel:filters:ListLicenseManagerReportGenerators' :: ListLicenseManagerReportGenerators -> Maybe [Filter]
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Filter]
filters
        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
    ListLicenseManagerReportGenerators
  where
  rnf :: ListLicenseManagerReportGenerators -> ()
rnf ListLicenseManagerReportGenerators' {Maybe Natural
Maybe [Filter]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
$sel:nextToken:ListLicenseManagerReportGenerators' :: ListLicenseManagerReportGenerators -> Maybe Text
$sel:maxResults:ListLicenseManagerReportGenerators' :: ListLicenseManagerReportGenerators -> Maybe Natural
$sel:filters:ListLicenseManagerReportGenerators' :: ListLicenseManagerReportGenerators -> Maybe [Filter]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [Filter]
filters
      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
    ListLicenseManagerReportGenerators
  where
  toHeaders :: ListLicenseManagerReportGenerators -> 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
"AWSLicenseManager.ListLicenseManagerReportGenerators" ::
                          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
    ListLicenseManagerReportGenerators
  where
  toJSON :: ListLicenseManagerReportGenerators -> Value
toJSON ListLicenseManagerReportGenerators' {Maybe Natural
Maybe [Filter]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
$sel:nextToken:ListLicenseManagerReportGenerators' :: ListLicenseManagerReportGenerators -> Maybe Text
$sel:maxResults:ListLicenseManagerReportGenerators' :: ListLicenseManagerReportGenerators -> Maybe Natural
$sel:filters:ListLicenseManagerReportGenerators' :: ListLicenseManagerReportGenerators -> Maybe [Filter]
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"Filters" 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 [Filter]
filters,
            (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
    ListLicenseManagerReportGenerators
  where
  toPath :: ListLicenseManagerReportGenerators -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

-- | /See:/ 'newListLicenseManagerReportGeneratorsResponse' smart constructor.
data ListLicenseManagerReportGeneratorsResponse = ListLicenseManagerReportGeneratorsResponse'
  { -- | Token for the next set of results.
    ListLicenseManagerReportGeneratorsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | A report generator that creates periodic reports about your license
    -- configurations.
    ListLicenseManagerReportGeneratorsResponse
-> Maybe [ReportGenerator]
reportGenerators :: Prelude.Maybe [ReportGenerator],
    -- | The response's http status code.
    ListLicenseManagerReportGeneratorsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListLicenseManagerReportGeneratorsResponse
-> ListLicenseManagerReportGeneratorsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLicenseManagerReportGeneratorsResponse
-> ListLicenseManagerReportGeneratorsResponse -> Bool
$c/= :: ListLicenseManagerReportGeneratorsResponse
-> ListLicenseManagerReportGeneratorsResponse -> Bool
== :: ListLicenseManagerReportGeneratorsResponse
-> ListLicenseManagerReportGeneratorsResponse -> Bool
$c== :: ListLicenseManagerReportGeneratorsResponse
-> ListLicenseManagerReportGeneratorsResponse -> Bool
Prelude.Eq, ReadPrec [ListLicenseManagerReportGeneratorsResponse]
ReadPrec ListLicenseManagerReportGeneratorsResponse
Int -> ReadS ListLicenseManagerReportGeneratorsResponse
ReadS [ListLicenseManagerReportGeneratorsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLicenseManagerReportGeneratorsResponse]
$creadListPrec :: ReadPrec [ListLicenseManagerReportGeneratorsResponse]
readPrec :: ReadPrec ListLicenseManagerReportGeneratorsResponse
$creadPrec :: ReadPrec ListLicenseManagerReportGeneratorsResponse
readList :: ReadS [ListLicenseManagerReportGeneratorsResponse]
$creadList :: ReadS [ListLicenseManagerReportGeneratorsResponse]
readsPrec :: Int -> ReadS ListLicenseManagerReportGeneratorsResponse
$creadsPrec :: Int -> ReadS ListLicenseManagerReportGeneratorsResponse
Prelude.Read, Int -> ListLicenseManagerReportGeneratorsResponse -> ShowS
[ListLicenseManagerReportGeneratorsResponse] -> ShowS
ListLicenseManagerReportGeneratorsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLicenseManagerReportGeneratorsResponse] -> ShowS
$cshowList :: [ListLicenseManagerReportGeneratorsResponse] -> ShowS
show :: ListLicenseManagerReportGeneratorsResponse -> String
$cshow :: ListLicenseManagerReportGeneratorsResponse -> String
showsPrec :: Int -> ListLicenseManagerReportGeneratorsResponse -> ShowS
$cshowsPrec :: Int -> ListLicenseManagerReportGeneratorsResponse -> ShowS
Prelude.Show, forall x.
Rep ListLicenseManagerReportGeneratorsResponse x
-> ListLicenseManagerReportGeneratorsResponse
forall x.
ListLicenseManagerReportGeneratorsResponse
-> Rep ListLicenseManagerReportGeneratorsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListLicenseManagerReportGeneratorsResponse x
-> ListLicenseManagerReportGeneratorsResponse
$cfrom :: forall x.
ListLicenseManagerReportGeneratorsResponse
-> Rep ListLicenseManagerReportGeneratorsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListLicenseManagerReportGeneratorsResponse' 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', 'listLicenseManagerReportGeneratorsResponse_nextToken' - Token for the next set of results.
--
-- 'reportGenerators', 'listLicenseManagerReportGeneratorsResponse_reportGenerators' - A report generator that creates periodic reports about your license
-- configurations.
--
-- 'httpStatus', 'listLicenseManagerReportGeneratorsResponse_httpStatus' - The response's http status code.
newListLicenseManagerReportGeneratorsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListLicenseManagerReportGeneratorsResponse
newListLicenseManagerReportGeneratorsResponse :: Int -> ListLicenseManagerReportGeneratorsResponse
newListLicenseManagerReportGeneratorsResponse
  Int
pHttpStatus_ =
    ListLicenseManagerReportGeneratorsResponse'
      { $sel:nextToken:ListLicenseManagerReportGeneratorsResponse' :: Maybe Text
nextToken =
          forall a. Maybe a
Prelude.Nothing,
        $sel:reportGenerators:ListLicenseManagerReportGeneratorsResponse' :: Maybe [ReportGenerator]
reportGenerators =
          forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:ListLicenseManagerReportGeneratorsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | Token for the next set of results.
listLicenseManagerReportGeneratorsResponse_nextToken :: Lens.Lens' ListLicenseManagerReportGeneratorsResponse (Prelude.Maybe Prelude.Text)
listLicenseManagerReportGeneratorsResponse_nextToken :: Lens' ListLicenseManagerReportGeneratorsResponse (Maybe Text)
listLicenseManagerReportGeneratorsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLicenseManagerReportGeneratorsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListLicenseManagerReportGeneratorsResponse' :: ListLicenseManagerReportGeneratorsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListLicenseManagerReportGeneratorsResponse
s@ListLicenseManagerReportGeneratorsResponse' {} Maybe Text
a -> ListLicenseManagerReportGeneratorsResponse
s {$sel:nextToken:ListLicenseManagerReportGeneratorsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListLicenseManagerReportGeneratorsResponse)

-- | A report generator that creates periodic reports about your license
-- configurations.
listLicenseManagerReportGeneratorsResponse_reportGenerators :: Lens.Lens' ListLicenseManagerReportGeneratorsResponse (Prelude.Maybe [ReportGenerator])
listLicenseManagerReportGeneratorsResponse_reportGenerators :: Lens'
  ListLicenseManagerReportGeneratorsResponse
  (Maybe [ReportGenerator])
listLicenseManagerReportGeneratorsResponse_reportGenerators = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLicenseManagerReportGeneratorsResponse' {Maybe [ReportGenerator]
reportGenerators :: Maybe [ReportGenerator]
$sel:reportGenerators:ListLicenseManagerReportGeneratorsResponse' :: ListLicenseManagerReportGeneratorsResponse
-> Maybe [ReportGenerator]
reportGenerators} -> Maybe [ReportGenerator]
reportGenerators) (\s :: ListLicenseManagerReportGeneratorsResponse
s@ListLicenseManagerReportGeneratorsResponse' {} Maybe [ReportGenerator]
a -> ListLicenseManagerReportGeneratorsResponse
s {$sel:reportGenerators:ListLicenseManagerReportGeneratorsResponse' :: Maybe [ReportGenerator]
reportGenerators = Maybe [ReportGenerator]
a} :: ListLicenseManagerReportGeneratorsResponse) 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.
listLicenseManagerReportGeneratorsResponse_httpStatus :: Lens.Lens' ListLicenseManagerReportGeneratorsResponse Prelude.Int
listLicenseManagerReportGeneratorsResponse_httpStatus :: Lens' ListLicenseManagerReportGeneratorsResponse Int
listLicenseManagerReportGeneratorsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLicenseManagerReportGeneratorsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListLicenseManagerReportGeneratorsResponse' :: ListLicenseManagerReportGeneratorsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListLicenseManagerReportGeneratorsResponse
s@ListLicenseManagerReportGeneratorsResponse' {} Int
a -> ListLicenseManagerReportGeneratorsResponse
s {$sel:httpStatus:ListLicenseManagerReportGeneratorsResponse' :: Int
httpStatus = Int
a} :: ListLicenseManagerReportGeneratorsResponse)

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